Fix Firefox account consent for 4.0.6

This commit is contained in:
Anarios committed 2026-09-07 19:10:02 +02:00
1 parent e500088e65
commit ee20c7437c
20 files changed
+606 -331

No files matched your search

+4 -5
View File
@@ -465,12 +465,11 @@ function prepareHermeticExtensionArtifact(sourceDirectory, apiOrigin) {
false,
"ryd.background.js still contains the production API origin after transformation.",
);
const changelogListener = `api.runtime.onInstalled.addListener((details) => {
maybeShowChangelog(details);
});`;
if (!transformedBackground.includes(changelogListener)) {
const changelogListener =
/api\.runtime\.onInstalled\.addListener\(\(details\) => \{\r?\n maybeShowChangelog\(details\);\r?\n\}\);/g;
if ((transformedBackground.match(changelogListener) ?? []).length !== 1) {
removeOwnedTemporaryDirectory(temporaryRoot, "ryd-mv3-e2e-");
throw new Error("ryd.background.js has no recognized first-install changelog listener to suppress.");
throw new Error("ryd.background.js must have exactly one recognized first-install changelog listener to suppress.");
}
const hermeticBackground = transformedBackground.replace(
changelogListener,