Skip to content

Compat: Add DOMRect polyfill#20110

Merged
ellatrix merged 2 commits into
masterfrom
add/domrect-polyfill
Feb 10, 2020
Merged

Compat: Add DOMRect polyfill#20110
ellatrix merged 2 commits into
masterfrom
add/domrect-polyfill

Conversation

@aduth
Copy link
Copy Markdown
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 Core labels Feb 7, 2020
@aduth aduth requested a review from TimothyBJacobs as a code owner February 7, 2020 21:23
Copy link
Copy Markdown
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
Copy Markdown
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!

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

3 participants