Closed Bug 2080521 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63504 - [wpt] Fix guaranteed timeout in COOP access-reporting/reporting-observer

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 63504 into mozilla-central (this bug is closed when the sync is complete).

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

Mike Taylor <miketaylr@chromium.org> wrote:

[wpt] Fix guaranteed timeout in COOP access-reporting/reporting-observer

The last subtest ("Access from cross-site iframe") expects no
coop-access-violation report and calls receive(this_window_token, 2000)
expecting it to resolve with "timeout". However, dispatcher.js's
receive() only takes a uuid and polls the dispatcher forever; the 2000
is silently ignored. Because Chromium correctly never dispatches a report
here, the subtest can never complete and the whole test always hits the
harness timeout (150s in Debug) and gets its content_shell killed.

Use the directory's existing receiveReport() helper from
reporting-common.js instead, which races the dispatcher against a 3s
step_timeout and returns "timeout" when nothing arrives, so the subtest
completes in a few seconds. The test now passes deterministically on
Linux, so drop the [ Pass Timeout ] expectation.

Bug: 40180286
Change-Id: Ia92e732d80c25b46e66d8520b5e9b7b67d14ebe0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8547071
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@{#1715811}

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 1 tests and 4 subtests

Status Summary

Firefox

FAIL : 2
TIMEOUT: 2
NOTRUN : 1

Chrome

OK : 1
PASS : 4

Safari

FAIL : 2
TIMEOUT: 2
NOTRUN : 1

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/67f2ca92ceb4 https://hg.mozilla.org/integration/autoland/rev/e091649219ba [wpt PR 63504] - [wpt] Fix guaranteed timeout in COOP access-reporting/reporting-observer, 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.