diff --git a/index.bs b/index.bs index 6d2234da..30bf4ed9 100644 --- a/index.bs +++ b/index.bs @@ -3603,11 +3603,11 @@ To get the network intercepts given |session|, |event|, and |request| 1. Run the steps under the first matching condition:
|event| is "network.beforeRequestSent" -
Set |phase| to the beforeRequestSent +
Set |phase| to the "beforeRequestSent".
|event| is "network.responseStarted"
Set |phase| to "responseStarted".
|event| is "network.authRequired" -
Set |phase| to "authRequired"ยป. +
Set |phase| to "authRequired".
|event| is "network.responseCompleted"
Return |intercepts|.
@@ -4689,7 +4689,7 @@ To parse URL pattern, given |pattern|: 1. The empty string. - 1. Otherwise, if |url|'s [=url/port=], is not null: + 1. Otherwise, if |url|'s [=url/port=] is not null: 1. [=Serialize an integer=] with |url|'s [=url/port=]. @@ -4936,7 +4936,7 @@ The [=remote end steps=] given |session| and |command parameters| are: The network.continueResponse command continues a response that's blocked by a [=network intercept=]. It can be called in the responseStarted phase, to modify the status and headers of the -response, but still provide the netowrk response body. +response, but still provide the network response body.
Command Type
@@ -4975,8 +4975,6 @@ To update the response given |session|, |command| and |command parame 1. If |blocked requests| does not [=map/contain=] |request id| then return [=error=] with [=error code=] [=no such request=]. - Issue: consider a "no such request" error. - 1. Let (request, |phase|, |response|) be |blocked requests|[|request id|]. 1. If |phase| is "beforeRequestSent" and |command| is @@ -5117,8 +5115,6 @@ The [=remote end steps=] given |session| and |command parameters| are: 1. If |blocked requests| does not [=map/contain=] |request id| then return [=error=] with [=error code=] [=no such request=]. - Issue: consider a "no such request" error. - 1. Let (request, |phase|, |response|) be |blocked requests|[|request id|]. 1. If |phase| is not "authRequired", then return [=error=] @@ -5133,7 +5129,7 @@ The [=remote end steps=] given |session| and |command parameters| are: 1. Let |credentials| be |command parameters|["credentials"]. - 1. Assert: |credentials|{"type"] is "password". + 1. Assert: |credentials|["type"] is "password". 1. Set |response|'s authentication credentials to (|credentials|["username"], |credentials|["password"]) @@ -5180,9 +5176,7 @@ The [=remote end steps=] given |session| and |command parameters| are: 1. Let |request id| be |command parameters|["request"]. 1. If |blocked requests| does not [=map/contain=] |request id| then return - [=error=] with [=error code=] [=invalid argument=]. - - Issue: consider a "no such request" error. + [=error=] with [=error code=] [=no such request=]. 1. Let (request, |phase|, response) be |blocked requests|[|request id|].