Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c21e6da

Browse files
committed
Apply conclude to iframe and media
1 parent 788e13a commit c21e6da

1 file changed

Lines changed: 40 additions & 32 deletions

File tree

source

Lines changed: 40 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,12 +2535,12 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
25352535
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#requestcredentials"><code>RequestCredentials</code></dfn> enumeration</li>
25362536
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#requestdestination"><code>RequestDestination</code></dfn> enumeration</li>
25372537
<li>the <dfn data-x-href="https://fetch.spec.whatwg.org/#dom-global-fetch"><code>fetch()</code></dfn> method</li>
2538-
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#finalize-and-report-timing">finalize and report timing</dfn></li>
25392538
<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>
25402539
<li><dfn data-x="body safely extract" data-x-href="https://fetch.spec.whatwg.org/#bodyinit-safely-extract">safely extracting a body</dfn></li>
25412540
<li><dfn data-x="body-incrementally-read" data-x-href="https://fetch.spec.whatwg.org/#body-incrementally-read">incrementally reading a body</dfn></li>
25422541
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#process-response-end-of-body">processResponseConsumeBody</dfn></li>
25432542
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#fetch-processresponseendofbody">processResponseEndOfBody</dfn></li>
2543+
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#fetch-timing-info">fetch timing info</dfn></li>
25442544
<li>
25452545
<dfn data-x="concept-response"
25462546
data-x-href="https://fetch.spec.whatwg.org/#concept-response">response</dfn> and its
@@ -2610,8 +2610,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
26102610
associated:
26112611
<ul class="brief">
26122612
<li><dfn data-x="fetch-controller-conclude" data-x-href="https://fetch.spec.whatwg.org/#finalize-and-report-timing">conclude</dfn></li>
2613-
<li><dfn data-x="fetch-controller-abort" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-abort">abort</dfn></li>
2614-
<li><dfn data-x="fetch-controller-terminate" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-terminate">terminate</dfn></li>
26152613
<li><dfn data-x="fetch-controller-timing-info" data-x-href="https://fetch.spec.whatwg.org/#fetch-controller-timing-info">timing info</dfn></li>
26162614
</ul>
26172615
</li>
@@ -7365,9 +7363,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
73657363
<ol>
73667364
<li><p>Let <var>fetchController</var> be null.</p></li>
73677365

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

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

73807380
<ol>
7381-
<li><p>Invoke <var>concludeFetch</var> given <var>response</var>.</p></li>
7381+
<li><p>Invoke <var>concludeFetch</var> with <var>response</var>.</p></li>
73827382

7383-
<li><p>Call <var>processResponseConsumeBody</var>.</p></li>
7383+
<li><p>Call <var>processResponseConsumeBody</var> with <var>response</var> and
7384+
<var>bytes</var>.</p></li>
73847385
</ol>
73857386
</li>
73867387

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

31344-
<li><p>Let <var>reportFrameTiming</var> be the following step given <span
31345-
data-x="concept-response">response</span> <var>response</var>: <span>queue an element
31346-
task</span> on the <span>networking task source</span> given <var>element</var>'s <span>node
31347-
document</span>'s <span>relevant global object</span> to <span>finalize and report timing</span>
31348-
given <var>response</var>, <var>element</var>'s <span>node document</span>'s <span>relevant
31349-
global object</span>, and <var>element</var>'s <span data-x="concept-element-local-name">local
31350-
name</span>.</p></li>
31345+
<li><p>Let <var>global</var> be <var>element</var>'s
31346+
<span>node document</span>'s <span>relevant global object</span>.</p></li>
31347+
31348+
<li><p>Let <var>concludeFrameFetch</var> be the following step given <span
31349+
data-x="concept-response">response</span> <var>response</var> and
31350+
<span>fetch controller</span> <var>controller</var>: <span>queue an element task</span> on the
31351+
<span>networking task source</span> given <var>global</var> to
31352+
<span data-x="fetch-controller-conclude">conclude</span> <var>controller</var> given
31353+
<var>element</var>'s <span data-x="concept-element-local-name">local name</span>,
31354+
<var>global</var>, and <var>response</var>.</p></li>
3135131355

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

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

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

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

34882-
<li><p>Let <var>finalize</var> be to <span>finalize and report timing</span> with
34883-
<var>response</var>, <var>global</var>, and <var>destination</var>, and call
34884-
<var>updateMedia</var>.</p></li>
34887+
<li><p>Let <var>finalize</var> be to
34888+
<span data-x="fetch-controller-conclude">conclude</span> <var>fetchController</var> with
34889+
<var>destination</var>, and call <var>updateMedia</var>.</p></li>
3488534890

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

88062-
<dt><dfn data-x="navigation-params-fetch-controller">fetch controller</dfn></dt>
88063-
<dd>null or a <span>fetch controller</span></dd>
88067+
<dt><dfn data-x="navigation-params-timing-info">timing info</dfn></dt>
88068+
<dd>null or a <span>fetch timing info</span></dd>
8806488069

