diff --git a/patches/ui-patches/firefox-view.patch b/patches/ui-patches/firefox-view.patch index ea0e580..a347128 100644 --- a/patches/ui-patches/firefox-view.patch +++ b/patches/ui-patches/firefox-view.patch @@ -92,3 +92,63 @@ diff --git a/browser/components/firefoxview/firefoxview.mjs b/browser/components Services.telemetry.setEventRecordingEnabled("firefoxview", true); Services.telemetry.recordEvent("firefoxview", "entered", "firefoxview", null); document.getElementById("recently-closed-tabs-container").onLoad(); +diff --git a/browser/components/newtab/lib/OnboardingMessageProvider.jsm b/browser/components/newtab/lib/OnboardingMessageProvider.jsm +--- a/browser/components/newtab/lib/OnboardingMessageProvider.jsm ++++ b/browser/components/newtab/lib/OnboardingMessageProvider.jsm +@@ -82,56 +82,6 @@ const BASE_MESSAGES = () => [ + trigger: { id: "protectionsPanelOpen" }, + }, + { +- id: "CFR_FIREFOX_VIEW", +- groups: ["cfr"], +- template: "cfr_doorhanger", +- content: { +- bucket_id: "CFR_FIREFOX_VIEW", +- anchor_id: "firefox-view-button", +- layout: "icon_and_message", +- icon: "chrome://browser/content/cfr-lightning.svg", +- icon_dark_theme: "chrome://browser/content/cfr-lightning-dark.svg", +- icon_class: "cfr-doorhanger-small-icon", +- heading_text: { +- string_id: "firefoxview-cfr-header", +- }, +- text: { +- string_id: "firefoxview-cfr-body", +- }, +- buttons: { +- primary: { +- label: { +- string_id: "firefoxview-cfr-primarybutton", +- }, +- action: { +- type: "OPEN_FIREFOX_VIEW", +- navigate: true, +- }, +- }, +- secondary: [ +- { +- label: { +- string_id: "firefoxview-cfr-secondarybutton", +- }, +- action: { +- type: "CANCEL", +- }, +- }, +- ], +- }, +- skip_address_bar_notifier: true, +- }, +- frequency: { +- lifetime: 1, +- }, +- trigger: { +- id: "nthTabClosed", +- }, +- // Avoid breaking existing tests that close tabs for now. +- targeting: +- "!inMr2022Holdback && (currentDate|date - profileAgeCreated) / 86400000 >= 2 && tabsClosedCount >= 3 && 'browser.firefox-view.view-count'|preferenceValue == 0 && !'browser.newtabpage.activity-stream.asrouter.providers.cfr'|preferenceIsUserSet", +- }, +- { + id: "FX_MR_106_UPGRADE", + template: "spotlight", + targeting: "true",