mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:39:58 +02:00
Fix docShell of selected tab being deactivated when unsplitting.
This commit is contained in:
parent
d6787fd2fd
commit
c906ddca10
1 changed files with 1 additions and 0 deletions
|
@ -929,6 +929,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||||
// zenModeActive allow us to avoid setting docShellisActive to false later on,
|
// zenModeActive allow us to avoid setting docShellisActive to false later on,
|
||||||
// see browser-custom-elements.js's patch
|
// see browser-custom-elements.js's patch
|
||||||
tab.linkedBrowser.zenModeActive = active;
|
tab.linkedBrowser.zenModeActive = active;
|
||||||
|
if (!active && tab === gBrowser.selectedTab) continue;
|
||||||
try {
|
try {
|
||||||
tab.linkedBrowser.docShellIsActive = active;
|
tab.linkedBrowser.docShellIsActive = active;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue