-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
393 additions
and
57 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
html/syntax/preload-scanner.tentative/generated/document-write/img-data-src.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, document.write(): img-data-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-data-src', true)) | ||
.then(done); | ||
document.write(` | ||
<script src=/common/slow.py><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
speculative case in document.write | ||
<img data-src=/html/syntax/preload-scanner.tentative/resources/stash.py?action=put&uuid=${uuid}> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
html/syntax/preload-scanner.tentative/generated/document-write/img-src-crossorigin.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, document.write(): img-src-crossorigin</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-crossorigin', true)) | ||
.then(done); | ||
document.write(` | ||
<script src=/common/slow.py><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
speculative case in document.write | ||
<img src=/html/syntax/preload-scanner.tentative/resources/stash.py?action=put&uuid=${uuid} crossorigin> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
html/syntax/preload-scanner.tentative/generated/document-write/img-src-loading-lazy.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, document.write(): img-src-loading-lazy</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-loading-lazy', false)) | ||
.then(done); | ||
document.write(` | ||
<script src=/common/slow.py><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
speculative case in document.write | ||
<img src=/html/syntax/preload-scanner.tentative/resources/stash.py?action=put&uuid=${uuid} loading=lazy> | ||
`); | ||
</script> |
25 changes: 25 additions & 0 deletions
25
...reload-scanner.tentative/generated/document-write/img-src-referrerpolicy-no-referrer.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, document.write(): img-src-referrerpolicy-no-referrer</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-referrerpolicy-no-referrer', true)) | ||
.then(done); | ||
document.write(` | ||
<script src=/common/slow.py><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
speculative case in document.write | ||
<img src=/html/syntax/preload-scanner.tentative/resources/stash.py?action=put&uuid=${uuid} referrerpolicy=no-referrer> | ||
`); | ||
</script> |
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
html/syntax/preload-scanner.tentative/generated/document-write/img-srcset.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, document.write(): img-srcset</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-srcset', true)) | ||
.then(done); | ||
document.write(` | ||
<script src=/common/slow.py><\/script> | ||
<script> | ||
document.write('<plaintext>'); | ||
<\/script> | ||
speculative case in document.write | ||
<img srcset=/html/syntax/preload-scanner.tentative/resources/stash.py?action=put&uuid=${uuid}> | ||
`); | ||
</script> |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
21 changes: 21 additions & 0 deletions
21
html/syntax/preload-scanner.tentative/generated/page-load/img-data-src.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, page load: img-data-src</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/img-data-src-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-data-src', true)) | ||
.then(done); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
html/syntax/preload-scanner.tentative/generated/page-load/img-src-crossorigin.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, page load: img-src-crossorigin</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/img-src-crossorigin-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-crossorigin', true)) | ||
.then(done); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
html/syntax/preload-scanner.tentative/generated/page-load/img-src-loading-lazy.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, page load: img-src-loading-lazy</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/img-src-loading-lazy-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, false) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-loading-lazy', false)) | ||
.then(done); | ||
</script> |
21 changes: 21 additions & 0 deletions
21
...tax/preload-scanner.tentative/generated/page-load/img-src-referrerpolicy-no-referrer.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, page load: img-src-referrerpolicy-no-referrer</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/img-src-referrerpolicy-no-referrer-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-src-referrerpolicy-no-referrer', true)) | ||
.then(done); | ||
</script> |
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
21 changes: 21 additions & 0 deletions
21
html/syntax/preload-scanner.tentative/generated/page-load/img-srcset.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> | ||
<meta charset=utf-8> | ||
<!-- DO NOT EDIT. This file has been generated. Source: | ||
/html/syntax/preload-scanner.tentative/tools/generate.py | ||
--> | ||
<title>Preload scanner, page load: img-srcset</title> | ||
<script src=/resources/testharness.js></script> | ||
<script src=/resources/testharnessreport.js></script> | ||
<script src=/common/utils.js></script> | ||
<script src=/html/syntax/preload-scanner.tentative/resources/preload-scanner-util.js></script> | ||
<body> | ||
<script> | ||
setup({single_test: true}); | ||
const uuid = token(); | ||
const iframe = document.createElement('iframe'); | ||
iframe.src = `resources/img-srcset-framed.sub.html?uuid=${uuid}`; | ||
document.body.appendChild(iframe); | ||
expect_fetched_onload(uuid, true) | ||
.then(compare_with_nonspeculative(uuid, 'img-srcset', true)) | ||
.then(done); | ||
</script> |
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
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
Oops, something went wrong.