mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-23 13:04:28 +00:00
Bug 819588. Null-check the window before jumping. r=emk
This commit is contained in:
parent
44ee89fc83
commit
05e5ef448b
@ -420,7 +420,7 @@ nsDOMParser::InitInternal(nsISupports* aOwner, nsIPrincipal* prin,
|
||||
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(aOwner);
|
||||
if (aOwner) {
|
||||
if (window) {
|
||||
nsCOMPtr<nsIDOMDocument> domdoc = window->GetExtantDocument();
|
||||
doc = do_QueryInterface(domdoc);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user