| Summary: | REGRESSION (r228260): Events handled by input method invoke default event handler | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | mzp <mzpppp> | ||||||||
| Component: | WebCore JavaScript | Assignee: | Ryosuke Niwa <rniwa> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | ap, cdumez, darin, dbates, esprehn+autocc, ews-watchlist, kangil.han, rniwa, shikisuen, webkit-bug-importer, wenson_hsieh | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Mac | ||||||||||
| OS: | macOS 10.13 | ||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=251061 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
mzp
2018-08-06 19:36:32 PDT
Created attachment 346801 [details]
WIP
Created attachment 346813 [details]
Fixes the bug
Comment on attachment 346813 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=346813&action=review > LayoutTests/ChangeLog:8 > + Added a regression test. Due to the lack of adaquete support of textInputController in WebKitTestRunner, Nit - adequate Comment on attachment 346813 [details] Fixes the bug View in context: https://bugs.webkit.org/attachment.cgi?id=346813&action=review > Source/WebCore/dom/Event.h:122 > + bool ignoreDefaultEventHandler() const { return m_ignoreDefaultEventHandler; } I almost feel like the getter should bed name "isIgnoringDefaultEventHandler", and the method that sets this bit should be called "ignoreDefaultEventHandler", but "ignoreDefaultEventHandler" and "setIgnoreDefaultEventHandler" seem to match "defaultHandled" and "setDefaultHandled" already, so this is probably fine. (In reply to Wenson Hsieh from comment #5) > Comment on attachment 346813 [details] > Fixes the bug > > View in context: > https://bugs.webkit.org/attachment.cgi?id=346813&action=review > > > Source/WebCore/dom/Event.h:122 > > + bool ignoreDefaultEventHandler() const { return m_ignoreDefaultEventHandler; } > > I almost feel like the getter should bed name > "isIgnoringDefaultEventHandler", and the method that sets this bit should be > called "ignoreDefaultEventHandler", but "ignoreDefaultEventHandler" and > "setIgnoreDefaultEventHandler" seem to match "defaultHandled" and > "setDefaultHandled" already, so this is probably fine. Hm... maybe isDefaultEventHandlerIgnored and setIsDefaultEventHandlerIgnored? (In reply to Ryosuke Niwa from comment #6) > (In reply to Wenson Hsieh from comment #5) > > Comment on attachment 346813 [details] > > Fixes the bug > > > > View in context: > > https://bugs.webkit.org/attachment.cgi?id=346813&action=review > > > > > Source/WebCore/dom/Event.h:122 > > > + bool ignoreDefaultEventHandler() const { return m_ignoreDefaultEventHandler; } > > > > I almost feel like the getter should bed name > > "isIgnoringDefaultEventHandler", and the method that sets this bit should be > > called "ignoreDefaultEventHandler", but "ignoreDefaultEventHandler" and > > "setIgnoreDefaultEventHandler" seem to match "defaultHandled" and > > "setDefaultHandled" already, so this is probably fine. > > Hm... maybe isDefaultEventHandlerIgnored and setIsDefaultEventHandlerIgnored? Sounds good to me. Committed r234718: <https://trac.webkit.org/changeset/234718> |