Closed Bug 2080382 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63472 - [wpt] Make clear-site-data/executionContexts test fail fast

Categories

(Core :: DOM: Security, 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 63472 into mozilla-central (this bug is closed when the sync is complete).

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

Mike Taylor <miketaylr@chromium.org> wrote:

[wpt] Make clear-site-data/executionContexts test fail fast

executionContexts.sub.html waits unconditionally for an iframe to be
reloaded by a 'Clear-Site-Data: "executionContexts"' response. Chromium
does not implement the 'executionContexts' type (it is ignored with an
'Unrecognized type' console warning, and '*' does not include it), and
neither does any other shipping engine: Firefox removed it, and
w3c/webappsec-clear-site-data#59 proposes dropping it from the spec. The
test therefore always runs into the harness timeout (and a content_shell
kill) on every bot.

Bound each wait with test.step_timeout(1000) so unsupported
implementations produce a deterministic per-subtest FAIL in a few
seconds, only start the clock once the response carrying the header has
been received, remove each subtest's iframe on cleanup so a late message
cannot leak into the next subtest, mark the test as timeout=long so the
two sequential negative waits have ample headroom on slow bots, and drop
the no-op assert_true(true) calls. Add the Chromium baseline and remove
the [ Timeout ] expectation.

Bug: crbug.com/40475877
Change-Id: I73c2a4794c6a209f59122851b01796df3740c4d7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8544830
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@{#1715435}

Component: web-platform-tests → DOM: Security
Product: Testing → Core

CI Results

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

Total 15 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 12[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 47
FAIL : 2
ERROR: 1

Chrome

OK : 1
FAIL : 2

Safari

OK : 1
FAIL : 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a6faabd865f4 https://hg.mozilla.org/integration/autoland/rev/84fb5536ac9c [wpt PR 63472] - [wpt] Make clear-site-data/executionContexts test fail fast, 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.