Bug 673467 - Don't create an extra SHEntry for dynamically-added iframes. r=bz

This commit is contained in:
Justin Lebar
2011-07-26 13:07:48 -04:00
parent 0fd3c7c7e3
commit c4d0e394aa
3 changed files with 52 additions and 3 deletions

View File

@@ -1335,9 +1335,8 @@ nsDocShell::LoadURI(nsIURI * aURI,
PRUint32 selfBusy = BUSY_FLAGS_NONE;
parentDS->GetBusyFlags(&parentBusy);
GetBusyFlags(&selfBusy);
if (((parentBusy & BUSY_FLAGS_BUSY) ||
(selfBusy & BUSY_FLAGS_BUSY)) &&
shEntry) {
if (parentBusy & BUSY_FLAGS_BUSY ||
selfBusy & BUSY_FLAGS_BUSY) {
loadType = LOAD_NORMAL_REPLACE;
shEntry = nsnull;
}