|
307 | 307 | "html": "<p>If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/speculative-loading.html#prefetch-candidate\" id=\"ref-for-prefetch-candidate\">prefetch candidate</a> and <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-anonymization-policy\" id=\"ref-for-prefetch-record-anonymization-policy\">anonymization policy</a> does not equal <var>candidate</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/speculative-loading.html#sl-candidate-anonymization-policy\" id=\"ref-for-sl-candidate-anonymization-policy\">anonymization policy</a>, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#iteration-continue\" id=\"ref-for-iteration-continue②\">continue</a>.</p>" |
308 | 308 | }, |
309 | 309 | { |
310 | | - "html": "<p>If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/speculative-loading.html#prerender-candidate\" id=\"ref-for-prerender-candidate\">prerender candidate</a> and <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-prerendering-traversable\" id=\"ref-for-prefetch-record-prerendering-traversable①\">prerendering traversable</a> is null, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#iteration-continue\" id=\"ref-for-iteration-continue③\">continue</a>.</p>" |
| 310 | + "html": "<p>If <var>candidate</var> is a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prerendering.html#prerender-candidate\" id=\"ref-for-prerender-candidate\">prerender candidate</a> and <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-prerendering-traversable\" id=\"ref-for-prefetch-record-prerendering-traversable①\">prerendering traversable</a> is null, then <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#iteration-continue\" id=\"ref-for-iteration-continue③\">continue</a>.</p>" |
311 | 311 | }, |
312 | 312 | { |
313 | 313 | "html": "<p>Return true.</p>" |
|
419 | 419 | "html": "<p>Set <var>responseCOOP</var> to the result of <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#obtain-coop\" id=\"ref-for-obtain-coop\">obtaining a cross-origin opener policy</a> given <var>redirectChainResponse</var> and <var>redirectChainRequest</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-reserved-client\" id=\"ref-for-concept-request-reserved-client①\">reserved client</a>.</p>" |
420 | 420 | }, |
421 | 421 | { |
422 | | - "html": "<p>Set <var>coopEnforcementResult</var> to the result of <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#coop-enforce\" id=\"ref-for-coop-enforce\">enforcing a response’s cross-origin opener policy</a> given <var>navigable</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#nav-bc\" id=\"ref-for-nav-bc\">active browsing context</a>, <var>redirectChainResponse</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-url\" id=\"ref-for-concept-response-url③\">URL</a>, <var>responseOrigin</var>, <var>responseCOOP</var>, <var>coopEnforcementResult</var>, and <var>redirectChainRequest</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer①\">referrer</a>.</p>" |
| 422 | + "html": "<p><span id=\"step-activation-time-coop-check\"></span>Set <var>coopEnforcementResult</var> to the result of <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#coop-enforce\" id=\"ref-for-coop-enforce\">enforcing a response’s cross-origin opener policy</a> given <var>navigable</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#nav-bc\" id=\"ref-for-nav-bc\">active browsing context</a>, <var>redirectChainResponse</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-response-url\" id=\"ref-for-concept-response-url③\">URL</a>, <var>responseOrigin</var>, <var>responseCOOP</var>, <var>coopEnforcementResult</var>, and <var>redirectChainRequest</var>’s <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-request-referrer\" id=\"ref-for-concept-request-referrer①\">referrer</a>.</p>" |
423 | 423 | }, |
424 | 424 | { |
425 | 425 | "html": "<p>If <var>finalSandboxFlags</var> is not empty and <var>responseCOOP</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#coop-struct-value\" id=\"ref-for-coop-struct-value\">value</a> is \"<code>unsafe-none</code>\", then set <var>response</var> to an appropriate <a data-link-type=\"dfn\" href=\"https://fetch.spec.whatwg.org/#concept-network-error\" id=\"ref-for-concept-network-error①\">network error</a> and <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#iteration-break\" id=\"ref-for-iteration-break①\">break</a>.</p>" |
|
1036 | 1036 | "rationale": "if", |
1037 | 1037 | "steps": [ |
1038 | 1038 | { |
1039 | | - "html": "<p>If <var>navigationParams</var> is not a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params\" id=\"ref-for-navigation-params⑦\">navigation params</a>, then <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-cancel-and-discard\" id=\"ref-for-prefetch-record-cancel-and-discard②\">cancel and discard</a> <var>prefetchRecord</var> given <var>document</var> and abort these steps.</p>" |
| 1039 | + "html": "<p>If <var>navigationParams</var> is not a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params\" id=\"ref-for-navigation-params⑧\">navigation params</a>, then <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-cancel-and-discard\" id=\"ref-for-prefetch-record-cancel-and-discard②\">cancel and discard</a> <var>prefetchRecord</var> given <var>document</var> and abort these steps.</p>" |
1040 | 1040 | }, |
1041 | 1041 | { |
1042 | 1042 | "html": "<p><a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#assert\" id=\"ref-for-assert①⑥\">Assert</a>: <var>navigationParams</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params-response\" id=\"ref-for-navigation-params-response③\">response</a> is the <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#exchange-record-response\" id=\"ref-for-exchange-record-response⑦\">response</a> of <var>prefetchRecord</var>’s <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record-redirect-chain\" id=\"ref-for-prefetch-record-redirect-chain⑧\">redirect chain</a>’s last element.</p>" |
|
1093 | 1093 | "html": "<p>Let <var>topLevelSite</var> be null.</p>" |
1094 | 1094 | }, |
1095 | 1095 | { |
1096 | | - "html": "If <var>environment</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-target-browsing-context\" id=\"ref-for-concept-environment-target-browsing-context①\">target browsing context</a> is a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#top-level-browsing-context\" id=\"ref-for-top-level-browsing-context\">top-level browsing context</a>:", |
| 1096 | + "html": "If <var>environment</var>’s <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/webappapis.html#concept-environment-target-browsing-context\" id=\"ref-for-concept-environment-target-browsing-context②\">target browsing context</a> is a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#top-level-browsing-context\" id=\"ref-for-top-level-browsing-context\">top-level browsing context</a>:", |
1097 | 1097 | "rationale": "set", |
1098 | 1098 | "steps": [ |
1099 | 1099 | { |
|
1156 | 1156 | { |
1157 | 1157 | "name": "remote end event trigger for speculation.prefetchStatusUpdated", |
1158 | 1158 | "href": "https://wicg.github.io/nav-speculation/prefetch.html#trigger-a-prefetch-status-updated-event", |
1159 | | - "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"trigger-a-prefetch-status-updated-event\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">trigger a prefetch status updated event</dfn> given a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#navigable\" id=\"ref-for-navigable②\">navigable</a> <var>navigable</var>, a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record\" id=\"ref-for-prefetch-record①⑦\">prefetch record</a> <var>prefetchRecord</var>, and a <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#cddl-type-speculationpreloadingstatus\" id=\"ref-for-cddl-type-speculationpreloadingstatus①\">speculation.PreloadingStatus</a></code> <var>preloadingStatus</var>:", |
| 1159 | + "html": "To <dfn class=\"dfn-paneled has-dfn-panel\" data-dfn-type=\"dfn\" data-noexport=\"\" id=\"trigger-a-prefetch-status-updated-event\" role=\"button\" aria-expanded=\"false\" tabindex=\"0\">trigger a prefetch status updated event</dfn> given a <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/document-sequences.html#navigable\" id=\"ref-for-navigable③\">navigable</a> <var>navigable</var>, a <a data-link-type=\"dfn\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#prefetch-record\" id=\"ref-for-prefetch-record①⑦\">prefetch record</a> <var>prefetchRecord</var>, and a <code class=\"cddl\"><a data-link-type=\"cddl\" href=\"https://wicg.github.io/nav-speculation/prefetch.html#cddl-type-speculationpreloadingstatus\" id=\"ref-for-cddl-type-speculationpreloadingstatus①\">speculation.PreloadingStatus</a></code> <var>preloadingStatus</var>:", |
1160 | 1160 | "rationale": ".algorithm", |
1161 | 1161 | "steps": [ |
1162 | 1162 | { |
|
0 commit comments