mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Fixing bug 432591. Only register event handlers on inner windows. r+sr=jonas@sicking.cc, a=dsicore
This commit is contained in:
parent
ca27ef83a7
commit
a46e2577cb
@ -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