Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 0735378

Browse files
committed
Fix Patches
1 parent f215e43 commit 0735378

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/browser/components/BrowserGlue-jsm.patch

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
diff --git a/browser/components/BrowserGlue.jsm b/browser/components/BrowserGlue.jsm
2-
index 64ac529d54270758b6dfa7a0a04b604b89a92402..e4b7844fd1df5c3ff09432c6d1664f72dba02320 100644
2+
index cee46e6341f98441df743f4f5abccc380a67f74b..728e4e6d4b708d75a266181052e4af54c17b6180 100644
33
--- a/browser/components/BrowserGlue.jsm
44
+++ b/browser/components/BrowserGlue.jsm
5-
@@ -4321,6 +4321,23 @@ BrowserGlue.prototype = {
5+
@@ -4343,6 +4343,24 @@ BrowserGlue.prototype = {
66
},
77

88
async _maybeShowDefaultBrowserPrompt() {
99
+ // =========================================================================
1010
+ // Pulse browser welcome
11-
+
11+
+
1212
+ const welcomeEnabledPref = 'pulse.welcome.enabled'
1313
+ const welcomeSeenPref = 'pulse.welcome.seen'
14-
+
14+
+
1515
+ // NOTE: Get bool prefs takes in two options, the pref string and a default
1616
+ // value if it is not defined
17-
+
17+
+
1818
+ const welcomeEnabled = Services.prefs.getBoolPref(welcomeEnabledPref, true)
1919
+ const welcomeSeen = Services.prefs.getBoolPref(welcomeSeenPref, false)
2020
+
2121
+ if (welcomeEnabled && !welcomeSeen)
2222
+ this._showWelcomeDialog()
2323
+
2424
+ // =========================================================================
25+
+
2526
+
2627
// Highest priority is the upgrade dialog, which can include a "primary
2728
// browser" request and is limited in various ways, e.g., major upgrades.
28-
const dialogVersion = 100;
29-
@@ -4780,6 +4797,18 @@ BrowserGlue.prototype = {
29+
const dialogVersion = 106;
30+
@@ -4809,6 +4827,17 @@ BrowserGlue.prototype = {
3031
"nsIObserver",
3132
"nsISupportsWeakReference",
3233
]),
33-
+
3434
+ /**
35-
+ * Displays the welcome dialog. Trigured `_maybeShowDefaultBrowserPrompt`.
36-
+ *
37-
+ * @todo Add gluon docs for how to show custom popups on startup
38-
+ * @patch Pulse Browser
39-
+ */
35+
+ * Displays the welcome dialog. Trigured `_maybeShowDefaultBrowserPrompt`.
36+
+ *
37+
+ * @todo Add gluon docs for how to show custom popups on startup
38+
+ * @patch Pulse Browser
39+
+ */
4040
+ _showWelcomeDialog() {
4141
+ lazy.BrowserWindowTracker.getTopWindow().gDialogBox.open(
42-
+ "chrome://browser/content/welcome/welcome.html"
42+
+ "chrome://browser/content/welcome/welcome.html"
4343
+ );
4444
+ },
4545
};
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/browser/components/moz.build b/browser/components/moz.build
2-
index 38f6b2c0ca72f55985a27256a028ba5d552c03ec..4bdc2faebce245267fac031a6fa93f0ad198b50a 100644
2+
index 3b2126e66efa27d4b941ceb93b46a04aa3cdef30..bbc1b8b248f32bf17764813402abf224b4bc38c1 100644
33
--- a/browser/components/moz.build
44
+++ b/browser/components/moz.build
5-
@@ -60,6 +60,9 @@ DIRS += [
5+
@@ -63,6 +63,9 @@ DIRS += [
66
"urlbar",
77
]
88

@@ -11,4 +11,4 @@ index 38f6b2c0ca72f55985a27256a028ba5d552c03ec..4bdc2faebce245267fac031a6fa93f0a
1111
+
1212
DIRS += ["build"]
1313

14-
if CONFIG["NIGHTLY_BUILD"]:
14+

0 commit comments

Comments
 (0)