Re: [whatwg/dom] Define how script-created click events are special during dispatch (#325)

While @RByers is correct about click and the default event handler in Blink. I believe we do have a couple of pre-dispatch handlers in Blink that act on pre-dispatch events.

TextInput can submit a form (probably not good)...
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/HTMLInputElement.cpp?sq=package:chromium&rcl=1476256712&l=1147

touchstart and mouse down open controls...
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp?sq=package:chromium&rcl=1476256712&l=250

Seems like a work around for a bug to me:
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp?sq=package:chromium&rcl=1476256712&l=73

Can probably be tested with isTrusted...
https://cs.chromium.org/chromium/src/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp?sq=package:chromium&rcl=1476256712&l=3641

We only have one postDispatch event handler and that is for click.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/325#issuecomment-253239309

Received on Wednesday, 12 October 2016 15:02:32 UTC