Bug 818371. Don't fire visibility change events until we're done updating vsibility states in the entire docshell tree. r=smaug
This commit is contained in:
@@ -5211,7 +5211,7 @@ nsDocShell::SetIsActive(bool aIsActive)
|
||||
win->SetIsBackground(!aIsActive);
|
||||
nsCOMPtr<nsIDocument> doc = do_QueryInterface(win->GetExtantDocument());
|
||||
if (doc) {
|
||||
doc->PostVisibilityUpdateEvent();
|
||||
doc->UpdateVisibilityState(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user