Primary eng (and PM) emails
Summary
Now that document.createEvent will no longer automatically support new event interfaces, I'll also try to remove some things that have been added automatically that don't make sense and (probably) aren't needed for compat.
Motivation
The way that scrips create events on the web platform has from
var event = document.createEvent('MouseEvent');
event.initMouseEvent(/* very long argument list */);
to
var event = new MouseEvent('mousemove', /* dictionary */);
Without the init*Event() method, support in createEvent doesn't really make sense.
Compatibility Risk
https://software.hixie.ch/utilities/js/live-dom-viewer/saved/4355 was used to test recent versions of Chrome, Firefox and Edge on Windows, and Safari on Mac. The interfaces that were supported only in Chrome or in Chrome+Safari were identified.
Even without init*Event() methods, document.createEvent is probably used for feature detection sometimes. This would be a concern if usage were high, like in the case of WebKitTransitionEvent, but not here.
Alternative implementation suggestion for web developers
Use e.g. new BlobEvent('foo' { data: blob }) to create a BlobEvent, or 'BlobEvent' in window for feature testing.
Usage information from UseCounter
The 29 Blink-only strings:
OWP launch tracking bug
I will use crbug.com/569690 which is not an OWP launch tracking bug.
Entry on the feature dashboard
None. Given the usage I don't think it's worth trying to summarize this change as a single thing, and one entry per string would be way overkill.
Requesting approval to remove too?
Yes. A deprecation message would likely reach zero people given the usage.--
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+unsubscribe@chromium.org.
Entry on the feature dashboard
None. Given the usage I don't think it's worth trying to summarize this change as a single thing, and one entry per string would be way overkill.