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:
Boris Zbarsky
2012-12-06 15:21:18 -05:00
parent 60f6dfd055
commit c3c132919b
6 changed files with 76 additions and 29 deletions

View File

@@ -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);
}
}