Skip to content

Commit

Permalink
Report iframe at end
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr committed Mar 29, 2022
1 parent de594fb commit f3f3a80
Showing 1 changed file with 53 additions and 31 deletions.
84 changes: 53 additions & 31 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -87924,6 +87924,10 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
redirects</dfn></dt>
<dd>a boolean</dd>

<dt><dfn data-x="navigation-params-process-response-end-of-body">process response end of
body</dfn></dt>
<dd>An algorithm expecting a <span data-x="concept-response">response</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
navigation has started</dd>
Expand Down Expand Up @@ -87977,8 +87981,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
"<code data-x="">other</code>"), an optional <span data-x="navigation-id">navigation id</span>
<dfn data-x="navigation-navigationid"><var>navigationId</var></dfn> (default null), and an
optional <dfn data-x="navigation-process-end-of-body"><var>processResponseEndOfBody</var></dfn>,
which is null or an algorithm receiving a <span data-x="concept-response">response</span> (default
null):</p>
which is an algorithm receiving a <span data-x="concept-response">response</span> (default
an algorithm that does nothing):</p>

<ol>
<li><p>Let <var>unsafeNavigationStartTime</var> be the <span>unsafe shared current time</span>.</p></li>
Expand Down Expand Up @@ -88231,8 +88235,11 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
data-x="navigation-params-reserved-environment">reserved environment</span> is null, <span
data-x="navigation-params-browsing-context">browsing context</span> is
<var>browsingContext</var>, <span data-x="navigation-params-hh">history handling</span> is
<var>historyHandling</var>, <span data-x="navigation-params-unsafe-start-time">unsafe start
time</span> is <var>unsafeNavigationStartTime</var>, and <span
<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-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
false.</p></li>

Expand Down Expand Up @@ -88291,6 +88298,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
data-x="navigation-params-browsing-context">browsing context</span> is
<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-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 @@ -88495,32 +88504,12 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<p>Otherwise:</p>

<ol>
<li><p>Let <var>finalResponseReached</var> be false.</p></li>

<li><p>If <var>response</var> is null, <!--FETCH--><span
data-x="concept-fetch">fetch</span> <var>request</var>.</p></li>

<li><p>Otherwise, perform <span>HTTP-redirect fetch</span> using
<var>request</var> and <var>response</var>.</p></li>

<li><p>Let <var>onFinalResponseReached</var> be to set <var>finalResponseReached</var> to
true.</p></li>

<li>
<p>When the task to <i data-x="processResponseEndOfBody">processResponseEndOfBody</i>
is posted on the <span>networking task source</span>, perform the following steps:</p>

<ol>
<li><p>If <var>processResponseEndOfBody</var> is null, then return.

<li><p>If <var>finalResponseReached</var> is true, then call
<var>processResponseEndOfBody</var> given <var>response</var>.</p>

<li><p>Otherwise, set <var>onFinalResponseReached</var> to
<var>processResponseEndOfBody</var>.</p></li>
</ol>
</li>

<li><p>Wait for the <span data-x="concept-task">task</span> on the <span>networking task
source</span> to <span>process response</span> and set <var>response</var> to the
result.</p></li>
Expand Down Expand Up @@ -88628,8 +88617,6 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
URL scheme</span> given <var>locationURL</var>, <var>browsingContext</var>,
<var>sandboxFlags</var>, and <var>hasTransientActivation</var>, and return.</p></li>

<li><p>Call <var>onFinalResponseReached</var> with <var>response</var>.</p></li>

<li><p>Let <var>responsePolicyContainer</var> be the result of <span>creating a policy container
from a fetch response</span> given <var>response</var> and <var>request</var>'s <span
data-x="concept-request-reserved-client">reserved client</span>.</p></li>
Expand All @@ -88655,6 +88642,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
data-x="navigation-params-browsing-context">browsing context</span> is
<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-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 @@ -88710,6 +88699,8 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
<p>If <var>failure</var> is true, then:</p>

<ol>
<li><p>Call <var>processResponseEndOfBody</var> with <var>response</var>.</p></li>

<li><p><span data-x="navigate-ua-inline">Display the inline content with an appropriate error
shown to the user</span> given <var>browsingContext</var>.</p></li>

Expand All @@ -88734,7 +88725,9 @@ interface <dfn interface>Location</dfn> { // but see also <a href="#the-location
</li>

<li><p>If <var>response</var>'s <span data-x="concept-response-status">status</span> is 204 or
205, then return.</p></li>
205, then call <var>navigationParams</var>'s
<span data-x="navigation-params-process-response-end-of-body">process response end of body</span>
and return.</p></li>
<!-- Theoretically, HTTP 205 processing would occur here, resetting all forms with no other
effect. However, it seems nobody actually wants to use this ability, so requiring it here
seems like unnecessary work. -->
Expand Down Expand Up @@ -89489,8 +89482,16 @@ new PaymentRequest(&hellip;); // Allowed to use

<p>When no more bytes are available, the user agent must <span>queue a global task</span> on the
<span>networking task source</span> given the newly-created <code>Document</code>'s <span>relevant
global object</span> for the parser to process the implied EOF character, which eventually causes
a <code data-x="event-load">load</code> event to be fired.</p>
global object</span> to the following:</p>

<ol>
<li><p>Call <var>navigationParams</var>'s
<span data-x="navigation-params-process-response-end-of-body">process response end of body</span>
with <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>.</p>

<li><p>Let the parser to process the implied EOF character, which eventually causes
a <code data-x="event-load">load</code> event to be fired.</p></li>
</ol>

<p>After creating the <code>Document</code> object, but before any script execution, certainly
before the parser <span data-x="stop parsing">stops</span>, the user agent must <span>update the
Expand Down Expand Up @@ -89530,6 +89531,12 @@ new PaymentRequest(&hellip;); // Allowed to use
this before the complete document has been parsed (thus achieving <i>incremental rendering</i>),
and must do this before any scripts are to be executed.</p>

<p>When no more bytes are available, the user agent must <span>queue a global task</span> on the
<span>networking task source</span> given <var>document</var>'s <span>relevant
global object</span> to call <var>navigationParams</var>'s
<span data-x="navigation-params-process-response-end-of-body">process response end of body</span>
with <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>.</p>

<p>Once parsing is complete, the user agent must set <var>document</var>'s <span
data-x="concept-document-navigation-id">navigation id</span> to null.</p>

Expand Down Expand Up @@ -89587,8 +89594,16 @@ new PaymentRequest(&hellip;); // Allowed to use

<p>When no more bytes are available, the user agent must <span>queue a global task</span> on the
<span>networking task source</span> given the newly-created <code>Document</code>'s <span>relevant
global object</span> for the parser to process the implied EOF character, which eventually causes
a <code data-x="event-load">load</code> event to be fired.</p>
global object</span> to the following:</p>

<ol>
<li><p>Call <var>navigationParams</var>'s
<span data-x="navigation-params-process-response-end-of-body">process response end of body</span>
with <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>.</p>

<li><p>Let the parser to process the implied EOF character, which eventually causes a
<code data-x="event-load">load</code> event to be fired.</p></li>
</ol>

<p>After creating the <code>Document</code> object, but potentially before the page has finished
parsing, the user agent must <span>update the session history with the new page</span> given
Expand Down Expand Up @@ -89694,6 +89709,11 @@ new PaymentRequest(&hellip;); // Allowed to use
script, to give the document a <code>title</code>, or to make the media <span
data-x="attr-media-autoplay">autoplay</span>.</p>

<p>When no more bytes are available, the user agent must <span>queue a global task</span> on the
<span>networking task source</span> given the newly-created <code>Document</code>'s <span>relevant
global object</span> to call <var>navigationParams</var>'s
<span data-x="navigation-params-process-response-end-of-body">process response end of body</span>
with <var>navigationParams</var>'s <span data-x="navigation-params-response">response</span>.</p>

<h4 id="read-plugin"><dfn data-x="navigate-plugin">Page load processing model for content that uses plugins</dfn></h4>

Expand Down Expand Up @@ -89769,6 +89789,8 @@ 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-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 data-x="navigation-params-browsing-context">browsing context</span> is
Expand Down

0 comments on commit f3f3a80

Please sign in to comment.