RESOLVED INVALID 109261
Events wrongly propagated over shadow boundaries when we set a relatedTarget in FocusEvent constructor
https://bugs.webkit.org/show_bug.cgi?id=109261
Summary Events wrongly propagated over shadow boundaries when we set a relatedTarget ...
Kentaro Hara
Reported 2013-02-07 22:20:24 PST
Currently we're creating a FocusEvent in Node.cpp in this way: RefPtr<FocusEvent> event = FocusEvent::create(eventNames().focusEvent, false, false, document()->defaultView(), 0, 0); EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(event.release(), oldFocusedNode)); Ideally we should create a FocusEvent in this way: RefPtr<FocusEvent> event = FocusEvent::create(eventNames().focusEvent, false, false, document()->defaultView(), 0, oldFocusedNode); EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(event.release())); However, if we do so, fast/dom/shadow/shadow-boundary-events.html fails. It looks like that FocusEvent.relatedTarget has to be set not in the FocusEvent constructor but in EventContext::handleLocalEvents(). The same issue exists in BlurEvent, FocusInEvent and FocusOutEvent. We should fix them.
Attachments
Hayato Ito
Comment 1 2013-02-12 20:28:17 PST
Marking INVALID since I cannot reproduce the issue. See bug 109650.
Note You need to log in before you can comment on or make changes to this bug.