mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 749964. Don't try to save if what we have is not a real document object. r=khuey
This commit is contained in:
parent
1f19f8c07e
commit
35a0e7fdc1
@ -1517,6 +1517,9 @@ nsresult nsWebBrowserPersist::SaveDocumentInternal(
|
||||
|
||||
// Persist the main document
|
||||
nsCOMPtr<nsIDocument> doc(do_QueryInterface(aDocument));
|
||||
if (!doc) {
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
mURI = doc->GetDocumentURI();
|
||||
|
||||
nsCOMPtr<nsIURI> oldBaseURI = mCurrentBaseURI;
|
||||
|
Loading…
x
Reference in New Issue
Block a user