[wpt-sync] Sync PR 63473 - [wpt] Make clear-cache.https.html deterministic
Categories
(Core :: DOM: Security, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63473 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63473
Details from upstream follow.
Mike Taylor <miketaylr@chromium.org> wrote:
[wpt] Make clear-cache.https.html deterministic
The cache-clearing subtests compare random per-response tokens (uuid4
strings / random PNG dimensions). When a subtest fails,
assert_not_equals embeds the token in its failure message, so the
baseline could never match and the test was marked '[ Failure ] # Flaky
output'.Additionally, clear-cache.https.html runs 13 sequential promise_tests
that open 32 popups sequentially (~8.3s), which previously caused it to
also time out against the 6s default timeout on Linux, Win, and Mac bots
(it was marked '[ Failure Timeout ] # Flaky output' on those platforms
before https://crrev.com/c/7910841 consolidated the platform lines).Assert on the equality result instead so the failure message is stable,
add \<meta name="timeout" content="long">, update the baseline, and drop
the flaky-output expectation lines.The three Image/CSS/JS subtests still fail deterministically:
Clear-Site- Data: 'cache' clears the HTTP cache but does not evict the
renderer's in-process MemoryCache for the cleared origin, so same-origin
popups keep reusing the cached resources (the fetch()-based subtests
pass because fetch() bypasses the MemoryCache).Bug: none
Change-Id: Ifd25b85f4c3dea88161cb1cd627008ee12336dff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8544790
Reviewed-by: Ari Chivukula \<arichiv@chromium.org>
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Commit-Queue: Ari Chivukula \<arichiv@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1715436}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=103200
| Assignee | ||
Comment 2•1 month ago
|
||
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 : 4[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 : 29[GitHub] 47[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]
ERROR : 1
Chrome
OK : 4
PASS : 21
FAIL : 8
Safari
OK : 4
PASS : 12
FAIL : 14
PRECONDITION_FAILED: 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /clear-site-data/executionContexts.sub.html [wpt.fyi]:
SKIP - /clear-site-data/storage.https.html [wpt.fyi]:
SKIP - /clear-site-data/no-cors-fetch-window.https.sub.html [wpt.fyi]:
ERROR
Description
•