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

Specify how "terminate" works #1612

Closed
wants to merge 0 commits into from
Closed

Specify how "terminate" works #1612

wants to merge 0 commits into from

Conversation

noamr
Copy link
Contributor

@noamr noamr commented Nov 8, 2021

In conjunction with whatwg/fetch#1329.

When the SW fetch starts, it emits an onStart callback with a controller
instance. That controller instance can be used to terminate the service worker
fetch and it's internal fetches.


Preview | Diff

docs/index.bs Outdated
: <dfn>state</dfn> (default "<code>ongoing</code>")
:: "<code>ongoing</code>" or "<code>terminated</code>".

: <dfn>preload fetch controller</dfn> (default null)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we want to reuse the word preload for this, but I'm also not sure the original controller needs to be installed here. Can it not forward it being aborted?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used to forward being aborted... I can rename but I don't entirely understand the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's used to forward being aborted... I can rename but I don't entirely understand the comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants