diff options
Diffstat (limited to 'toolkit/components/messaging-system')
5 files changed, 24 insertions, 3 deletions
diff --git a/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs b/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs index 8ed488ff88..c1a229e9c3 100644 --- a/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs +++ b/toolkit/components/messaging-system/lib/SpecialMessageActions.sys.mjs @@ -198,6 +198,8 @@ export const SpecialMessageActions = { "browser.firefox-view.feature-tour", "browser.pdfjs.feature-tour", "browser.newtab.feature-tour", + "browser.newtabpage.activity-stream.newtabWallpapers.wallpaper-light", + "browser.newtabpage.activity-stream.newtabWallpapers.wallpaper-dark", "cookiebanners.service.mode", "cookiebanners.service.mode.privateBrowsing", "cookiebanners.service.detectOnly", @@ -291,7 +293,7 @@ export const SpecialMessageActions = { Ci.nsISupportsWeakReference, ]), - observe(aSubject, aTopic, aData) { + observe() { let state = lazy.UIState.get(); if (state.status === lazy.UIState.STATUS_SIGNED_IN) { // We completed sign-in, so tear down our listener / observer and resolve diff --git a/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_protection_panel.js b/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_protection_panel.js index c9522426a2..bddc456539 100644 --- a/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_protection_panel.js +++ b/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_open_protection_panel.js @@ -4,7 +4,7 @@ "use strict"; add_task(async function test_OPEN_PROTECTION_PANEL() { - await BrowserTestUtils.withNewTab(EXAMPLE_URL, async browser => { + await BrowserTestUtils.withNewTab(EXAMPLE_URL, async () => { const popupshown = BrowserTestUtils.waitForEvent( window, "popupshown", diff --git a/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_pin_current_tab.js b/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_pin_current_tab.js index 4425325526..2cb0e3000f 100644 --- a/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_pin_current_tab.js +++ b/toolkit/components/messaging-system/schemas/SpecialMessageActionSchemas/test/browser/browser_sma_pin_current_tab.js @@ -4,7 +4,7 @@ "use strict"; add_task(async function test_PIN_CURRENT_TAB() { - await BrowserTestUtils.withNewTab("about:blank", async browser => { + await BrowserTestUtils.withNewTab("about:blank", async () => { await SMATestUtils.executeAndValidateAction({ type: "PIN_CURRENT_TAB" }); ok(gBrowser.selectedTab.pinned, "should pin current tab"); diff --git a/toolkit/components/messaging-system/schemas/TriggerActionSchemas/TriggerActionSchemas.json b/toolkit/components/messaging-system/schemas/TriggerActionSchemas/TriggerActionSchemas.json index 6a7d2328d7..773b84aa4a 100644 --- a/toolkit/components/messaging-system/schemas/TriggerActionSchemas/TriggerActionSchemas.json +++ b/toolkit/components/messaging-system/schemas/TriggerActionSchemas/TriggerActionSchemas.json @@ -169,6 +169,18 @@ "properties": { "id": { "type": "string", + "enum": ["deeplinkedToWindowsSettingsUI"] + } + }, + "additionalProperties": false, + "required": ["id"], + "description": "Occurs when user indicates they want to set Firefox to the default browser and they need to interact with Windows Settings to do so." + }, + { + "type": "object", + "properties": { + "id": { + "type": "string", "enum": ["captivePortalLogin"] } }, diff --git a/toolkit/components/messaging-system/schemas/TriggerActionSchemas/index.md b/toolkit/components/messaging-system/schemas/TriggerActionSchemas/index.md index 85be613392..45df09249a 100644 --- a/toolkit/components/messaging-system/schemas/TriggerActionSchemas/index.md +++ b/toolkit/components/messaging-system/schemas/TriggerActionSchemas/index.md @@ -44,6 +44,7 @@ let patterns: string[]; * [formAutofill](#formautofill) * [contentBlocking](#contentblocking) * [defaultBrowserCheck](#defaultbrowsercheck) +* [deeplinkedToWindowsSettingsUI](#deeplinkedtowindowssettingsui) * [captivePortalLogin](#captiveportallogin) * [preferenceObserver](#preferenceobserver) * [featureCalloutCheck](#featurecalloutcheck) @@ -161,6 +162,12 @@ let willShowDefaultPrompt = boolean | undefined; } ``` +### `deeplinkedToWindowsSettingsUI` + +Triggers when the user has indicated they want to set Firefox as the default web +browser and interaction with Windows Settings is necessary to finish setting +Firefox as default. + ### `captivePortalLogin` Happens when the user successfully goes through a captive portal authentication flow. |