Skip to content
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

Handle panic in screenshoter #1559

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Handle panic in screenshoter #1559

merged 3 commits into from
Dec 12, 2024

Conversation

olegbespalov
Copy link
Contributor

@olegbespalov olegbespalov commented Dec 11, 2024

What?

  • Migrate screenshoter from deprecated visualViewport to cssVisualViewport.
  • Fallback to defaults in the case of visualViewport is nil. This is an arguable change since it's partially hiding the issue, on the other side my rational was it's better to make a screenshot with defaults, rather than erroring it. Open to discussion.
  • Unfortunately, wasn't able to reproduce that's why no tests

Why?

Currently, we have an issue with panicing #1502

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Part of #1502

@olegbespalov olegbespalov self-assigned this Dec 11, 2024
@olegbespalov olegbespalov requested a review from a team as a code owner December 11, 2024 10:09
@olegbespalov olegbespalov requested review from mstoykov and ankur22 and removed request for a team December 11, 2024 10:09
common/screenshotter.go Outdated Show resolved Hide resolved
common/screenshotter.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@olegbespalov olegbespalov merged commit 689f4a9 into main Dec 12, 2024
23 checks passed
@olegbespalov olegbespalov deleted the fix/screenshoter branch December 12, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants