Address comments in the main PR.#12
Conversation
|
@sisidovski @domenic Can I ask you to take a look? |
| 1. If |rules| is a {{RouterRule}} dictionary, set |rules| to « |rules| ». | ||
| 1. For each |rule| of |rules|: | ||
| 1. If running [=Verify Router Condition=] algorithm with |rule|["{{RouterRule/condition}}"] and |serviceWorker| returns false, [=throw=] a {{TypeError}}. | ||
| 1. If running [=Verify Router Condition=] algorithm with |rule|["{{RouterRule/condition}}"] and |serviceWorker| returns false, return [=a promise rejected with=] a {{TypeError}}. |
There was a problem hiding this comment.
(as an aside) these changes aren't technically needed since webidl will convert any thrown exceptions into rejected promises anyway, but having them does make it clearer.
|
|
||
| 1. [=Abort a running script|Abort the script=] currently running in |serviceWorker|. | ||
| 1. Set |serviceWorker|'s [=start status=] to null. | ||
| 1. Unset |serviceWorker|'s [=ServiceWorkerGlobalScope is ready=]. |
There was a problem hiding this comment.
Can we also address this comment?
https://github.com/w3c/ServiceWorker/pull/1701/files#r1484868955
There was a problem hiding this comment.
Partially addressed the comment by adding " flag". However, I believe the main topic of the comment is renaming.
I am considering to call it "ServiceWorkerGlobalScope CSP ready flag"
What do you think?
domenic
left a comment
There was a problem hiding this comment.
Nothing substantial from me on this PR
Co-authored-by: Domenic Denicola <d@domenic.me>
Co-authored-by: Domenic Denicola <d@domenic.me>
- returns true. - renamed to add "flag", but I still need to find a better name.
|
Although not all reviewers approved this PR, I am going to merge this so that people can see the full PR in w3c#1701. |
There is ongoing PR review in w3c#1701.
I have addressed some of them here.
Until #10 is merged, I plan to work here to avoid #10 review and update exhausted.
Preview | Diff