Summary: | event.currentTarget for listener registered on window should point to the window object like in Firefox | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael A. Puls II <shadow2531> | ||||||
Component: | DOM | Assignee: | Sam Weinig <sam> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, arv | ||||||
Priority: | P2 | Keywords: | EasyFix | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | Windows XP | ||||||||
Attachments: |
|
Description
Michael A. Puls II
2009-06-20 18:13:31 PDT
Created attachment 31604 [details]
TC that uses the 'input' event
This is possible now that DOMWindow inherits from EventTarget. The fix should be in Node.cpp: 2487: event->setCurrentTarget(targetForWindowEvents->document()); // FIXME: targetForWindowEvents should be the event target. 2525: event->setCurrentTarget(targetForWindowEvents->document()); // FIXME: targetForWindowEvents should be the event target. Created attachment 31619 [details]
patch
Comment on attachment 31619 [details]
patch
Looks good.
|