Skip to content

core: save native getBoundingClientRect to avoid overrides#14002

Merged
alexnj merged 4 commits into
GoogleChrome:masterfrom
alexnj:bug-14001
May 20, 2022
Merged

core: save native getBoundingClientRect to avoid overrides#14002
alexnj merged 4 commits into
GoogleChrome:masterfrom
alexnj:bug-14001

Conversation

@alexnj

@alexnj alexnj commented May 13, 2022

Copy link
Copy Markdown
Member

Fixes #14001.

The issue was due to a conflict with an overridden HTMLElement.prototype.getBoundingClientRect present on the page in the bug report. This fix saves a reference to the native function and uses it across.

@alexnj alexnj requested a review from a team as a code owner May 13, 2022 23:10
@alexnj alexnj requested review from brendankenny and removed request for a team May 13, 2022 23:10
@alexnj alexnj changed the title core: save native getBoundingClientRect to avoid overrides. core: save native getBoundingClientRect to avoid overrides May 13, 2022

@connorjclark connorjclark left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good!

@connorjclark

Copy link
Copy Markdown
Collaborator

we gonna land #14005 first, then this PR (w/o the changes to image-elements gatherer since that can be isolated)

@connorjclark connorjclark requested review from connorjclark and removed request for brendankenny May 16, 2022 19:18
@alexnj alexnj merged commit 6e262f2 into GoogleChrome:master May 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error rendering html report when running cli performance audit.

4 participants