8806588070
<dt><dfn data-x="navigation-params-unsafe-start-time">unsafe start time</dfn></dt>
8806688071
<dd>a number, representing a value of the <span>unsafe shared current time</span> when the
@@ -88372,7 +88377,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8837288377
<var>historyHandling</var>, <span
8837388378
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
8837488379
is <var>processResponseEndOfBody</var>,
88375-
<span data-x="navigation-params-fetch-controller">fetch controller</span> is
88380+
<span data-x="navigation-params-timing-info">timing info</span> is
8837688381
null, <span
8837788382
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
8837888383
<var>unsafeNavigationStartTime</var>, and <span
@@ -88436,7 +88441,7 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8843688441
<var>historyHandling</var>, <span
8843788442
data-x="navigation-params-process-response-end-of-body">process response end of body</span>
8843888443
is <var>processResponseEndOfBody</var>, <span
88439-
data-x="navigation-params-fetch-controller">fetch controller</span> is null,<span
88444+
data-x="navigation-params-timing-info">timing info</span> is null,<span
8844088445
data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
8844188446
<var>unsafeNavigationStartTime</var>, and <span
8844288447
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
@@ -88764,6 +88769,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8876488769
data-x="concept-response-url">URL</span>, <var>historyPolicyContainer</var>,
8876588770
<var>initiatorPolicyContainer</var>, null, and <var>responsePolicyContainer</var>.</p></li>
8876688771

88772+
<li><p>Set <var>onEndOfBody</var> to the following step given <span data-x="concept-response">response</span>
88773+
<var>response</var>: call <var>processResponseEndOfBody</var> with <var>response</var> and
88774+
<var>fetchController</var>.</p></li>
88775+
8876788776
<li><p>Let <var>navigationParams</var> be a new <span>navigation params</span> whose <span
8876888777
data-x="navigation-params-id">id</span> is <var>navigationId</var>, <span
8876988778
data-x="navigation-params-request">request</span> is <var>request</var>, <span
@@ -88781,10 +88790,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
8878188790
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
8878288791
<var>historyHandling</var>, <span
8878388792
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
88784-
<var>processResponseEndOfBody</var>, <span
88785-
data-x="navigation-params-fetch-controller">fetch controller</span> is
88786-
<var>fetchController</var>, <span data-x="navigation-params-unsafe-start-time">unsafe
88787-
start time</span> is <var>unsafeNavigationStartTime</var>, and <span
88793+
<var>onEndOfBody</var>, <span data-x="navigation-params-timing-info">timing info</span> is
88794+
<var>fetchController</var>'s <span data-x="fetch-controller-timing-info">timing info</span>,
88795+
<span data-x="navigation-params-unsafe-start-time">unsafe start time</span> is
88796+
<var>unsafeNavigationStartTime</var>, and <span
8878888797
data-x="navigation-params-has-cross-origin-redirects">has cross-origin redirects</span> is
8878988798
<var>hasCrossOriginRedirects</var>.</p></li>
8879088799

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

8936289371
<li><p>If <var>navigationParams</var>'s
89363-
<span data-x="navigation-params-fetch-controller">fetch controller</span> is not null, then
89372+
<span data-x="navigation-params-timing-info">timing info</span> is not null, then
8936489373
<span>create the navigation timing entry</span> for <var>document</var>, with
8936589374
<var>navigationParams</var>'s
89366-
<span data-x="navigation-params-fetch-controller">fetch controller</span>'s <span
89367-
data-x="fetch-controller-timing-info">timing info</span>, <var>redirectCount</var>,
89375+
<span data-x="navigation-params-timing-info">timing info</span>, <var>redirectCount</var>,
8936889376
<var>navigationTimingType</var>, <var>navigationParams</var>'s <span
8936989377
data-x="navigation-params-response">response</span>'s <span
8937089378
data-x="concept-response-service-worker-timing-info">service worker timing info</span>,
@@ -89938,7 +89946,7 @@ new PaymentRequest(&hellip;); // Allowed to use
8993889946
result</span> is a new <span data-x="coop-enforcement-result">cross-origin opener policy
8993989947
enforcement result</span>, <span data-x="navigation-params-reserved-environment">reserved
8994089948
environment</span> is null, <span
89941-
data-x="navigation-params-fetch-controller">fetch controller</span> is null, <span
89949+
data-x="navigation-params-timing-info">timing info</span> is null, <span
8994289950
data-x="navigation-params-process-response-end-of-body">process response end of body</span> is
8994389951
an algorithm that does nothing, <span data-x="navigation-params-unsafe-start-time">unsafe start
8994489952
time</span> is the <span>unsafe shared current time</span>, and <span

0 commit comments

Comments
 (0)