Skip to content

core: save native getBoundingClientRect to avoid overrides #14002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 20, 2022

Conversation

alexnj
Copy link
Member

@alexnj alexnj commented May 13, 2022

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
Copy link
Collaborator

@connorjclark connorjclark left a comment

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
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