зеркало из https://github.com/mozilla/pjs.git
fix for crasher, #39744, r=hyatt.
This commit is contained in:
Родитель
d64e48579e
Коммит
9c26e4ab00
|
@ -296,6 +296,8 @@ nsXBLService::GetContentList(nsIContent* aContent, nsISupportsArray** aResult, n
|
|||
nsCOMPtr<nsIDocument> document;
|
||||
aContent->GetDocument(*getter_AddRefs(document));
|
||||
nsCOMPtr<nsIBindingManager> bindingManager;
|
||||
NS_ASSERTION(document, "no document");
|
||||
if (!document) return NS_ERROR_FAILURE;
|
||||
document->GetBindingManager(getter_AddRefs(bindingManager));
|
||||
|
||||
nsCOMPtr<nsIXBLBinding> binding;
|
||||
|
|
|
@ -296,6 +296,8 @@ nsXBLService::GetContentList(nsIContent* aContent, nsISupportsArray** aResult, n
|
|||
nsCOMPtr<nsIDocument> document;
|
||||
aContent->GetDocument(*getter_AddRefs(document));
|
||||
nsCOMPtr<nsIBindingManager> bindingManager;
|
||||
NS_ASSERTION(document, "no document");
|
||||
if (!document) return NS_ERROR_FAILURE;
|
||||
document->GetBindingManager(getter_AddRefs(bindingManager));
|
||||
|
||||
nsCOMPtr<nsIXBLBinding> binding;
|
||||
|
|
Загрузка…
Ссылка в новой задаче