mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Fixed opening bookmarks on empty tab pages (closes https://github.com/zen-browser/desktop/issues/5818)
This commit is contained in:
13
src/browser/modules/URILoadingHelper-sys-mjs.patch
Normal file
13
src/browser/modules/URILoadingHelper-sys-mjs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/browser/modules/URILoadingHelper.sys.mjs b/browser/modules/URILoadingHelper.sys.mjs
|
||||
index 313e895980c502d79f64f5a6ab838f6a96c83835..8a1a853567aeae2c368005d3757815799457212a 100644
|
||||
--- a/browser/modules/URILoadingHelper.sys.mjs
|
||||
+++ b/browser/modules/URILoadingHelper.sys.mjs
|
||||
@@ -512,7 +512,7 @@ export const URILoadingHelper = {
|
||||
// page. If a load request bounces off for the currently selected tab,
|
||||
// we'll open a new tab instead.
|
||||
let tab = w.gBrowser.getTabForBrowser(targetBrowser);
|
||||
- if (tab == w.FirefoxViewHandler.tab) {
|
||||
+ if (tab == w.FirefoxViewHandler.tab || tab.hasAttribute("zen-empty-tab")) {
|
||||
where = "tab";
|
||||
targetBrowser = null;
|
||||
} else if (
|
Reference in New Issue
Block a user