mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 906666, treat frozen windows as not visible, so that they don't get focused, r=smaug
This commit is contained in:
parent
49dddc1877
commit
cb06464665
@ -1379,7 +1379,13 @@ nsFocusManager::AdjustWindowFocus(nsPIDOMWindow* aWindow,
|
||||
bool
|
||||
nsFocusManager::IsWindowVisible(nsPIDOMWindow* aWindow)
|
||||
{
|
||||
if (!aWindow)
|
||||
if (!aWindow || aWindow->IsFrozen())
|
||||
return false;
|
||||
|
||||
// Check if the inner window is frozen as well. This can happen when a focus change
|
||||
// occurs while restoring a previous page.
|
||||
nsPIDOMWindow* innerWindow = aWindow->GetCurrentInnerWindow();
|
||||
if (!innerWindow || innerWindow->IsFrozen())
|
||||
return false;
|
||||
|
||||
nsCOMPtr<nsIDocShell> docShell = aWindow->GetDocShell();
|
||||
|
Loading…
Reference in New Issue
Block a user