Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure all responses have a URL list #322

Merged
merged 1 commit into from
Jun 9, 2016
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Jun 9, 2016

In #146 I tried to let service worker responses that were not synthetic
to keep their url list. However, the way I fixed that regressed url
lists for a number of responses: HTTP cache responses, about URL
responses, etc.

This fix instead tries to keep the old setup and only overwrites the
url list of a response if it’s empty.

Fixes #312.

In #146 I tried to let service worker responses that were not synthetic
to keep their url list. However, the way I fixed that regressed url
lists for a number of responses: HTTP cache responses, about URL
responses, etc.

This fix instead tries to keep the old setup and only overwrites the
url list of a response if it’s empty.

Fixes #312.
@annevk
Copy link
Member Author

annevk commented Jun 9, 2016

Would appreciate review from @Manishearth and @wanderview.

@Manishearth
Copy link

LGTM

@Manishearth
Copy link

Implementing this PR doesn't cause additional failures in Servo. It doesn't cause any additional test passes, either, which is curious; we probably want more tests for this.

Manishearth added a commit to Manishearth/servo that referenced this pull request Jun 9, 2016
Manishearth added a commit to Manishearth/servo that referenced this pull request Jun 9, 2016
@wanderview
Copy link
Member

wanderview commented Jun 9, 2016

LGTM.

@Manishearth, to my knowledge neither chrome nor firefox implement this "if url list is empty" check yet. For us this is:

https://bugzilla.mozilla.org/show_bug.cgi?id=1222008

Edit: So that is why no one has written a WPT test yet.

@annevk annevk merged commit 4ecf90e into master Jun 9, 2016
@annevk annevk deleted the response-url-list-take-2 branch June 9, 2016 14:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Non-http fetch doesn't set response URL
3 participants