зеркало из https://github.com/mozilla/gecko-dev.git
Bug 158202 crash opening venkman and closing navigator [@nsXULElement::GetOwnerDocument]
patch by sicking@bigfoot.com r=bz sr=jst a=scc checkin authorized by scc
This commit is contained in:
Родитель
f0437b1093
Коммит
975a3e12c6
|
@ -921,13 +921,15 @@ NS_IMETHODIMP
|
|||
nsXULElement::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
|
||||
{
|
||||
if (mDocument) {
|
||||
return mDocument->QueryInterface(NS_GET_IID(nsIDOMDocument), (void**) aOwnerDocument);
|
||||
return CallQueryInterface(mDocument, aOwnerDocument);
|
||||
}
|
||||
else {
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
NodeInfo()->GetDocument(*getter_AddRefs(doc));
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
NodeInfo()->GetDocument(*getter_AddRefs(doc));
|
||||
if (doc) {
|
||||
return CallQueryInterface(doc, aOwnerDocument);
|
||||
}
|
||||
*aOwnerDocument = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче