commit d4982db83833b06744268f75aee911be5b2ebc96
parent 6a460c8f12bdf65f6948e2b83c2a10d734e26de4
Author: Jason Prickett <jprickett@mozilla.com>
Date: Tue, 7 Oct 2025 00:04:11 +0000
Bug 1989120 - Fix RPM error for moz-link when used in about:welcome r=omc-reviewers,mviar
Differential Revision: https://phabricator.services.mozilla.com/D266928
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/browser/components/aboutwelcome/actors/AboutWelcomeChild.sys.mjs b/browser/components/aboutwelcome/actors/AboutWelcomeChild.sys.mjs
@@ -137,14 +137,20 @@ export class AboutWelcomeChild extends JSWindowActorChild {
Cu.exportFunction(this.AWNewScreen.bind(this), window, {
defineAs: "AWNewScreen",
});
+
Cu.exportFunction(this.AWGetUnhandledCampaignAction.bind(this), window, {
defineAs: "AWGetUnhandledCampaignAction",
});
+
Cu.exportFunction(
this.AWFindBackupsInWellKnownLocations.bind(this),
window,
{ defineAs: "AWFindBackupsInWellKnownLocations" }
);
+
+ Cu.exportFunction(this.RPMGetFormatURLPref.bind(this), window, {
+ defineAs: "RPMGetFormatURLPref",
+ });
}
/**
@@ -400,6 +406,10 @@ export class AboutWelcomeChild extends JSWindowActorChild {
);
}
+ RPMGetFormatURLPref(formatURL) {
+ return Services.urlFormatter.formatURLPref(formatURL);
+ }
+
/**
* @param {{type: string, detail?: any}} event
* @override