From f13d57d42fdea6f3042faa38ebf951bba56dbbba Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 14 Nov 2024 17:52:28 +0000 Subject: [PATCH] Omit initiator on beforeRequestSent if it's empty --- index.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.bs b/index.bs index 10a0e4c8a..809c06dd2 100644 --- a/index.bs +++ b/index.bs @@ -7238,7 +7238,7 @@ steps given |request| and |response|: network.BeforeRequestSentParameters = { network.BaseParameters, - initiator: network.Initiator, + ? initiator: network.Initiator, } @@ -7277,7 +7277,8 @@ request sent steps given |request|: 1. Let |initiator| be the result of [=get the initiator=] with |request|. - 1. Set the initiator field of |params| to |initiator|. + 1. If |initiator| is not [=map/is empty|empty=], set the initiator field + of |params| to |initiator|. 1. Assert: |params| matches the network.BeforeRequestSentParameters production.