mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-03 11:20:11 -05:00
hide firefox view popup
This commit is contained in:
parent
85908410af
commit
6bf8aa0795
1 changed files with 60 additions and 0 deletions
|
@ -92,3 +92,63 @@ diff --git a/browser/components/firefoxview/firefoxview.mjs b/browser/components
|
||||||
Services.telemetry.setEventRecordingEnabled("firefoxview", true);
|
Services.telemetry.setEventRecordingEnabled("firefoxview", true);
|
||||||
Services.telemetry.recordEvent("firefoxview", "entered", "firefoxview", null);
|
Services.telemetry.recordEvent("firefoxview", "entered", "firefoxview", null);
|
||||||
document.getElementById("recently-closed-tabs-container").onLoad();
|
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",
|
||||||
|
|
Loading…
Reference in a new issue