зеркало из https://github.com/mozilla/pjs.git
Bug 751422, fix regression from GetOwnerDoc() -> OwnerDoc(), r=khuey
This commit is contained in:
Родитель
3bb38b2e4a
Коммит
6656de0df2
|
@ -563,7 +563,8 @@ nsEventListenerManager::AddScriptEventListener(nsIAtom *aName,
|
|||
// Try to get context from doc
|
||||
// XXX sXBL/XBL2 issue -- do we really want the owner here? What
|
||||
// if that's the XBL document?
|
||||
global = node->OwnerDoc()->GetScriptGlobalObject();
|
||||
doc = node->OwnerDoc();
|
||||
global = doc->GetScriptGlobalObject();
|
||||
} else {
|
||||
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(mTarget));
|
||||
if (win) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче