Bug 433616 part 2. Implement loading of external resource documents. r=jst, sr=roc
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