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

Remove "foreign" service-workers mode #596

Merged
merged 1 commit into from
Sep 5, 2017
Merged

Conversation

annevk
Copy link
Member

@annevk annevk commented Sep 4, 2017

@annevk
Copy link
Member Author

annevk commented Sep 4, 2017

32411c7 seems useful even without foreign fetch so I think we'll keep that setup.

Service-workers mode also seems better than a flag so I'll keep that.

Looking at d41c238 perhaps the global object conditional can be removed altogether?

@jakearchibald
Copy link
Collaborator

perhaps the global object conditional can be removed altogether?

I'm not sure how. We need to prevent fetch(), when called from within a service worker, triggering a fetch event.

@annevk
Copy link
Member Author

annevk commented Sep 5, 2017

Ah yeah, we still want service workers to intercept some requests that are created within a service worker so that still makes sense. Thanks!

@annevk annevk merged commit bc23529 into master Sep 5, 2017
@sideshowbarker
Copy link
Contributor

  • Are test updates not needed for this change?
  • Are browser bugs — or updates to existing browser bugs — not needed for this change?

@sideshowbarker sideshowbarker deleted the annevk/foreign-fetch branch September 14, 2017 04:38
@annevk
Copy link
Member Author

annevk commented Sep 14, 2017

I'm not aware of any tests. @mkruisselbrink? The tests @jakearchibald added in one of the commits linked above are still relevant and didn't test foreign fetch.

https://bugzilla.mozilla.org/buglist.cgi?quicksearch=foreign%20fetch does suggest there are some tests that need to be removed and bugs to be closed. Hopefully that happens as part of the changes to service workers.

cc @jungkees

@annevk
Copy link
Member Author

annevk commented Sep 14, 2017

I updated w3c/ServiceWorker#1188 to make sure this all gets taken into account.

@rektide
Copy link

rektide commented Sep 14, 2017

This greatly hobbles the ability for an offline capable web to ever happen. I am deeply saddened to see this.

bors-servo pushed a commit to servo/servo that referenced this pull request Dec 23, 2018
Remove `foreign` service-workers mode

Bringing in the spec changes from whatwg/fetch#596

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because the corresponding tests should already be removed.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22533)
<!-- Reviewable:end -->
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.

5 participants