-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow speculative parser to see inside DSD templates
Prior to this CL, the speculative parser would bail out at the sight of any <template> element. However, if that template was a DSD shadow root, like <template shadowrootmode=open>, it should be scanned. Note that DSD shadow roots inside "normal" template elements should still be skipped, since everything in the <template> is inert. I also updated the speculative parser script to not blow away *all* files, but instead just remove the .html files. Bug: 1379513 Change-Id: I0ee8d64d9c33905f9fb1c5a0f5b4f428858c403a Fixed: 1410933 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4200836 Commit-Queue: Mason Freed <masonf@chromium.org> Reviewed-by: David Baron <dbaron@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1100556}
- Loading branch information
Mason Freed
authored and
Chromium LUCI CQ
committed
Feb 2, 2023
1 parent
a083ed5
commit 1318b9f
Showing
30 changed files
with
558 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...tive-parsing/generated/document-write/nested-template-shadowrootmode-1.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): nested-template-shadowrootmode-1</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-1', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<template><div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"><\/script></template></div></template> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...tive-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): nested-template-shadowrootmode-2</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-2', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<div><template shadowrootmode="closed"><template><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"><\/script></template></template></div> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...l/syntax/speculative-parsing/generated/document-write/template-img-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): template-img-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'template-img-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<template><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"></template> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
.../speculative-parsing/generated/document-write/template-link-stylesheet.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): template-link-stylesheet</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'template-link-stylesheet', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<template><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"></template> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ative-parsing/generated/document-write/template-shadowrootmode-img-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): template-shadowrootmode-img-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'template-shadowrootmode-img-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<div><template shadowrootmode="closed"><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"></template></div> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...rsing/generated/document-write/template-shadowrootmode-link-stylesheet.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): template-shadowrootmode-link-stylesheet</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'template-shadowrootmode-link-stylesheet', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<div><template shadowrootmode="closed"><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"></template></div> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...ve-parsing/generated/document-write/template-shadowrootmode-script-src.tentative.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, document.write(): template-shadowrootmode-script-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'template-shadowrootmode-script-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src="/common/slow.py?delay=1500"><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
<\!-- speculative case in document.write --> | ||
<div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid=${uuid}&encodingcheck=Ğ"><\/script></template></div> | ||
`); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
...x/speculative-parsing/generated/page-load/nested-template-shadowrootmode-1.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load: nested-template-shadowrootmode-1</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/nested-template-shadowrootmode-1-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-1', true)) | ||
.then(done); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
...x/speculative-parsing/generated/page-load/nested-template-shadowrootmode-2.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load: nested-template-shadowrootmode-2</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/nested-template-shadowrootmode-2-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'nested-template-shadowrootmode-2', true)) | ||
.then(done); | ||
</script> |
12 changes: 12 additions & 0 deletions
12
...ve-parsing/generated/page-load/resources/nested-template-shadowrootmode-1-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): nested-template-shadowrootmode-1</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<template><div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></script></template></div></template> |
12 changes: 12 additions & 0 deletions
12
...ve-parsing/generated/page-load/resources/nested-template-shadowrootmode-2-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): nested-template-shadowrootmode-2</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<div><template shadowrootmode="closed"><template><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></script></template></template></div> |
12 changes: 12 additions & 0 deletions
12
...syntax/speculative-parsing/generated/page-load/resources/template-img-src-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): template-img-src</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<template><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></template> |
12 changes: 12 additions & 0 deletions
12
...peculative-parsing/generated/page-load/resources/template-link-stylesheet-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): template-link-stylesheet</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<template><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></template> |
12 changes: 12 additions & 0 deletions
12
...ive-parsing/generated/page-load/resources/template-shadowrootmode-img-src-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): template-shadowrootmode-img-src</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<div><template shadowrootmode="closed"><img src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></template></div> |
12 changes: 12 additions & 0 deletions
12
...ing/generated/page-load/resources/template-shadowrootmode-link-stylesheet-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): template-shadowrootmode-link-stylesheet</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<div><template shadowrootmode="closed"><link rel=stylesheet href="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></template></div> |
12 changes: 12 additions & 0 deletions
12
...-parsing/generated/page-load/resources/template-shadowrootmode-script-src-framed.sub.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load (helper file): template-shadowrootmode-script-src</title> | ||
<script src="/common/slow.py?delay=1500"></script> | ||
<script> | ||
document.write('<plaintext>'); | ||
</script> | ||
<!-- speculative case --> | ||
<div><template shadowrootmode="closed"><script src="/html/syntax/speculative-parsing/resources/stash.py?action=put&uuid={{GET[uuid]}}&encodingcheck=Ğ"></script></template></div> |
21 changes: 21 additions & 0 deletions
21
...l/wpt/html/syntax/speculative-parsing/generated/page-load/template-img-src.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load: template-img-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/template-img-src-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'template-img-src', true)) | ||
.then(done); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
...ml/syntax/speculative-parsing/generated/page-load/template-link-stylesheet.tentative.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!DOCTYPE html> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/speculative-parsing/tools/generate.py | ||
--> | ||
<meta charset=utf-8> | ||
<title>Speculative parsing, page load: template-link-stylesheet</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/speculative-parsing/resources/speculative-parsing-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/template-link-stylesheet-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'template-link-stylesheet', true)) | ||
.then(done); | ||
</script> |
Oops, something went wrong.