[Webkit-unassigned] [Bug 26141] Implement onformchange and onforminput event handlers
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 12 23:24:30 PST 2011
https://bugs.webkit.org/show_bug.cgi?id=26141
Kent Tamura <tkent at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #78643|review? |review-
Flag| |
--- Comment #12 from Kent Tamura <tkent at chromium.org> 2011-01-12 23:24:30 PST ---
(From update of attachment 78643)
View in context: https://bugs.webkit.org/attachment.cgi?id=78643&action=review
Please see HTMLFormElement::collectUnhandledInvalidControls() for how to fix the following dispatchEvent() issues.
>> LayoutTests/fast/forms/script-tests/formchange-event.js:3
>> +function sendKey(element, keyName) {
>
> You should probably use eventSender here instead.
I like avoiding eventSender in order to make the test workable on browsers.
>> Source/WebCore/html/HTMLElement.cpp:828
>> + dispatchEvent(Event::create(eventNames().inputEvent, true, false));
>
> Node::dispatchInputEvents();
Because dispatchEvent() may call JavaScript event handlers, "this" object can be deleted in the event handlers.
> Source/WebCore/html/HTMLFormControlElement.cpp:183
> + dispatchEvent(Event::create(eventNames().inputEvent, true, false));
ditto.
"this" might be deleted in dispatchEvent(). We can't call any methods of this.
> Source/WebCore/html/HTMLFormElement.cpp:600
> + if (!formElement->dispatchEvent(Event::create(eventNames().forminputEvent, false, false)))
ditto.
dispatchEvent() calls JavaScript code. "this" can be deleted and m_associatedElements can be updated.
> Source/WebCore/html/HTMLFormElement.cpp:612
> + if (!formElement->dispatchEvent(Event::create(eventNames().formchangeEvent, false, false)))
ditto.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list