Skip to content

Commit

Permalink
Apply conclude to iframe and media
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Apr 5, 2022
1 parent 788e13a commit c21e6da
Showing 1 changed file with 40 additions and 32 deletions.
72 changes: 40 additions & 32 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2535,12 +2535,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#requestcredentials"><code>RequestCredentials</code></dfn> enumeration</li>
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#requestdestination"><code>RequestDestination</code></dfn> enumeration</li>
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#dom-global-fetch"><code>fetch()</code></dfn> method</li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#finalize-and-report-timing">finalize and report timing</dfn></li>
<li><dfn data-x="serialize-a-response-url-for-reporting" data-x-href="https://fetch.spec.whatwg.org/#serialize-a-response-url-for-reporting">serialize a response URL for reporting</dfn></li>
<li><dfn data-x="body safely extract" data-x-href="https://fetch.spec.whatwg.org/#bodyinit-safely-extract">safely extracting a body</dfn></li>
<li><dfn data-x="body-incrementally-read" data-x-href="https://fetch.spec.whatwg.org/#body-incrementally-read">incrementally reading a body</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#process-response-end-of-body">processResponseConsumeBody</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#fetch-processresponseendofbody">processResponseEndOfBody</dfn></li>
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#fetch-timing-info">fetch timing info</dfn></li>
<li>
<dfn data-x="concept-response"
data-x-href="https://fetch.spec.whatwg.org/#concept-response">response</dfn> and its
Expand Down Expand Up @@ -2610,8 +2610,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
associated:
<ul class="brief">
<li><dfn data-x="fetch-controller-conclude" data-x-href="https://fetch.spec.whatwg.org/#finalize-and-report-timing">conclude</dfn></li>
<li><dfn data-x="fetch-controller-abort" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-abort">abort</dfn></li>
<li><dfn data-x="fetch-controller-terminate" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-terminate">terminate</dfn></li>
<li><dfn data-x="fetch-controller-timing-info" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-timing-info">timing info</dfn></li>
</ul>
</li>
Expand Down Expand Up @@ -7365,9 +7363,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<ol>
<li><p>Let <var>fetchController</var> be null.</p></li>

<li><p>Let <var>concludeFetch</var> be to
<span data-x="fetch-controller-conclude">conclude</span> <var>fetchController</var> given
<var>initiatorType</var>.</p></li>
<li><p>Let <var>concludeFetch</var> given <span data-x="concept-response">response</span>
<var>response</var> be to
<span data-x="fetch-controller-conclude">conclude</span> <var>fetchController</var> with
<var>initiatorType</var>, "<code data-x="">client</code>", <var>response</var>, and
"<code data-x="">now</code>".</p></li>

<li><p>Let <var>processResponseEndOfBody</var> be <var>concludeFetch</var> if
<var>processResponseConsumeBody</var> is false; otherwise null.</p></li>
Expand All @@ -7378,9 +7378,10 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<var>response</var> and null, failure or a <span>byte sequence</span> <var>bytes</var>:

<ol>
<li><p>Invoke <var>concludeFetch</var> given <var>response</var>.</p></li>
<li><p>Invoke <var>concludeFetch</var> with <var>response</var>.</p></li>

<li><p>Call <var>processResponseConsumeBody</var>.</p></li>
<li><p>Call <var>processResponseConsumeBody</var> with <var>response</var> and
<var>bytes</var>.</p></li>
</ol>
</li>

Expand Down Expand Up @@ -31341,21 +31342,24 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
document</span> is not <span>completely loaded</span>, then set <var>historyHandling</var> to
"<code data-x="hh-replace">replace</code>".</p></li>

<li><p>Let <var>reportFrameTiming</var> be the following step given <span
data-x="concept-response">response</span> <var>response</var>: <span>queue an element
task</span> on the <span>networking task source</span> given <var>element</var>'s <span>node
document</span>'s <span>relevant global object</span> to <span>finalize and report timing</span>
given <var>response</var>, <var>element</var>'s <span>node document</span>'s <span>relevant
global object</span>, and <var>element</var>'s <span data-x="concept-element-local-name">local
name</span>.</p></li>
<li><p>Let <var>global</var> be <var>element</var>'s
<span>node document</span>'s <span>relevant global object</span>.</p></li>

<li><p>Let <var>concludeFrameFetch</var> be the following step given <span
data-x="concept-response">response</span> <var>response</var> and
<span>fetch controller</span> <var>controller</var>: <span>queue an element task</span> on the
<span>networking task source</span> given <var>global</var> to
<span data-x="fetch-controller-conclude">conclude</span> <var>controller</var> given
<var>element</var>'s <span data-x="concept-element-local-name">local name</span>,
<var>global</var>, and <var>response</var>.</p></li>

<li><p><span>Navigate</span><!--DONAV iframe or frame--> <var>element</var>'s <span>nested
browsing context</span> to <var>resource</var>, with <var
data-x="navigation-hh">historyHandling</var> set to <var>historyHandling</var>, the
<span>source browsing context</span> set to <var>element</var>'s <span>node document</span>'s
<span data-x="concept-document-bc">browsing context</span>, and
<var data-x="navigation-process-end-of-body">processResponseEndOfBody</var> set to
<var>reportFrameTiming</var>.</p></li>
<var>concludeFrameFetch</var>.</p></li>
</ol>

