Skip to content

Address comments in the main PR.#12

Merged
yoshisatoyanagisawa merged 9 commits intostatic_routing_apifrom
address_1701
Feb 15, 2024
Merged

Address comments in the main PR.#12
yoshisatoyanagisawa merged 9 commits intostatic_routing_apifrom
address_1701

Conversation

@yoshisatoyanagisawa
Copy link
Copy Markdown
Owner

@yoshisatoyanagisawa yoshisatoyanagisawa commented Feb 13, 2024

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

@yoshisatoyanagisawa
Copy link
Copy Markdown
Owner Author

@sisidovski @domenic Can I ask you to take a look?

@yoshisatoyanagisawa
Copy link
Copy Markdown
Owner Author

@mkruisselbrink

Comment thread docs/index.bs
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}}.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

(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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

sure.

Comment thread docs/index.bs Outdated
Comment thread docs/index.bs Outdated

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=].
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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?

Copy link
Copy Markdown

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Nothing substantial from me on this PR

Comment thread docs/index.bs Outdated
Comment thread docs/index.bs Outdated
yoshisatoyanagisawa and others added 3 commits February 15, 2024 14:54
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.
@yoshisatoyanagisawa
Copy link
Copy Markdown
Owner Author

Although not all reviewers approved this PR, I am going to merge this so that people can see the full PR in w3c#1701.

@yoshisatoyanagisawa yoshisatoyanagisawa merged commit 59e1de9 into static_routing_api Feb 15, 2024
@yoshisatoyanagisawa yoshisatoyanagisawa deleted the address_1701 branch February 15, 2024 23:42
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.

4 participants