Skip to content

fix: calculate pixel ratio based on actual screenshot data in case of oopif - #1331

Open
shadowusr wants to merge 2 commits into
masterfrom
users/shadowusr/INFRADUTY-30514.fix-v3
Open

shadowusr wants to merge 2 commits into
masterfrom
users/shadowusr/INFRADUTY-30514.fix-v3

Conversation

@shadowusr

Copy link
Copy Markdown
Member

What's done?

This is a second iteration of out-of-process-iframe fix. In the first fix, we relied on the fact that after screenshot pixel ratio should be correct. However, it turned out that there are race conditions possible when a page has iframe appearing in between capturing screenshot and getting pixelRatio value.

The new logic computes pixel ratio by dividing physical pixel screenshot width by css viewport width. This one should be 100% reliable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-17T22:24:33.029940Z 48c022d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

✅ Testplane browser-env run succeed

Report

@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

✅ Testplane E2E run succeed

Report

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48c022db88

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/browser/screen-shooter/validation/index.ts Outdated
@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/gemini-testing/testplane@1331

commit: e79f7ce

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.

1 participant