<!-- see also the note near similar text for the location.assign() method -->
Expand Down Expand Up @@ -34864,7 +34868,8 @@ interface <dfn interface>MediaError</dfn> {
</li>

<li>
<!--FETCH--><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, with
<!--FETCH--><p>Let <var>fetchController</var> be the result of
<span data-x="concept-fetch">fetching</span> <var>request</var>, with
<i data-x="process response">processResponse</i> set to the following steps given
<span data-x="concept-response">response</span> <var>response</var>:</p>

Expand All @@ -34879,9 +34884,9 @@ interface <dfn interface>MediaError</dfn> {
<span>media element event task source</span> rather than using the
<span>networking task source</span>.)</p>

<li><p>Let <var>finalize</var> be to <span>finalize and report timing</span> with
<var>response</var>, <var>global</var>, and <var>destination</var>, and call
<var>updateMedia</var>.</p></li>
<li><p>Let <var>finalize</var> be to
<span data-x="fetch-controller-conclude">conclude</span> <var>fetchController</var> with
<var>destination</var>, and call <var>updateMedia</var>.</p></li>

<li>
<p>Let <var>processEndOfMedia</var> be the following steps:</p>
Expand Down Expand Up @@ -88059,8 +88064,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
body</dfn></dt>
<dd>an algorithm expecting a <span data-x="concept-response">response</span></dd>

<dt><dfn data-x="navigation-params-fetch-controller">fetch controller</dfn></dt>
<dd>null or a <span>fetch controller</span></dd>
<dt><dfn data-x="navigation-params-timing-info">timing info</dfn></dt>
<dd>null or a <span>fetch timing info</span></dd>

<dt><dfn data-x="navigation-params-unsafe-start-time">unsafe start time</dfn></dt>
<dd>a number, representing a value of the <span>unsafe shared current time</span> when the
Expand Down Expand Up @@ -88372,7 +88377,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
is <var>processResponseEndOfBody</var>,
<span data-x="navigation-params-fetch-controller">fetch controller</span> is
<span data-x="navigation-params-timing-info">timing info</span> is
null, <span
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
<var>unsafeNavigationStartTime</var>, and <span
Expand Down Expand Up @@ -88436,7 +88441,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
is <var>processResponseEndOfBody</var>, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is null,<span
data-x="navigation-params-timing-info">timing info</span> is null,<span
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
<var>unsafeNavigationStartTime</var>, and <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
Expand Down Expand Up @@ -88764,6 +88769,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
data-x="concept-response-url">URL</span>, <var>historyPolicyContainer</var>,
<var>initiatorPolicyContainer</var>, null, and <var>responsePolicyContainer</var>.</p></li>

<li><p>Set <var>onEndOfBody</var> to the following step given <span data-x="concept-response">response</span>
<var>response</var>: call <var>processResponseEndOfBody</var> with <var>response</var> and
<var>fetchController</var>.</p></li>

<li><p>Let <var>navigationParams</var> be a new <span>navigation params</span> whose <span
data-x="navigation-params-id">id</span> is <var>navigationId</var>, <span
data-x="navigation-params-request">request</span> is <var>request</var>, <span
Expand All @@ -88781,10 +88790,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
<var>historyHandling</var>, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
<var>processResponseEndOfBody</var>, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is
<var>fetchController</var>, <span data-x="navigation-params-unsafe-start-time">unsafe
start time</span> is <var>unsafeNavigationStartTime</var>, and <span
<var>onEndOfBody</var>, <span data-x="navigation-params-timing-info">timing info</span> is
<var>fetchController</var>'s <span data-x="fetch-controller-timing-info">timing info</span>,
<span data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
<var>unsafeNavigationStartTime</var>, and <span
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
<var>hasCrossOriginRedirects</var>.</p></li>

Expand Down Expand Up @@ -89360,11 +89369,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<span data-x="concept-request-redirect-count">redirect count</span>.

<li><p>If <var>navigationParams</var>'s
<span data-x="navigation-params-fetch-controller">fetch controller</span> is not null, then
<span data-x="navigation-params-timing-info">timing info</span> is not null, then
<span>create the navigation timing entry</span> for <var>document</var>, with
<var>navigationParams</var>'s
<span data-x="navigation-params-fetch-controller">fetch controller</span>'s <span
data-x="fetch-controller-timing-info">timing info</span>, <var>redirectCount</var>,
<span data-x="navigation-params-timing-info">timing info</span>, <var>redirectCount</var>,
<var>navigationTimingType</var>, <var>navigationParams</var>'s <span
data-x="navigation-params-response">response</span>'s <span
data-x="concept-response-service-worker-timing-info">service worker timing info</span>,
Expand Down Expand Up @@ -89938,7 +89946,7 @@ new PaymentRequest(&hellip;); // Allowed to use
result</span> is a new <span data-x="coop-enforcement-result">cross-origin opener policy
enforcement result</span>, <span data-x="navigation-params-reserved-environment">reserved
environment</span> is null, <span
data-x="navigation-params-fetch-controller">fetch controller</span> is null, <span
data-x="navigation-params-timing-info">timing info</span> is null, <span
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
an algorithm that does nothing, <span data-x="navigation-params-unsafe-start-time">unsafe start
time</span> is the <span>unsafe shared current time</span>, and <span
Expand Down

0 comments on commit c21e6da

Please sign in to comment.