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

Block ports on fetch's bad ports list & use WebTransportError for it and CSP. #378

Merged
merged 3 commits into from
Dec 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -715,10 +715,12 @@ To <dfn>initialize WebTransport over HTTP</dfn>, given a {{WebTransport}} object
and [=request/origin=] is |origin|.
1. Run <a>report Content Security Policy violations for |request|</a>.
1. If [=should request be blocked by Content Security Policy?=] with |request| returns
<b>blocked</b>, then abort the remaining steps and [=queue a network task=] with |transport|
<b>"Blocked"</b>, or if |request| [=block bad port|should be blocked due to a bad port=]
returns <b>blocked</b>, then abort the remaining steps and [=queue a network task=] with |transport|
to run these steps:
1. If |transport|'s [=[[State]]=] is `"closed"` or `"failed"`, then abort these steps.
1. Let |error| be a {{SecurityError}}.
1. Let |error| be the result of [=WebTransportError/creating=] a {{WebTransportError}} with
`"session"`.
1. [=Cleanup=] |transport| with |error|, |error| and true.
1. Let |networkPartitionKey| be the result of [=determining the network partition key=] with
|transport|'s [=relevant settings object=].
Expand Down