mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:39:59 +02:00
This commit introduces a new parameter allowInheritPrincipal
to the getContextIdIfNeeded
function in ZenWorkspaces.mjs
. This allows recognition of opening bookmarks in new tab so that they can be opened in a default container.
This commit is contained in:
parent
893ebcd0f7
commit
ca0e6030d5
1 changed files with 2 additions and 2 deletions
|
@ -874,7 +874,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
});
|
||||
}
|
||||
|
||||
getContextIdIfNeeded(userContextId, fromExternal) {
|
||||
getContextIdIfNeeded(userContextId, fromExternal, allowInheritPrincipal) {
|
||||
if(!this.workspaceEnabled) {
|
||||
return [userContextId, false];
|
||||
}
|
||||
|
@ -882,7 +882,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||
const activeWorkspace = this.getActiveWorkspaceFromCache();
|
||||
const activeWorkspaceUserContextId = activeWorkspace?.containerTabId;
|
||||
|
||||
if(fromExternal && !!activeWorkspaceUserContextId) {
|
||||
if((fromExternal || allowInheritPrincipal === false) && !!activeWorkspaceUserContextId) {
|
||||
return [activeWorkspaceUserContextId, true];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue