[wp-trac] [WordPress Trac] #49360: Scripts: Add polyfill for window.URL

WordPress Trac noreply at wordpress.org
Mon Feb 10 15:15:20 UTC 2020


#49360: Scripts: Add polyfill for window.URL
---------------------------+-------------------------
 Reporter:  aduth          |       Owner:  aduth
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  5.4
Component:  Script Loader  |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:  javascript
---------------------------+-------------------------
Changes (by aduth):

 * owner:  (none) => aduth
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47238" 47238]:
 {{{
 #!CommitTicketReference repository="" revision="47238"
 Script Loader: Add polyfill for window.URL, window.DOMRect.

 Pending block editor revisions for WordPress 5.4 will make use of
 `window.URL` and `window.DOMRect`. These are not available in Internet
 Explorer (or pre-Chromium Edge for `DOMRect`) and must be polyfilled to
 avoid script errors.

 The changes make use of the existing polyfill pattern, and existing
 `polyfill-library` dependency. The dependency is bumped to the latest
 version, since the previous version did not include the `DOMRect`
 polyfill.

 Props jorgefilipecosta.
 Fixes #49360.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49360#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list