- From: fergald <notifications@github.com>
- Date: Sun, 18 Jun 2023 19:18:49 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1647/review/1485279332@github.com>
@fergald commented on this pull request. > + <a for=request>body</a>'s <a for=body>length</a>. + </ol> + </li> + + <li><p><a for=list>For each</a> <a>deferred fetch record</a> <var>deferredRecord</var> in + <var>request</var>'s <a for=request>client</a>'s <a for=fetch>fetch group</a>'s + <a for="fetch group">deferred fetch records</a>: if <var>deferredRecord</var>'s + <a for="deferred fetch record">request</a>'s <a for=request>body</a> is not null and + <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>'s <a for=request>URL</a>'s + <a for=url>origin</a> is <a>same origin</a> with <var>request</var>'s <a for=request>URL</a>'s + <a for=url>origin</a>, then increment <var>totalScheduledDeferredBytesForOrigin</var> by + <var>deferredRecord</var>'s <a for="deferred fetch record">request</a>'s <a for=request>body</a>'s + <a for=body>length</a>. + + <li><p>If <var>totalScheduledDeferredBytesForOrigin</var> is greater than 64 kilobytes, then + throw a {{QuotaExceededError}}. I understand that the body length case needs to fail but I thought we were going to flush the existing entries in this case. Why are we throwing in that case? > + <li><p>Let <var>request</var> be <var>requestObject</var>'s <a for=Request>request</a>. + + <li><p>Let <var>backgroundTimeout</var> be null. + + <li><p>If <var>init</var> is given and <var>init</var>["<code>backgroundTimeout</code>"] + <a for=map>exists</a> then set <var>backgroundTimeout</var> to + <var>init</var>["<code>backgroundTimeout</code>"]. + + <li><p>If <var>backgroundTimeout</var> is not a {{DOMHighResTimeStamp}} then throw a {{TypeError}}. + + <li><p>Let <var>deferredRecord</var> be the result of calling + <a>request a deferred fetch</a> given <var>request</var> and <var>backgroundTimeout</var>. This + may throw an exception. + + <li> + <p><a for=AbortSignal lt=add>Add the following abort steps</a> to <var>requestObject</var>'s This also highlights that `sent` is not a good name for it. All of the documentation is going to have to say that `sent` does not mean it has been sent. If the network is off, it may have just been discarded silently. Something like `scheduled` or `dispatched` would not have this problem. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1647#discussion_r1233450781 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1647/review/1485279332@github.com>
Received on Monday, 19 June 2023 02:18:54 UTC