WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
52740
When a node is moved between documents, EventHandler should be purged of any mention of it
https://bugs.webkit.org/show_bug.cgi?id=52740
Summary
When a node is moved between documents, EventHandler should be purged of any ...
Dimitri Glazkov (Google)
Reported
2011-01-19 13:55:16 PST
This came up in
bug 52464
: after setCapturingMouseEventsNode is set and the node is moved to a different document, bizarre things happen, like events firing into the node from another document. I suspect the same things would happen with mouseUnderMouse/lastMouseUnderMouse, dragTarget, and mousePressNode. Even though this doesn't appear to be a security issue, we should fix this wierdness.
Attachments
Add attachment
proposed patch, testcase, etc.
Darin Adler
Comment 1
2011-01-19 14:06:56 PST
There may be a way to do this at some other level then moving between documents and cover more potential problems. For example, I’m not sure the event handler should continue tracking a node if it’s not rendered any more or not in the document tree any more. On the other hand, doing this at some other level could be risky, so maybe we should stick to doing it at the “move between documents” level.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug