[wpt-sync] Sync PR 61927 - Fragment includes with <template for="..." src>
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox156 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 61927 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/61927
Details from upstream follow.
Noam Rosenthal <nrosenthal@chromium.org> wrote:
Fragment includes with <template for="..." src>
When \<template for="..." has a src attribute, its content is fetched and
applied at the template's destination location.It respects fetching modifiers
(nonce/integrity/crossorigin/referrerpolicy), though cannot be
downgraded to no-cors.Atm, \<template src> cannot be parser blocking.
Bug: 535664974
Change-Id: I36ecde784bea292c73277cd1e8180206d1f47fd6
Reviewed-on: https://chromium-review.googlesource.com/8159342
WPT-Export-Revision: bc62968b57ffe29137cf2b2fd6a1c69476e99432
| Assignee | ||
Updated•3 months ago
|
| Assignee | ||
Comment 1•3 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=0fcd1a6f5352f17919aed845c8a1ca46ab02e7a8
| Assignee | ||
Comment 2•3 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 23 tests and 1 subtests
Status Summary
Firefox
OK : 4[GitHub] 17[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS : 2[GitHub] 7[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 4[GitHub] 17[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
TIMEOUT: 12
NOTRUN : 3
Chrome
OK : 5
PASS : 3
FAIL : 4
TIMEOUT: 10
NOTRUN : 3
Safari
OK : 4
PASS : 2
FAIL : 4
TIMEOUT: 12
NOTRUN : 3
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/dom/partial-updates/tentative/fragment/buffer-immutability.html [wpt.fyi]
- Modifying 'for' or 'buffer' attributes dynamically after start tag has no effect on the inclusion behavior:
FAIL
- Modifying 'for' or 'buffer' attributes dynamically after start tag has no effect on the inclusion behavior:
- /html/dom/partial-updates/tentative/fragment/buffer-in-place.html [wpt.fyi]
- In-place template with buffer attribute buffers children and inserts them atomically at finalization:
FAIL
- In-place template with buffer attribute buffers children and inserts them atomically at finalization:
- /html/dom/partial-updates/tentative/fragment/buffer-mutation-observer.html [wpt.fyi]
- Targeted template with buffer attribute triggers atomic MutationObserver records:
FAIL
- Targeted template with buffer attribute triggers atomic MutationObserver records:
- /html/dom/partial-updates/tentative/fragment/buffer-reflection.html [wpt.fyi]
- HTMLTemplateElement.buffer IDL attribute reflects the buffer content attribute:
FAIL
- HTMLTemplateElement.buffer IDL attribute reflects the buffer content attribute:
- /html/dom/partial-updates/tentative/fragment/buffer-streaming-reflection.html [wpt.fyi]
- template.content reflects the buffered content progressively while streaming:
FAIL
- template.content reflects the buffered content progressively while streaming:
- /html/dom/partial-updates/tentative/fragment/buffer-targeted.html [wpt.fyi]
- Targeted template with buffer attribute buffers children and replaces target content atomically at finalization:
FAIL
- Targeted template with buffer attribute buffers children and replaces target content atomically at finalization:
- /html/dom/partial-updates/tentative/fragment/empty-for-streaming.html [wpt.fyi]
- In-place template with empty for attribute is removed and its children are inserted before it:
FAIL(Chrome:PASS, Safari:FAIL) - In-place template moving and removal during streaming:
FAIL(Chrome:FAIL, Safari:FAIL)
- In-place template with empty for attribute is removed and its children are inserted before it:
- /html/dom/partial-updates/tentative/fragment/sanitize-boolean.html [wpt.fyi]
- The sanitize attribute behaves like a boolean attribute:
FAIL
- The sanitize attribute behaves like a boolean attribute:
- /html/dom/partial-updates/tentative/fragment/sanitize-default.html [wpt.fyi]
- Template with empty sanitize attribute applies default safe sanitization and discards script tags:
FAIL
- Template with empty sanitize attribute applies default safe sanitization and discards script tags:
- /html/dom/partial-updates/tentative/fragment/sanitize-nested.html [wpt.fyi]
- Declarative Fragment: nested sanitization combinations:
FAIL - Safe template nested inside unsafe template under bespoke main sanitizer:
FAIL
- Declarative Fragment: nested sanitization combinations:
- /html/dom/partial-updates/tentative/fragment/sanitize-template-element.html [wpt.fyi]
- Template with sanitize attribute should not strip itself when nested:
FAIL
- Template with sanitize attribute should not strip itself when nested:
- /html/dom/partial-updates/tentative/fragment/sanitize-unsafe.html [wpt.fyi]
- Template with non-empty sanitize attribute values (unsafe or invalid) bypasses safe sanitization and allows script tags:
FAIL
- Template with non-empty sanitize attribute values (unsafe or invalid) bypasses safe sanitization and allows script tags:
- /html/dom/partial-updates/tentative/fragment/src-buffered.html [wpt.fyi]:
TIMEOUT(Chrome:OK, Safari:TIMEOUT)- Buffered template src updates target atomically after fetch completes:
TIMEOUT(Chrome:FAIL, Safari:TIMEOUT)
- Buffered template src updates target atomically after fetch completes:
- /html/dom/partial-updates/tentative/fragment/src-csp-cors.sub.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- Cross-origin template src load succeeds when CORS Access-Control-Allow-Origin is present:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - Cross-origin template src load fails when CORS Access-Control-Allow-Origin is missing:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- Cross-origin template src load succeeds when CORS Access-Control-Allow-Origin is present:
- /html/dom/partial-updates/tentative/fragment/src-nonce.sub.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- Template src load succeeds when nonce matches CSP policy:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - Template src load fails when nonce mismatches CSP policy:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- Template src load succeeds when nonce matches CSP policy:
- /html/dom/partial-updates/tentative/fragment/src-parser-blocking.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- template src fetches and executes scripts asynchronously without blocking the parser:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)
- template src fetches and executes scripts asynchronously without blocking the parser:
- /html/dom/partial-updates/tentative/fragment/src-referrerpolicy.sub.html [wpt.fyi]
- Template src referrerpolicy=no-referrer blocks Referer header:
FAIL(Chrome:FAIL, Safari:FAIL) - Template src referrerpolicy=origin sends only origin in Referer header:
FAIL(Chrome:FAIL, Safari:FAIL)
- Template src referrerpolicy=no-referrer blocks Referer header:
- /html/dom/partial-updates/tentative/fragment/src-sri.sub.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- Template src load succeeds when Subresource Integrity hash matches:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - Template src load fails when Subresource Integrity hash mismatches:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- Template src load succeeds when Subresource Integrity hash matches:
- /html/dom/partial-updates/tentative/fragment/src-streaming.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- External template src streams progressively into target:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)
- External template src streams progressively into target:
- /html/dom/partial-updates/tentative/fragment/streaming-target-marker-removed.html [wpt.fyi]
- Streaming target end marker can be removed mid-stream safely, falling back to appending:
FAIL
- Streaming target end marker can be removed mid-stream safely, falling back to appending:
Comment 4•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/10785f51c95b
https://hg.mozilla.org/mozilla-central/rev/427985abb104
Description
•