mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fixing bug 432591. Only register event handlers on inner windows. r+sr=jonas@sicking.cc, a=dsicore
This commit is contained in:
parent
c62383ea7b
commit
a9312493fa
@ -542,9 +542,10 @@ nsXULElement::GetEventListenerManagerForAttr(nsIEventListenerManager** aManager,
|
||||
if (!doc)
|
||||
return NS_ERROR_UNEXPECTED; // XXX
|
||||
|
||||
nsPIDOMWindow *window;
|
||||
nsIContent *root = doc->GetRootContent();
|
||||
if ((!root || root == this) && !mNodeInfo->Equals(nsGkAtoms::overlay)) {
|
||||
nsPIDOMWindow *window = doc->GetInnerWindow();
|
||||
if ((!root || root == this) && !mNodeInfo->Equals(nsGkAtoms::overlay) &&
|
||||
(window = doc->GetInnerWindow()) && window->IsInnerWindow()) {
|
||||
|
||||
nsCOMPtr<nsPIDOMEventTarget> piTarget = do_QueryInterface(window);
|
||||
if (!piTarget)
|
||||
|
Loading…
Reference in New Issue
Block a user