New issue
Advanced search Search tips

Issue 889798 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 648295

Blocking:
issue 678905



Sign in to add a comment

Redirects aren't handled properly in the update of service workers

Project Member Reported by momohatt@google.com, Sep 27

Issue description

Spec requires that redirects received during the update job should be treated as follows:
* If the request was for the main script, network loader should raise an error. (https://w3c.github.io/ServiceWorker/#update-algorithm 9-9)
* If the request was not for the main script, network loader should follow the redirects. (https://w3c.github.io/ServiceWorker/#update-algorithm, 22)

However, current implementation of OnReceivedRedirects() in
SWNewScriptLoader, SWWriteToCacheJob and SWSingleScriptUpdateChecker seems to always raises an error.
 
Description: Show this description
Blocking: 678905
Status: Available (was: Untriaged)
The failing WPT test is import-scripts-redirect.https.html
Blockedon: 648295

Sign in to add a comment