Skip to content

Conversation

@aduth
Copy link
Member

@aduth aduth commented Feb 7, 2020

Fixes #19979
Alternative to #20103
Related: #19823, https://core.trac.wordpress.org/ticket/49360

This pull request seeks to add a polyfill for DOMRect to resolve errors which can occur when using browsers which do not support this feature (Internet Explorer, Edge). It is modeled after the changes in #19823, and uses the same polyfill-library library. The library version at the version inherited from core (3.26.0) did not include this at the time, and it was only made available later. The changes are pinned to the current version as of the time of writing (3.42.0). An upgrade to this dependency would be required for an equivalent core patch.

Testing Instructions:

Repeat steps to reproduce from #19979, verifying no error.

@aduth aduth added [Type] Bug An existing feature does not function as intended Browser Issues Issues or PRs that are related to browser specific problems Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta labels Feb 7, 2020
@aduth aduth requested a review from TimothyBJacobs as a code owner February 7, 2020 21:23
Copy link
Member

@jorgefilipecosta jorgefilipecosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Fixes the problem in my tests.

Copy link
Member

@ellatrix ellatrix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aduth!

@ellatrix ellatrix merged commit a0860ee into master Feb 10, 2020
@ellatrix ellatrix deleted the add/domrect-polyfill branch February 10, 2020 09:59
@github-actions github-actions bot added this to the Gutenberg 7.5 milestone Feb 10, 2020
@jorgefilipecosta jorgefilipecosta removed the Backport to WP 6.9 Beta/RC Pull request that needs to be backported to the WordPress major release that's currently in beta label Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Browser Issues Issues or PRs that are related to browser specific problems [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Block Editor: ⨁ icon and Block toolbar are missing in Microsoft Edge 18

4 participants