mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-18 15:55:36 +00:00
Backed out changeset 83d45c7359ac (bug 924456) for assertion failure: nsContentUtils::IsSafeToRunScript() . CLOSED TREE
This commit is contained in:
parent
b87402c557
commit
40e3519c0b
@ -971,12 +971,7 @@ NS_IMETHODIMP AppWindow::SetVisibility(bool aVisibility) {
|
||||
// mWindow to null and posibly destroy the nsIWidget while its Show method
|
||||
// is on the stack. We need to keep it alive until Show finishes.
|
||||
nsCOMPtr<nsIWidget> window = mWindow;
|
||||
{
|
||||
// Ensure that MozAfterPaint events are not fired before the window is
|
||||
// completely visible.
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
window->Show(aVisibility);
|
||||
}
|
||||
window->Show(aVisibility);
|
||||
|
||||
nsCOMPtr<nsIWindowMediator> windowMediator(
|
||||
do_GetService(NS_WINDOWMEDIATOR_CONTRACTID));
|
||||
|
Loading…
Reference in New Issue
Block a user