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

Partition service workers using Storage Key. (#1606) #1629

Merged
merged 1 commit into from
Mar 10, 2022

Conversation

wanderview
Copy link
Member

@wanderview wanderview commented Mar 8, 2022

@@ -3014,7 +3033,9 @@ spec: rfc7231; urlPrefix: https://tools.ietf.org/html/rfc7231
1. Else:
1. If |request|'s [=request/url=] is not a <a>potentially trustworthy URL</a>, return null.
1. If |request| is a <a>navigation request</a> and the <a lt="navigate">navigation</a> triggering it was initiated with a shift+reload or equivalent, return null.
1. Set |registration| to the result of running <a>Match Service Worker Registration</a> algorithm passing |request|'s [=request/url=] as the argument.
1. [=Assert=] |reservedClient| is not null.
Copy link
Member Author

Choose a reason for hiding this comment

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

There is a check for null reservedClient above, but I don't understand when that can happen. And we don't have a way to get the storage key without a client. Any thoughts on best thing to do here?

@wanderview
Copy link
Member Author

@jakearchibald PTAL. Thanks.

Copy link
Contributor

@jakearchibald jakearchibald left a comment

Choose a reason for hiding this comment

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

LGTM!

@jakearchibald jakearchibald merged commit 7ad2f80 into w3c:main Mar 10, 2022
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.

None yet

2 participants