Relanding bug 433616 part 2 to see if it's the cause of a Tp regression
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user