Skip to content

Commit b6bb29b

Browse files
committed
Change name from targetClientId to replacesClientId
We had decided (and I forgot) to change the name of FetchEvent.targetClientId to .replacesClientId to clarify the meaning that this client is a to be replaced client: #1091 (comment). Related issue: #1245.
1 parent ff36205 commit b6bb29b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/index.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
13431343
readonly attribute Promise<any> preloadResponse;
13441344
readonly attribute DOMString clientId;
13451345
readonly attribute DOMString resultingClientId;
1346-
readonly attribute DOMString targetClientId;
1346+
readonly attribute DOMString replacesClientId;
13471347

13481348
void respondWith(Promise<Response> r);
13491349
};
@@ -1354,7 +1354,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
13541354
Promise<any> preloadResponse;
13551355
DOMString clientId = "";
13561356
DOMString resultingClientId = "";
1357-
DOMString targetClientId = "";
1357+
DOMString replacesClientId = "";
13581358
};
13591359
</pre>
13601360

@@ -1391,9 +1391,9 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
13911391
</section>
13921392

13931393
<section>
1394-
<h4 id="fetch-event-targetclientid">{{FetchEvent/targetClientId|event.targetClientId}}</h4>
1394+
<h4 id="fetch-event-replacesClientId">{{FetchEvent/replacesClientId|event.replacesClientId}}</h4>
13951395

1396-
<dfn attribute for="FetchEvent"><code>targetClientId</code></dfn> attribute *must* return the value it was initialized to. When an <a>event</a> is created the attribute *must* be initialized to the empty string.
1396+
<dfn attribute for="FetchEvent"><code>replacesClientId</code></dfn> attribute *must* return the value it was initialized to. When an <a>event</a> is created the attribute *must* be initialized to the empty string.
13971397
</section>
13981398

13991399
<section algorithm="fetch-event-respondwith">
@@ -2783,7 +2783,7 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
27832783
1. Initialize |e|’s {{FetchEvent/preloadResponse}} to |preloadResponse|.
27842784
1. Initialize |e|'s {{FetchEvent/clientId}} attribute to |client|'s [=environment/id=].
27852785
1. If |request| is a <a>non-subresource request</a> and |request|'s [=request/destination=] is not {{RequestDestination/"report"}}, initialize |e|'s {{FetchEvent/resultingClientId}} attribute to |reservedClient|'s [=environment/id=], and to the empty string otherwise.
2786-
1. If |request| is a <a>navigation request</a>, initialize |e|'s {{FetchEvent/targetClientId}} attribute to |request|'s [=request/target client id=], and to the empty string otherwise.
2786+
1. If |request| is a <a>navigation request</a>, initialize |e|'s {{FetchEvent/replacesClientId}} attribute to |request|'s [=request/replaces client id=], and to the empty string otherwise.
27872787
1. <a>Dispatch</a> |e| at |activeWorker|'s [=service worker/global object=].
27882788
1. Invoke [=Update Service Worker Extended Events Set=] with |activeWorker| and |e|.
27892789
1. If |e|'s [=FetchEvent/respond-with entered flag=] is set, set |respondWithEntered| to true.

0 commit comments

Comments
 (0)