diff --git a/src/browser/components/tabbrowser/content/tabbrowser-js.patch b/src/browser/components/tabbrowser/content/tabbrowser-js.patch index c1dc085f50..9fcabda9f3 100644 --- a/src/browser/components/tabbrowser/content/tabbrowser-js.patch +++ b/src/browser/components/tabbrowser/content/tabbrowser-js.patch @@ -266,6 +266,17 @@ index 0eaca7a58e0026237b71b2ad515efe84d9e8c779..2ab8633d0378e5a25cf75c50b29d4689 ); } ++ if ( ++ userContextId === undefined && ++ aURI?.spec?.startsWith("view-source:") && ++ this.selectedTab ++ ) { ++ const selectedUserContextId = this.selectedTab.getAttribute("usercontextid"); ++ if (selectedUserContextId) { ++ userContextId = parseInt(selectedUserContextId, 10); ++ } ++ } ++ + let hasZenDefaultUserContextId = false; + let zenForcedWorkspaceId = undefined; + if (typeof gZenWorkspaces !== "undefined" && !_forZenEmptyTab) {