зеркало из https://github.com/mozilla/gecko-dev.git
Bulletproofing fix for bug 95465. Patch from John Morrison <jrgm@netscape.com>, r=bryner, sr=hyatt, a=asa.
This commit is contained in:
Родитель
d2229cbf68
Коммит
690da19e7a
|
@ -383,6 +383,11 @@ nsXBLPrototypeHandler::ExecuteHandler(nsIDOMEventReceiver* aReceiver,
|
|||
boundDocument->GetScriptGlobalObject(getter_AddRefs(boundGlobal));
|
||||
}
|
||||
|
||||
// If we still don't have a 'boundGlobal', we're doomed. bug 95465.
|
||||
NS_ASSERTION(boundGlobal, "failed to get the nsIScriptGlobalObject. bug 95465?");
|
||||
if (!boundGlobal)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIScriptContext> boundContext;
|
||||
boundGlobal->GetContext(getter_AddRefs(boundContext));
|
||||
if (!boundContext) return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче