Closed Bug 2072761 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62746 - ServiceWorker: Propagate TAO check result via FetchAPIResponse

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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

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

Yoshisto Yanagisawa <yyanagisawa@chromium.org> wrote:

ServiceWorker: Propagate TAO check result via FetchAPIResponse

When a ServiceWorker fetches a resource that undergoes HTTP redirects,
the TAO (Timing-Allow-Origin) check across the redirect chain is
evaluated during the network fetch in the Service Worker context.

Previously, this timing allow check result was not preserved in
FetchAPIResponse. Consequently, downstream ServiceWorker resource
loaders (ServiceWorkerSubresourceLoader and
ServiceWorkerMainResourceLoader) could only evaluate the
Timing-Allow-Origin header of the final response without accounting for
whether the initial or intermediate redirects passed the TAO check.

This CL adds a timing_allow_passed field to blink.mojom.FetchAPIResponse
and propagates the check result from FetchResponseData to ensure
accurate Timing-Allow-Origin handling consistent with the Fetch
specification.

Bug: 550666278
Change-Id: I4fe2f49ed2eb23371820281c8f5831bbbc6c9683
TAG=agy
CONV=31d53e00-4937-4ac8-9798-3aa965f6e95e
Reviewed-on: https://chromium-review.googlesource.com/8294879
WPT-Export-Revision: d9efe76659e9abffdc8406acd0dd63a5c4afc5e5

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core
Attached file Notable wpt changes —

CI Results

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

Total 279 tests and 1 subtests

Status Summary

Firefox

OK : 1[GitHub] 242[Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-windows11-32-25h2-opt] 243[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1429[Gecko-android-em-14-x86_64-opt-geckoview] 1430[Gecko-android-em-14-x86_64-lite-opt-geckoview] 1431[Gecko-android-em-14-x86_64-debug-geckoview] 1455[Gecko-windows11-32-25h2-debug] 1456[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug] 1482[Gecko-windows11-32-25h2-opt] 1484[Gecko-windows11-64-25h2-opt]
FAIL : 1[GitHub] 159[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 160[Gecko-android-em-14-x86_64-opt-geckoview] 163[Gecko-linux2404-64-debug] 164[Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 170[Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
TIMEOUT: 2
ERROR : 1

Chrome

OK : 1
FAIL : 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

(See attachment for full changes)

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: