Skip to content

Commit

Permalink
Bug 1451994 [wpt PR 10340] - service worker: Add tests for inteceptio…
Browse files Browse the repository at this point in the history
…n of workers after redirects., a=testonly

Automatic update from web-platform-testsservice worker: Add tests for inteception of workers after redirects.

This tests behavior discussed here:
w3c/ServiceWorker#1289

Namely it tests when a request for a worker goes through a redirect
chain:
1) On redirect from A -> B, whether the service worker at B
sees the request.
2) After the final redirect, which service worker controls the
resulting client.

The tests are written as specified today. Therefore, Firefox
passes this test (verified in Nightly) and Chrome does not.
(Actually a small change is required to the test to make Firefox
pass it, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1452528)

Currently it only tests shared worker but dedicated worker can
be added in a follow-up patch.

Bug: 829720
Change-Id: Id3b1ea8b952760be0ef9917f2c6a3afe60ca1fb5
Reviewed-on: https://chromium-review.googlesource.com/999241
Commit-Queue: Matt Falkenhagen <falkenchromium.org>
Reviewed-by: Hiroki Nakagawa <nhirokichromium.org>
Cr-Commit-Position: refs/heads/master{#549125}

wpt-commits: 6fe36d79072d5261ea504435b0dfedaf39f5805a
wpt-pr: 10340
wpt-commits: 6fe36d79072d5261ea504435b0dfedaf39f5805a
wpt-pr: 10340

UltraBlame original commit: 4d895b739d93c3f042cb91a6ab5c071939a13252
  • Loading branch information
marco-c committed Oct 2, 2019
1 parent 8117255 commit 1ed020b
Show file tree
Hide file tree
Showing 7 changed files with 2,478 additions and 0 deletions.
336 changes: 336 additions & 0 deletions testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -1786827,6 +1786827,54 @@ worker
/
resources
/
scope1
/
redirect
.
py
"
:
[
[
{
}
]
]
"
service
-
workers
/
service
-
worker
/
resources
/
scope2
/
worker_interception_redirect_webworker
.
py
"
:
[
[
{
}
]
]
"
service
-
workers
/
service
-
worker
/
resources
/
service
-
worker
Expand Down Expand Up @@ -1787635,6 +1787683,62 @@ resources
/
worker
-
interception
-
redirect
-
serviceworker
.
js
"
:
[
[
{
}
]
]
"
service
-
workers
/
service
-
worker
/
resources
/
worker
-
interception
-
redirect
-
webworker
.
js
"
:
[
[
{
}
]
]
"
service
-
workers
/
service
-
worker
/
resources
/
worker
-
load
-
interceptor
Expand Down Expand Up @@ -1787677,6 +1787781,28 @@ service
-
workers
/
service
-
worker
/
resources
/
worker_interception_redirect_webworker
.
py
"
:
[
[
{
}
]
]
"
service
-
workers
/
specgen
.
json
Expand Down Expand Up @@ -2359312,6 +2359438,52 @@ worker
worker
-
interception
-
redirect
.
https
.
html
"
:
[
[
"
/
service
-
workers
/
service
-
worker
/
worker
-
interception
-
redirect
.
https
.
html
"
{
}
]
]
"
service
-
workers
/
service
-
worker
/
worker
-
interception
.
https
.
Expand Down Expand Up @@ -4036670,6 +4036842,58 @@ worker
/
resources
/
scope1
/
redirect
.
py
"
:
[
"
7741f204c67ca71087df3b182826bc28c14dbe37
"
"
support
"
]
"
service
-
workers
/
service
-
worker
/
resources
/
scope2
/
worker_interception_redirect_webworker
.
py
"
:
[
"
c482ed2a7ff5ed2d663bd54ee2ecd2f6609d77cd
"
"
support
"
]
"
service
-
workers
/
service
-
worker
/
resources
/
service
-
worker
Expand Down Expand Up @@ -4037540,6 +4037764,66 @@ resources
/
worker
-
interception
-
redirect
-
serviceworker
.
js
"
:
[
"
05a2f3a4ad034b9cece10b5abc7ffff71bfcb4aa
"
"
support
"
]
"
service
-
workers
/
service
-
worker
/
resources
/
worker
-
interception
-
redirect
-
webworker
.
js
"
:
[
"
615f6dd41ee6f9f141132a48544f976ce0403d27
"
"
support
"
]
"
service
-
workers
/
service
-
worker
/
resources
/
worker
-
load
-
interceptor
Expand Down Expand Up @@ -4037590,6 +4037874,30 @@ service
-
worker
/
resources
/
worker_interception_redirect_webworker
.
py
"
:
[
"
37a8a7bd94cc529420eba8838e1e20056caf2945
"
"
support
"
]
"
service
-
workers
/
service
-
worker
/
respond
-
with
Expand Down Expand Up @@ -4038553,6 +4038861,34 @@ worker
worker
-
interception
-
redirect
.
https
.
html
"
:
[
"
8654d94e9797ac332bedcadeed61837ccf13b944
"
"
testharness
"
]
"
service
-
workers
/
service
-
worker
/
worker
-
interception
.
https
.
Expand Down
Loading

0 comments on commit 1ed020b

Please sign in to comment.