mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-09 05:18:40 +00:00
25 lines
951 B
C++
25 lines
951 B
C++
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) {
|