From bf3152730311e7318f60fd2f70fed8fdb3a4ed19 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Wed, 15 Mar 2023 15:49:42 +0200 Subject: [PATCH 1/4] Define the processing model for dns-prefetch Uses the exported "resolve an origin" from Fetch. Note that this still doesn't include the CSP bits, which are also not implemented anywhere for this & preconnect. Closes #9015 --- source | 41 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 38 insertions(+), 3 deletions(-) diff --git a/source b/source index c26c6eec677..1bcf4e20a47 100644 --- a/source +++ b/source @@ -2577,6 +2577,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • determine the network partition key
  • extract full timing info
  • as a body
  • +
  • resolve an origin
  • response and its @@ -25763,9 +25764,43 @@ document.body.appendChild(wbr);

    There is no default type for resources given by the dns-prefetch keyword.

    -

    The processing model for dns-prefetch needs - to be properly specified. Tracked in issue #9015.

    +

    The appropriate times to fetch and + process this type of link are:

    + + + +

    The fetch and process the linked resource steps for this type of linked resource, + given a link element el, are: + +

      +
    1. Parse el's + href attribute relative to el's + node document's URL and let + url be the resulting URL record. If this fails, return. + +
    2. Let partitionKey be the result of determining the network partition key given el's + node document's relevant settings object.

    3. + +
    4. +

      The user agent should resolve an origin given partitionKey and + url's origin.

      + +

      This returned IP address is obtained but not used directly. It will be cached + for subsequent use.

      +
    5. +
    Link type " Date: Thu, 16 Mar 2023 09:53:18 +0200 Subject: [PATCH 2/4] nit --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index 1bcf4e20a47..7a17b12a453 100644 --- a/source +++ b/source @@ -25786,8 +25786,8 @@ document.body.appendChild(wbr);
    1. Parse el's href attribute relative to el's - node document's URL and let - url be the resulting URL record. If this fails, return. + node document and let url be the resulting URL record. If + this fails, return.

    2. Let partitionKey be the result of determining the network partition key given el's From dc3d788d566342b54c12aad3b973700ef7919628 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 16 Mar 2023 09:56:40 +0200 Subject: [PATCH 3/4] nit --- source | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source b/source index 7a17b12a453..cb187b76f57 100644 --- a/source +++ b/source @@ -25784,7 +25784,7 @@ document.body.appendChild(wbr); given a link element el, are:

        -
      1. Parse el's +
      2. Parse el's href attribute relative to el's node document and let url be the resulting URL record. If this fails, return.

      3. From a918896f08a32eb48f95576fb2cbd0e460cc7c55 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 16 Mar 2023 11:48:27 +0200 Subject: [PATCH 4/4] nit --- source | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source b/source index cb187b76f57..358f962be8a 100644 --- a/source +++ b/source @@ -25797,8 +25797,8 @@ document.body.appendChild(wbr);

        The user agent should resolve an origin given partitionKey and url's origin.

        -

        This returned IP address is obtained but not used directly. It will be cached - for subsequent use.

        +

        As the results of this algorithm can be cached, future fetches could be + faster.