On 10/31/2017 04:03 AM, Rick Byers wrote:
> +Mike in case he has any more concrete data on window.event.
>
> What's our behavior here today? It's sort of broken, isn't it?
Blink exposes the internals of closed ShadowRoot via window.event and that breaks the whole concept of closed ShadowRoot.
I wouldn't we surprised if we had still other similar spec level issues to fix (well, here we haven't really had any spec for window.event IEism).
-Olli
>
> On Mon, Oct 30, 2017 at 9:55 PM, Hayato Ito <
hay...@chromium.org <mailto:
hay...@chromium.org>> wrote:
>
> Ah, there is no evidence. That is my guess, trusting Firefox folks, given that:
>
> - Firefox wants to support window.event for interoperability.
> - However, they don't want to support window.event for Shadow DOM.
>
> It sounds that they don't have a trouble for a web site which uses both Shadow DOM and window.event.
>
>
> On Tue, Oct 31, 2017 at 12:03 AM Rick Byers <
rby...@chromium.org <mailto:
rby...@chromium.org>> wrote:
>
> I support making this change based on the idea that window.event is largely legacy (not supported by all browsers, left for compat only) and
> ShadowDOM is a new thing unlikely to be combined with legacy IE6-specific code etc.
>
> But is there any evidence you can share for the "very low risk" claim? The existing behavior is somewhat broken, right?
>
> On Mon, Oct 30, 2017 at 2:30 AM, Hayato Ito <
hay...@chromium.org <mailto:
hay...@chromium.org>> wrote:
>
> *Primary eng (and PM) emails*
>
hay...@chromium.org <mailto:
hay...@chromium.org>
>
> *Link to “Intent to Deprecate” thread*
> No. We're skipping "Intent to Deprecate" here because compat risk is very low, I think. We should just try to change the existing behavior
> here.
>
> *Summary*
> The context is:
https://github.com/whatwg/dom/issues/334 <
https://github.com/whatwg/dom/issues/334>
> We are trying to standardize certain Microsoft event extensions; 'window.event' is one of them, which Blink already *supports*.
>
> In the discussion, we agreed that window.event should be 'undefined' if an Event's target is in a shadow tree.
> That is effectively equivalent to *removing* window.event for Shadow DOM.
>
> *Motivation*
> Improve the conformance to DOM Standard.
>
> *Interoperability and Compatibility Risk*
> Edge: Shadow DOM is not shipped
> Firefox: This behavior is what they want; Shadow DOM is being implemented
> Safari: No signal
>
> *Alternative implementation suggestion for web developers*
> No. We developers shouldn't use window.event.
>
> *Usage information from UseCounter*
> NA
>
> *OWP launch tracking bug*
>
http://crbug.com/779461
>
> *Entry on the feature dashboard*
>
https://www.chromestatus.com/features/5084727350394880 <
https://www.chromestatus.com/features/5084727350394880>
> <
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFpjS_0n4yJ%3DdFOJWSc0xZPkn6xRNS0p8DaovfnSQVw0tOLVZQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>
> --
> 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>.
> To view this discussion on the web visit
>
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_R0XT4%3DNyq7dFXj0E7hXpjFvL2V9C8XbKySXje5%3DfDBQ%40mail.gmail.com
> <
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY_R0XT4%3DNyq7dFXj0E7hXpjFvL2V9C8XbKySXje5%3DfDBQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.