зеркало из https://github.com/mozilla/gecko-dev.git
Bug 749964. Don't try to save if what we have is not a real document object. r=khuey
This commit is contained in:
Родитель
1f19f8c07e
Коммит
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче