-
Notifications
You must be signed in to change notification settings - Fork 155
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
Add support for 'serviceworkers' member #507
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
9e5567a
Add support for 'serviceworker' member
kenchris 4a5f762
Review fixes after Marcos' comments
kenchris e97ab3e
Add Service Worker registration, with some help from Jungkee
kenchris 2524071
Add support for 'type' and 'use_cache' when registering a service worker
kenchris 3df8f7a
A few changes based on feedback by Jungkee
kenchris 5d37374
Clean up spec text a bit
kenchris 5c867ad
Add client to Start Register
kenchris 4fc48b1
Fix two return values pointed out by Jungkee
kenchris 77bdd10
Fix comments from Marcos
kenchris File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -349,13 +349,17 @@ <h3> | |
<li>If <a>obtaining the manifest</a> succeeds, and the result of running the | ||
<a>steps for processing the serviceworker member</a> with <a>manifest</a> | ||
returns a valid <var>registration</var>, a user agent can at this point | ||
<ul> | ||
<ol> | ||
<li>Let <var>client</var> be the <a>top-level browsing context</a>' | ||
<code>Document</code>'s | ||
<a href="https://html.spec.whatwg.org/multipage/webappapis.html#relevant-settings-object"> | ||
relevant settings object</a>, or <code>null</code> if unavailable. | ||
<li>Invoke <a>Start Register</a> with <var>scope</var> and <var>src</var> | ||
members of the <var>registration</var>, a new <var>promise</var>, | ||
null, <a>manifest URL</a>, plus the <var>type</var> and <var>use_cache</var> | ||
<var>client</var>, <a>manifest URL</a>, plus the <var>type</var> and <var>use_cache</var> | ||
members of the <var>registration</var>, | ||
</li> | ||
</ul> | ||
</ol> | ||
in which case the state of the settled <var>promise</var> determine whether the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: determines There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
<a>installation succeeded</a> or not. | ||
</li> | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: should this be "Let registration be the result of Start Registration".
The way this is spec'ed is a bit strange - I was expecting some kind of flow with the resulting promise... but it all seems to magically result in a registration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure how to best solve this. Maybe you could solve in a follow up?