mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-20 20:04:19 +00:00
25 lines
902 B
C++
25 lines
902 B
C++
diff --git a/browser/modules/BrowserDOMWindow.sys.mjs b/browser/modules/BrowserDOMWindow.sys.mjs
|
|
index 29c5b1510696cfdd993388957115709b1a149d7c..6616edbc5f992ffdf3df65028cd26c17ef13f315 100644
|
|
--- a/browser/modules/BrowserDOMWindow.sys.mjs
|
|
+++ b/browser/modules/BrowserDOMWindow.sys.mjs
|
|
@@ -436,7 +436,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,
|
|
@@ -444,6 +444,10 @@ export class BrowserDOMWindow {
|
|
aName,
|
|
true
|
|
);
|
|
+ if (typeof this.win?.gZenGlanceManager !== "undefined" && this.win.toolbar.visible) {
|
|
+ this.win.gZenGlanceManager.onTabOpen(res, aURI);
|
|
+ }
|
|
+ return res;
|
|
}
|
|
|
|
/**
|