Backed out changeset 83d45c7359ac (bug 924456) for assertion failure: nsContentUtils::IsSafeToRunScript() . CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2020-04-23 23:05:05 +03:00
parent b87402c557
commit 40e3519c0b

View File

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