Closed (fixed)
Project:
Drupal core
Version:
9.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2019 at 17:29 UTC
Updated:
14 Nov 2019 at 13:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
zrpnrRemoved matchmedia files and core asset libraries in ckeditor, toolbar, seven and claro.
Removed deprecation messages in
DeprecationListenerTraitUpdated IS to point to existing CR.
Comment #3
bnjmnmLooks like
"matchMedia"can be removed from the"globals":property in the eslint configs.To err on the side of caution and to ease the workload of potential future reviewers: I looked a bit further into the warning that can be found at https://caniuse.com/#feat=matchmedia, which states
I confirmed that
MediaQueryList.addEventListenerwas not part of the functionality covered by the matchMedia polyfill, so removing it will not impact IE11/Safari in any way. In those browsers,MediaQueryList.addEventListenerdid not work regardless of the polyfill's presence.Comment #4
zrpnrThanks for doing this additional due diligence @bnjmnm!
I removed the global matchMedia from the .eslintrc file.
Comment #5
bnjmnm#4 takes care of everything I could spot, RTBC.
Comment #6
nod_rerolled
Comment #7
gábor hojtsyFix credits.
Comment #8
gábor hojtsySitting in person with @nod, who reviewed and nodded that this looked right.
Comment #10
gábor hojtsy