mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-07 10:26:36 +00:00
feat: update preferences and UI components for new features and improvements
This commit is contained in:
24
src/browser/modules/BrowserDOMWindow-sys-mjs.patch
Normal file
24
src/browser/modules/BrowserDOMWindow-sys-mjs.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
diff --git a/browser/modules/BrowserDOMWindow.sys.mjs b/browser/modules/BrowserDOMWindow.sys.mjs
|
||||
index 2bc4918c15b5ea80e486db66d20bb9668b9e29c0..3800a3807f11c5f65ce0d602a775f95037f5dcf8 100644
|
||||
--- a/browser/modules/BrowserDOMWindow.sys.mjs
|
||||
+++ b/browser/modules/BrowserDOMWindow.sys.mjs
|
||||
@@ -362,7 +362,7 @@ export class BrowserDOMWindow {
|
||||
// Passing a null-URI to only create the content window,
|
||||
// and pass true for aSkipLoad to prevent loading of
|
||||
// about:blank
|
||||
- return this.getContentWindowOrOpenURIInFrame(
|
||||
+ let res = this.getContentWindowOrOpenURIInFrame(
|
||||
null,
|
||||
aParams,
|
||||
aWhere,
|
||||
@@ -370,6 +370,10 @@ export class BrowserDOMWindow {
|
||||
aName,
|
||||
true
|
||||
);
|
||||
+ if (typeof this.win?.gZenGlanceManager !== "undefined" && this.win.toolbar.visible) {
|
||||
+ this.win.gZenGlanceManager.onTabOpen(res, aURI);
|
||||
+ }
|
||||
+ return res;
|
||||
}
|
||||
|
||||
openURIInFrame(aURI, aParams, aWhere, aFlags, aName) {
|
Reference in New Issue
Block a user