mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
[DOM] Make sure to exit fullscreen mode if popups are opened or focused.
This commit is contained in:
parent
bc6ac88559
commit
41bd0de230
2 changed files with 15 additions and 0 deletions
|
|
@ -1297,6 +1297,12 @@ nsWindowWatcher::OpenWindowInternal(mozIDOMWindowProxy* aParent,
|
|||
}
|
||||
}
|
||||
|
||||
// If a website opens a popup exit DOM fullscreen
|
||||
if (windowIsNew && aCalledFromJS && !hasChromeParent && !isCallerChrome &&
|
||||
parentWindow) {
|
||||
nsIDocument::AsyncExitFullscreen(parentWindow->GetDoc());
|
||||
}
|
||||
|
||||
if (aForceNoOpener && windowIsNew) {
|
||||
NS_RELEASE(*aResult);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue