From 6ef394f4fbe748898d8607a355bef0b28fdc9758 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 23 Mar 2011 10:45:21 -0400 Subject: [PATCH] Bug 601332. Go back to allowing FOUC on document.written documents. r=jst --- content/html/document/src/nsHTMLDocument.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/content/html/document/src/nsHTMLDocument.cpp b/content/html/document/src/nsHTMLDocument.cpp index 92787eeb41e9..ae9b9d86008e 100644 --- a/content/html/document/src/nsHTMLDocument.cpp +++ b/content/html/document/src/nsHTMLDocument.cpp @@ -1873,15 +1873,6 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace) } } - // Flag us as not being able to start layout until we hit - // or scripts that require layout, so that we won't run into FOUC - // issues. We need to do that before making the Stop() call, - // since if we have no frame yet the flush Stop() triggers might - // try to create one for us, and we don't want our presshell - // starting layout if that happens. But we don't want to do this - // before the PermitUnload call above. - mMayStartLayout = PR_FALSE; - nsCOMPtr webnav(do_QueryInterface(shell)); webnav->Stop(nsIWebNavigation::STOP_NETWORK); @@ -1890,10 +1881,6 @@ nsHTMLDocument::OpenCommon(const nsACString& aContentType, PRBool aReplace) // document again otherwise the document could have a non-zero onload block // count without the onload blocker request being in the loadgroup. EnsureOnloadBlocker(); - } else { - // See comment before the mMayStartLayout set in the other branch - // of this if. - mMayStartLayout = PR_FALSE; } // The open occurred after the document finished loading.