зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 45248. r=saari
This commit is contained in:
Родитель
998e626e93
Коммит
7fb4a72eab
|
@ -588,6 +588,9 @@ nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEven
|
|||
// Compile the handler and bind it to the element.
|
||||
nsCOMPtr<nsIDocument> boundDocument;
|
||||
mBoundElement->GetDocument(*getter_AddRefs(boundDocument));
|
||||
if (!boundDocument)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> boundGlobal;
|
||||
boundDocument->GetScriptGlobalObject(getter_AddRefs(boundGlobal));
|
||||
|
||||
|
|
|
@ -588,6 +588,9 @@ nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEven
|
|||
// Compile the handler and bind it to the element.
|
||||
nsCOMPtr<nsIDocument> boundDocument;
|
||||
mBoundElement->GetDocument(*getter_AddRefs(boundDocument));
|
||||
if (!boundDocument)
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> boundGlobal;
|
||||
boundDocument->GetScriptGlobalObject(getter_AddRefs(boundGlobal));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче