Closed Bug 1458392 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 10745 - Fix timing allow check algorithm for service workers

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Nicolas Pena <npm@chromium.org> wrote:
>  Fix timing allow check algorithm for service workers
>  
>  This CL uses the OriginalURLViaServiceWorker() in the timing allow check
>  algorithm if the response WasFetchedViaServiceWorker(). This way, if a
>  service worker changes a same origin request to become cross origin,
>  then the timing allow check algorithm will still fail.
>  
>  Bug: 837275
>  Change-Id: I7e497a6fcc2ee14244121b915ca5f5cceded417a
>  Reviewed-on: https://chromium-review.googlesource.com/1038229
>  WPT-Export-Revision: 4b535aa2f03c50b5b32b1bcd3eb015d41336b8d1
Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core
Ran 1 tests and 1 subtests
OK     : 1
PASS   : 1
Pushed by james@hoppipolla.co.uk:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7fe3ccfc6193
[wpt PR 10745] - Fix timing allow check algorithm for service workers, a=testonly
https://hg.mozilla.org/mozilla-central/rev/7fe3ccfc6193
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.