Closed Bug 2053118 Opened 11 days ago Closed 6 days ago

[wpt-sync] Sync PR 61117 - [Connection-Allowlist] Add web platform tests for connection allowlist enforcement on PaymentRequest API: manifest download

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox154 fixed)

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Xiaochen Zhou <xiaochenzh@chromium.org> wrote:

[Connection-Allowlist] Add web platform tests for connection allowlist enforcement on PaymentRequest API: manifest download

The web platform tests cover the manifest download behavior when there
is a connection allowlist on the initiator frame of PaymentRequest API.

Requests flow:

  1. PaymentRequest API sends a HEAD request to /pay.
  2. A response with Link header pointing to the payment manifest is
    sent back.
  3. The API downloads the payment manifest.
  4. The payment manifest points to another manifest for web app.
  5. The API downloads the web app manifest.
  6. The web app registers a service worker. (This does not have
    allowlist enforced yet. Next CL crrev.com/c/7927268 will add that)
  7. request.canMakePayment() returns true if all above are allowed.

The tests set up the allowlist to test each of these requests being
allowed or blocked.

About CA: https://github.com/WICG/connection-allowlists

Bug: 519915328, 447954811, 506480941
Change-Id: I8ae8f5f93c3e1060c530a354634c0d3361196783
Reviewed-on: https://chromium-review.googlesource.com/7995117
WPT-Export-Revision: 05866d170268329d39c7db657bb14a550e995b83

CI Results

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

Total 73 tests and 5 subtests

Status Summary

Firefox

OK : 6[GitHub] 68[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] 69[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 : 106[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] 111[Gecko-android-em-14-x86_64-debug-geckoview] 115[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]
FAIL : 6[GitHub] 189[Gecko-android-em-14-x86_64-debug-geckoview] 190[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 199[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 : 6
PASS : 2
FAIL : 4

Safari

OK : 6
PASS : 4
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/4980bf754b19 https://hg.mozilla.org/integration/autoland/rev/c5158c72e459 [wpt PR 61117] - [Connection-Allowlist] Add web platform tests for connection allowlist enforcement on PaymentRequest API: manifest download, a=testonly https://github.com/mozilla-firefox/firefox/commit/41a9683a031e https://hg.mozilla.org/integration/autoland/rev/606ff02e0ec4 [wpt PR 61117] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 6 days ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
You need to log in before you can comment on or make changes to this bug.