From 0150e6d689189b652d50d7f125e48ec18e759b39 Mon Sep 17 00:00:00 2001 From: kristijanribaric <96492763+kristijanribaric@users.noreply.github.com> Date: Sun, 13 Oct 2024 23:48:39 +0200 Subject: [PATCH] Fix: Open external links in workspace's default container (#2081) * Fix: Pass `fromExternal` to `ZenWorkspaces.getContextIdIfNeeded` * Add allowInheritPrincipal to ZenWorkspaces.getContextIdIfNeeded --- src/browser/components/tabbrowser/content/tabbrowser-js.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/components/tabbrowser/content/tabbrowser-js.patch b/src/browser/components/tabbrowser/content/tabbrowser-js.patch index 81626a1ad..d0cf4d604 100644 --- a/src/browser/components/tabbrowser/content/tabbrowser-js.patch +++ b/src/browser/components/tabbrowser/content/tabbrowser-js.patch @@ -1,5 +1,5 @@ diff --git a/browser/components/tabbrowser/content/tabbrowser.js b/browser/components/tabbrowser/content/tabbrowser.js -index c89ae2cbb978d6218bd56a059c5ca1e371231607..ab88ba4024bf5d069ef4ca613024f422ad513405 100644 +index c89ae2cbb978d6218bd56a059c5ca1e371231607..a812f3ec86d9967582f99b0eb0c3f1367c39fc8f 100644 --- a/browser/components/tabbrowser/content/tabbrowser.js +++ b/browser/components/tabbrowser/content/tabbrowser.js @@ -456,11 +456,26 @@ @@ -37,7 +37,7 @@ index c89ae2cbb978d6218bd56a059c5ca1e371231607..ab88ba4024bf5d069ef4ca613024f422 + let hasZenDefaultUserContextId = false; + if (typeof ZenWorkspaces !== "undefined") { -+ [userContextId, hasZenDefaultUserContextId] = ZenWorkspaces.getContextIdIfNeeded(userContextId); ++ [userContextId, hasZenDefaultUserContextId] = ZenWorkspaces.getContextIdIfNeeded(userContextId, fromExternal, allowInheritPrincipal); + } + if (!UserInteraction.running("browser.tabs.opening", window)) {