Skip to content

Conversation

inancgumus
Copy link
Contributor

@inancgumus inancgumus commented Apr 24, 2025

What?

Removes the deprecated GetLayoutMetrics.VisualViewport usage.

See https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-getLayoutMetrics.

Why?

The CDP API, GetLayoutMetrics.VisualViewport, is deprecated. It doesn't pose an issue for our public surface area. However, it might fail sporadically, which is why we had a check for it.

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

Checklist: Documentation (only for k6 maintainers and if relevant)

Please do not merge this PR until the following items are filled out.

  • I have added the correct milestone and labels to the PR.
  • I have updated the release notes: link

Related PR(s)/Issue(s)

@inancgumus inancgumus added this to the v1.0.0 milestone Apr 24, 2025
@inancgumus inancgumus self-assigned this Apr 24, 2025
@inancgumus inancgumus marked this pull request as ready for review April 25, 2025 03:34
@inancgumus inancgumus requested a review from a team as a code owner April 25, 2025 03:34
@inancgumus inancgumus requested review from mstoykov and oleiade and removed request for a team April 25, 2025 03:35
Copy link
Contributor

@oleiade oleiade left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@inancgumus inancgumus merged commit a90f35a into master Apr 25, 2025
28 checks passed
@inancgumus inancgumus deleted the fix/getLayoutMetrics-deprecated-usage branch April 25, 2025 11:44
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.

3 participants