Relanding bug 433616 part 2 to see if it's the cause of a Tp regression

This commit is contained in:
Robert O'Callahan
2008-09-30 14:45:02 +13:00
parent 90ff95ab64
commit 9bd1db04a1
11 changed files with 847 additions and 35 deletions

View File

@@ -727,6 +727,11 @@ nsFrameLoader::EnsureDocShell()
return NS_ERROR_UNEXPECTED;
}
if (doc->GetDisplayDocument()) {
// Don't allow subframe loads in external reference documents
return NS_ERROR_NOT_AVAILABLE;
}
nsCOMPtr<nsIWebNavigation> parentAsWebNav =
do_GetInterface(doc->GetScriptGlobalObject());