Closed Bug 2080522 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63505 - Deflake WPT COOP iframe-popup-same-origin-to-* tests

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63505 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63505
Details from upstream follow.

Mike Taylor <miketaylr@chromium.org> wrote:

Deflake WPT COOP iframe-popup-same-origin-to-* tests

In resources/iframe-test.js:

  1. Run subtests sequentially with promise_test instead of
    promise_test_parallel, and clean up each subtest's iframe and popup
    via t.add_cleanup (waiting for the popup to acknowledge before
    closing) instead of add_completion_callback. Previously, all 6
    subtests in a variant ran concurrently and kept all 6 iframes and 6
    popups alive polling /common/dispatcher/dispatcher.py until the entire
    test file completed, saturating the 6-socket-per-origin HTTP/1.1 pool.
  2. In the 'severed' opener state with window_open, poll popup.closed in
    the iframe up to 2.5s instead of relying on a fixed 500ms timer that
    could race cross-process WindowProxy detachment IPC under load.
  3. Remove the obsolete unparameterized [ Skip Timeout ] entries for
    iframe-popup-same-origin-to-unsafe-none.https.html and
    iframe-popup-same-origin-to-same-origin.https.html, as well as the
    Linux [ Failure Pass ] entry for
    iframe-popup-same-origin-to-unsafe-none.https.html?*, from
    TestExpectations.

Bug: 40815983, 539889938
Change-Id: Idad1867ad8befaac0306f5834f51062f0d8b158e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8550153
Reviewed-by: Ari Chivukula \<arichiv@chromium.org>
Commit-Queue: Ari Chivukula \<arichiv@chromium.org>
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1715814}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 35 tests and 6 subtests

Status Summary

Firefox

OK : 35
PASS: 189

Chrome

OK : 35
PASS: 189

Safari

OK : 35
PASS: 189

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/62f5ac56b2f3 https://hg.mozilla.org/integration/autoland/rev/74b7b6e83d7c [wpt PR 63505] - Deflake WPT COOP iframe-popup-same-origin-to-* tests, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.