icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -551,11 +551,8 @@ async function getAutofillRecords(data) {
|
|||
// JSActors, but that would import a lot of code for a targeting attribute.
|
||||
return 0;
|
||||
}
|
||||
let records = await actor?.receiveMessage({
|
||||
name: "FormAutofill:GetRecords",
|
||||
data,
|
||||
});
|
||||
return records?.records?.length ?? 0;
|
||||
let records = await actor?.getRecords(data);
|
||||
return records?.length ?? 0;
|
||||
}
|
||||
|
||||
// Attribution data can be encoded multiple times so we need this function to
|
||||
|
|
|
|||
|
|
@ -1418,15 +1418,10 @@ add_task(async function test_creditCardsSaved() {
|
|||
gBrowser.selectedBrowser.browsingContext.currentWindowGlobal.getActor(
|
||||
"FormAutofill"
|
||||
),
|
||||
"receiveMessage"
|
||||
"getRecords"
|
||||
)
|
||||
.withArgs(
|
||||
sandbox.match({
|
||||
name: "FormAutofill:GetRecords",
|
||||
data: { collectionName: "creditCards" },
|
||||
})
|
||||
)
|
||||
.resolves({ records: [creditcard] })
|
||||
.withArgs(sandbox.match({ collectionName: "creditCards" }))
|
||||
.resolves([creditcard])
|
||||
.callThrough();
|
||||
|
||||
is(
|
||||
|
|
@ -1435,8 +1430,8 @@ add_task(async function test_creditCardsSaved() {
|
|||
"Should return 1 when 1 credit card is saved"
|
||||
);
|
||||
ok(
|
||||
stub.calledWithMatch({ name: "FormAutofill:GetRecords" }),
|
||||
"Targeting called FormAutofill:GetRecords"
|
||||
stub.calledWithMatch({ collectionName: "creditCards" }),
|
||||
"Targeting called getRecords"
|
||||
);
|
||||
|
||||
sandbox.restore();
|
||||
|
|
|
|||
|
|
@ -60,5 +60,5 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"required": ["providerId", "searchPageRegexp", "includeParams"]
|
||||
"required": ["providerId", "searchPageRegexp"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue