From f3f3a8030526106a6b52823cd721af5ddadb6ab9 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Tue, 29 Mar 2022 15:35:34 +0300 Subject: [PATCH] Report iframe at end --- source | 84 ++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 53 insertions(+), 31 deletions(-) diff --git a/source b/source index 84316f565ed..4d12cd7b11f 100644 --- a/source +++ b/source @@ -87924,6 +87924,10 @@ interface Location { // but see also process response end of + body +
An algorithm expecting a response
+
unsafe start time
a number, representing a value of the unsafe shared current time when the navigation has started
@@ -87977,8 +87981,8 @@ interface Location { // but see also
other"), an optional navigation id navigationId (default null), and an optional processResponseEndOfBody, - which is null or an algorithm receiving a response (default - null):

+ which is an algorithm receiving a response (default + an algorithm that does nothing):

  1. Let unsafeNavigationStartTime be the unsafe shared current time.

  2. @@ -88231,8 +88235,11 @@ interface Location { // but see also
    reserved environment is null, browsing context is browsingContext, history handling is - historyHandling, unsafe start - time is unsafeNavigationStartTime, and historyHandling, + process response end of + body is processResponseEndOfBody, + unsafe start time is + unsafeNavigationStartTime, and has cross-origin redirects is false.

    @@ -88291,6 +88298,8 @@ interface Location { // but see also
    browsing context is browsingContext, history handling is historyHandling, + process response end of + body is processResponseEndOfBody, unsafe start time is unsafeNavigationStartTime, and has cross-origin redirects is @@ -88495,32 +88504,12 @@ interface Location { // but see also fetch request.

  3. Otherwise, perform HTTP-redirect fetch using request and response.

  4. -
  5. Let onFinalResponseReached be to set finalResponseReached to - true.

  6. - -
  7. -

    When the task to processResponseEndOfBody - is posted on the networking task source, perform the following steps:

    - -
      -
    1. If processResponseEndOfBody is null, then return. - -

    2. If finalResponseReached is true, then call - processResponseEndOfBody given response.

      - -
    3. Otherwise, set onFinalResponseReached to - processResponseEndOfBody.

    4. -
    -
  8. -
  9. Wait for the task on the networking task source to process response and set response to the result.

  10. @@ -88628,8 +88617,6 @@ interface Location { // but see also
    reserved client.

    @@ -88655,6 +88642,8 @@ interface Location { // but see also
    browsing context is browsingContext, history handling is historyHandling, + process response end of body + is processResponseEndOfBody, unsafe start time is unsafeNavigationStartTime, and has cross-origin redirects is @@ -88710,6 +88699,8 @@ interface Location { // but see also Display the inline content with an appropriate error shown to the user given browsingContext.

    @@ -88734,7 +88725,9 @@ interface Location { // but see also
    status is 204 or - 205, then return.

    + 205, then call navigationParams's + process response end of body + and return.

    @@ -89489,8 +89482,16 @@ new PaymentRequest(…); // Allowed to use

    When no more bytes are available, the user agent must queue a global task on the networking task source given the newly-created Document's relevant - global object for the parser to process the implied EOF character, which eventually causes - a load event to be fired.

    + global object to the following:

    + +
      +
    1. Call navigationParams's + process response end of body + with navigationParams's response.

      + +
    2. Let the parser to process the implied EOF character, which eventually causes + a load event to be fired.

    3. +

    After creating the Document object, but before any script execution, certainly before the parser stops, the user agent must update the @@ -89530,6 +89531,12 @@ new PaymentRequest(…); // Allowed to use this before the complete document has been parsed (thus achieving incremental rendering), and must do this before any scripts are to be executed.

    +

    When no more bytes are available, the user agent must queue a global task on the + networking task source given document's relevant + global object to call navigationParams's + process response end of body + with navigationParams's response.

    +

    Once parsing is complete, the user agent must set document's navigation id to null.

    @@ -89587,8 +89594,16 @@ new PaymentRequest(…); // Allowed to use

    When no more bytes are available, the user agent must queue a global task on the networking task source given the newly-created Document's relevant - global object for the parser to process the implied EOF character, which eventually causes - a load event to be fired.

    + global object to the following:

    + +
      +
    1. Call navigationParams's + process response end of body + with navigationParams's response.

      + +
    2. Let the parser to process the implied EOF character, which eventually causes a + load event to be fired.

    3. +

    After creating the Document object, but potentially before the page has finished parsing, the user agent must update the session history with the new page given @@ -89694,6 +89709,11 @@ new PaymentRequest(…); // Allowed to use script, to give the document a title, or to make the media autoplay.

    +

    When no more bytes are available, the user agent must queue a global task on the + networking task source given the newly-created Document's relevant + global object to call navigationParams's + process response end of body + with navigationParams's response.

    Page load processing model for content that uses plugins

    @@ -89769,6 +89789,8 @@ new PaymentRequest(…); // Allowed to use result is a new cross-origin opener policy enforcement result, reserved environment is null, + process response end of body + is an algorithm that does nothing, unsafe start time is the unsafe shared current time, and browsing context is