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

[Sheriff] Fix anonymous iframe WPT #34125

Merged
merged 1 commit into from May 19, 2022

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 19, 2022

The test was flaky because of a race. In some cases, the iframe's document body does not exist yet when the test tries to attach childrens to it. I believe the reason is that the test was relying on the iframe's window location to know whether the iframe loaded. I think the location is not guaranteed to be updated after the iframe document has loaded.

Example of a failure: https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20Tests%20(dbg)(1)/105109/overview

Bug: 1251084
Change-Id: I78f3dd34a9d98d2d057d27dc993cb624fd0ae84b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3654181
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Auto-Submit: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yifan Luo <lyf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1005218}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

The test was flaky because of a race. In some cases, the iframe's document body does not exist yet when the test tries to attach childrens to it. I believe the reason is that the test was relying on the iframe's window location to know whether the iframe loaded. I think the location is not guaranteed to be updated after the iframe document has loaded.

Example of a failure: https://ci.chromium.org/ui/p/chromium/builders/ci/Linux%20Tests%20(dbg)(1)/105109/overview

Bug: 1251084
Change-Id: I78f3dd34a9d98d2d057d27dc993cb624fd0ae84b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3654181
Commit-Queue: Antonio Sartori <antoniosartori@chromium.org>
Auto-Submit: Antonio Sartori <antoniosartori@chromium.org>
Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: Yifan Luo <lyf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1005218}
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.

None yet

3 participants