Bug 319463 - display:none iframe pointing to a xul document stops main document from finishing to load. patch by ben, r=bz sr=bryner
git-svn-id: svn://10.0.0.236/trunk@187106 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f1f960fbc8
commit
6477e29d8b
@ -3071,15 +3071,7 @@ nsXULDocument::ResumeWalk()
|
||||
// XXXldb This is where we should really be setting the chromehidden
|
||||
// attribute.
|
||||
|
||||
PRBool didInitialReflow = PR_TRUE;
|
||||
nsIPresShell *shell = GetShellAt(0);
|
||||
if (shell)
|
||||
shell->GetDidInitialReflow(&didInitialReflow);
|
||||
|
||||
if (!didInitialReflow) {
|
||||
// Everything after this point we only want to do once we're
|
||||
// certain that we've been embedded in a presentation shell.
|
||||
|
||||
if (!mDocumentLoaded) {
|
||||
nsAutoString title;
|
||||
mRootContent->GetAttr(kNameSpaceID_None, nsHTMLAtoms::title, title);
|
||||
SetTitle(title);
|
||||
@ -3113,6 +3105,8 @@ nsXULDocument::ResumeWalk()
|
||||
// See below for detail.
|
||||
if (mPendingOverlayLoadNotifications.IsInitialized())
|
||||
mPendingOverlayLoadNotifications.Enumerate(FirePendingMergeNotification, (void*)&mOverlayLoadObservers);
|
||||
|
||||
mDocumentLoaded = true;
|
||||
}
|
||||
else {
|
||||
if (mOverlayLoadObservers.IsInitialized()) {
|
||||
|
||||
@ -263,6 +263,7 @@ protected:
|
||||
PRPackedBool mIsFastLoad;
|
||||
PRPackedBool mApplyingPersistedAttrs;
|
||||
PRPackedBool mIsWritingFastLoad;
|
||||
PRPackedBool mDocumentLoaded;
|
||||
nsCOMPtr<nsIDOMXULCommandDispatcher> mCommandDispatcher; // [OWNER] of the focus tracker
|
||||
|
||||
// Maintains the template builders that have been attached to
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user