Closed Bug 2080134 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63437 - [SAH] Remove stale expectation and harden storage-access-headers WPT

Categories

(Core :: Privacy: Anti-Tracking, 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 63437 into mozilla-central (this bug is closed when the sync is complete).

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

Mike Taylor <miketaylr@chromium.org> wrote:

[SAH] Remove stale expectation and harden storage-access-headers WPT

storage-access-headers.tentative.https.sub.window.html has been marked
[ Failure Timeout ] since the storage-access-api WPTs started running
against Chrome (via ChromeDriver) instead of content_shell, because the
Storage Access API is implemented in the //chrome layer. The causes of
those failures have since been fixed (ChromeDriver's SetPermission frame
origin, the test assuming cross-site cookies are blocked by default, and
SetFirstPartyCookie's { once: true } listener being detached by stray
messages), and the test now passes reliably, so remove the expectation.

Also clean up the test itself:

  • Run areCrossSiteCookiesAllowedByDefault() inside promise_setup()
    instead of an unawaited async IIFE. Previously the first three
    promise_tests started running while the probe frame was still being
    loaded and messaged, so the probe ran concurrently with subtests that
    create cross-site frames and set storage-access permissions for the
    same origin.

  • Remove the responder iframes created by the probe and by five
    subtests once they are no longer needed. These frames load
    testharness.js and post a {type: "complete"} message to every
    ancestor when their 10s harness timeout fires, and keeping them
    around leaves cross-site frames alive for the remainder of the test.

TAG=agy
CONV=0d875fba-fe1a-401b-9481-9a9d918e0eca

Bug: 366530634
Change-Id: I058f027f2890290c5fbd4539310b966010f49523
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8520603
Auto-Submit: Mike Taylor \<miketaylr@chromium.org>
Commit-Queue: Mike Taylor \<miketaylr@chromium.org>
Reviewed-by: Chris Fredrickson \<cfredric@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1714977}

Component: web-platform-tests → Privacy: Anti-Tracking
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 40 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 35[Gecko-linux2404-64-debug] 36[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 37[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-64-25h2-opt] 38[Gecko-windows11-32-25h2-opt] 39[Gecko-linux2404-64-opt]
PASS : 14[GitHub] 121[Gecko-windows11-32-25h2-debug] 124[Gecko-windows11-32-25h2-opt] 126[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 128[Gecko-windows11-64-25h2-opt] 129[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug]
FAIL : 3[GitHub] 17[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] 18[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]
TIMEOUT: 1[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-opt] 2[Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 3[Gecko-android-em-14-x86_64-debug-geckoview] 4[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 1
PASS : 4

Safari

OK : 1
PASS : 2
FAIL : 15

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

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.