Skip to content

Commit

Permalink
Remove request field from network.Initiator
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed Nov 18, 2024
1 parent 46306e8 commit 99fe077
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5745,8 +5745,8 @@ To <dfn>deserialize header</dfn> given |protocol header|:
network.Initiator = {
? columnNumber: js-uint,
? lineNumber: js-uint,
? stackTrace: script.StackTrace,
? request: network.Request,
? stackTrace: script.StackTrace,
? type: "parser" / "script" / "preflight" / "other"
};
</pre>
Expand All @@ -5760,11 +5760,15 @@ be removed in a future revision of this specification. Its use is expected to be
replaced by <code>initiatorType</code> and <code>destination</code> on
<code>network.RequestData</code>.

Note: The <code>request</code> field is included in the definition for backwards
compatibility, but is no longer set by the [=get the initiator=] steps, and will
be removed in a future revision of this specification. The network.Initiator is
included in the BeforeRequestSentParameters which also contain the same request
id, which makes the information redundant.

<div algorithm>
To <dfn>get the initiator</dfn> given |request|:

1. Let |request id| be |request|'s [=request id=].

1. If |request|'s [=request/initiator type=] is "<code>fetch</code>" or
"<code>xmlhttprequest</code>":

Expand All @@ -5783,9 +5787,8 @@ To <dfn>get the initiator</dfn> given |request|:
1. Return a [=/map=] matching the <code>network.Initiator</code> production, the
<code>columnNumber</code> field set to |column number| if it's not null, or
omitted otherwise, the <code>lineNumber</code> field set to |line number| if
it's not null, or omitted otherwise, the <code>stackTrace</code> field set to
|stack trace| if it's not null, or omitted otherwise, and the
<code>request</code> field set to |request id|.
it's not null, or omitted otherwise and the <code>stackTrace</code> field set
to |stack trace| if it's not null, or omitted otherwise.

</div>

Expand Down

0 comments on commit 99fe077

Please sign in to comment.