Bug 1813292 [wpt PR 38239] - Allow speculative parser to see inside DSD templates...
commitc57af8baee092003dd11c2b19698000ed36709e2
authorBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Sat, 4 Feb 2023 09:19:13 +0000 (4 09:19 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sat, 4 Feb 2023 20:24:54 +0000 (4 20:24 +0000)
treebfd0b2ba2c2dd29f3395f5fa55df8e1ee3076400
parenta27dadc2b773ec0a687dd91178d1418e746c6585
Bug 1813292 [wpt PR 38239] - Allow speculative parser to see inside DSD templates, a=testonly

Automatic update from web-platform-tests
Allow speculative parser to see inside DSD templates (#38239)

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}

Co-authored-by: Mason Freed <masonf@chromium.org>
--

wpt-commits: 762a5fb8c064671367435e2e3db21f231ea8b2c2
wpt-pr: 38239
29 files changed:
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-1.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/nested-template-shadowrootmode-2.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/template-img-src.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/template-link-stylesheet.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-img-src.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-link-stylesheet.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/document-write/template-shadowrootmode-script-src.tentative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-1.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/nested-template-shadowrootmode-2.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/nested-template-shadowrootmode-1-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/nested-template-shadowrootmode-2-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/template-img-src-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/template-link-stylesheet-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-img-src-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-link-stylesheet-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/resources/template-shadowrootmode-script-src-framed.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/template-img-src.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/template-link-stylesheet.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-img-src.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-link-stylesheet.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/page-load/template-shadowrootmode-script-src.tentative.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/nested-template-shadowrootmode-1-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/nested-template-shadowrootmode-2-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/template-img-src-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/template-link-stylesheet-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-img-src-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-link-stylesheet-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/generated/resources/template-shadowrootmode-script-src-nonspeculative.sub.html [new file with mode: 0644]
testing/web-platform/tests/html/syntax/speculative-parsing/tools/generate.py