On 03/21/2017 03:49 PM, 'Dave Tapuska' via blink-dev wrote:
> I believe Gecko does something such as if a disabled form control exists on the event path then it doesn't dispatch the event? Boris, Olli can you
> confirm?
Currently Gecko cuts the event path to the disabled form control (control is not in the path)
>
> Doing something like that for the click event would certainly rationalize dispatching the click event.
>
> dave.
>
> On Thu, Mar 16, 2017 at 12:24 PM, smaug <
sm...@welho.com <mailto:
sm...@welho.com>> wrote:
>
> On 03/16/2017 06:21 PM, Dave Tapuska wrote:
>
> Yes Firefox shipped a subset of events. I called this out on the chromestatus issue in the notes section; as the site only allows Shipped/Not
> Shipped
> selection. It appears the notes were not copied into this semi-automatic Intent to Implement.
>
> Chrome already fires pointer events at disabled form controls (it was a recent change).
>
> Only MouseEvents are subject to our "isDisabledFormControl", all other UA events don't go through that code path. Thanks for bringing up that
> issue in
> the bugzilla report. It is related to how our code handles shadow DOM with disabled form controls; the check is being bypassed because the hit
> tested
> node is a div inside the <input element>. I believe the spec is indicating that the actual target of the element and not the shadow dom target
> so that
> ultimately is an implementation flaw we can address.
>
> Hmm; the shadow dom one is tricky wonder if don't stop propagation of "click" events on a disabled form control. But that creates interesting
> issues
> for capturing event listeners. Should a checkbox inside a disabled button be allowed to activate? jsbin is giving me issues in saving a
> snapshot but
> Firefox and Chrome differ here.
>
> Is the spec ultimately trying to prevent the activation behavior of the disabled element? And really dispatching the click element would be ok
> (cause
> clearly we are doing it in some scenarios today) just not doing the activation behavior for disabled form controls is a no-op.
>
> Dispatching click would most probably break web sites.
>
>
> dave.
>
> On Thu, Mar 16, 2017 at 11:26 AM, Boris Zbarsky <
bzba...@mit.edu <mailto:
bzba...@mit.edu> <mailto:
bzba...@mit.edu
> <mailto:
bzba...@mit.edu>>> wrote:
>
> On 3/16/17 10:22 AM, Dave Tapuska wrote:
>
> Firefox: Shipped
>
>
> Not quite.
>
> What Firefox ships is that we have a whitelist of events that are not affected by the disabled state. Those are, at this moment:
>
> mousemove, mouseover, mouseout, mouseenter, mouseleave, pointermove, pointerover, pointerout, pointerenter, pointerleave, wheel,
> DOMMouseScroll,
> MozMousePixelScroll
>
> All other events are affected. This includes "mousedown", "click", "mouseup", all non-mouse events, etc.
>
>
https://bugzilla.mozilla.org/show_bug.cgi?id=1220048 <
https://bugzilla.mozilla.org/show_bug.cgi?id=1220048>
> <
https://bugzilla.mozilla.org/show_bug.cgi?id=1220048 <
https://bugzilla.mozilla.org/show_bug.cgi?id=1220048>> tracks some open questions on
> our end
> about how this should work, including some data on the rather weird Chrome behavior as of the time that bug was filed.
>
> With all that in mind, what is the actual behavior being proposed here, both for "click" and non-"click" events?
>
> -Boris
>
>
> --
> You received this message because you are subscribed to the Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev%2Bunsu...@chromium.org>
> <mailto:
blink-dev%2Bunsu...@chromium.org <mailto:
blink-dev%252Buns...@chromium.org>>.
>
>
> --
> You received this message because you are subscribed to the Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev%2Bunsu...@chromium.org>
> <mailto:
blink-dev+...@chromium.org <mailto:
blink-dev%2Bunsu...@chromium.org>>.
>
>
> --
> You received this message because you are subscribed to the Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev%2Bunsu...@chromium.org>.
>
>
> --
> You received this message because you are subscribed to the Google Groups "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
blink-dev+...@chromium.org
> <mailto:
blink-dev+...@chromium.org>.