[wpt-sync] Sync PR 56217 - Fix styleSheets access for DOMParser-created documents
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 56217 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/56217
Details from upstream follow.
Helmut Januschka <helmut@januschka.com> wrote:
Fix styleSheets access for DOMParser-created documents
Remove document IsActive() check in StyleSheetsForStyleSheetList()
so that documents created via DOMParser have accessible styleSheets
collections.
- https://drafts.csswg.org/cssom/#dom-document-stylesheets
- HTML: https://html.spec.whatwg.org/multipage/semantics.html#update-a-style-block
Bug: 1310198
Change-Id: I128fdd4398633c94a79bfdc9cbe0a818280c2d9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7181280
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Helmut Januschka \<helmut@januschka.com>
Cr-Commit-Position: refs/heads/main@{#1549070}
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 10 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 33 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 31[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-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PASS: 2[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 6[GitHub] 486[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-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
FAIL: 29
Chrome
OK : 1
PASS: 1
FAIL: 5
Safari
OK : 1
PASS: 1
FAIL: 5
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /domparsing/DOMParser-parseFromString-xml.html [wpt.fyi]
- XMLDocument interface for correctly parsed document with type text/xml:
FAIL - XMLDocument interface for incorrectly parsed document with type text/xml:
FAIL - XMLDocument interface for correctly parsed document with type application/xml:
FAIL - XMLDocument interface for incorrectly parsed document with type application/xml:
FAIL - XMLDocument interface for correctly parsed document with type application/xhtml+xml:
FAIL - XMLDocument interface for incorrectly parsed document with type application/xhtml+xml:
FAIL - XMLDocument interface for correctly parsed document with type image/svg+xml:
FAIL - XMLDocument interface for incorrectly parsed document with type image/svg+xml:
FAIL
- XMLDocument interface for correctly parsed document with type text/xml:
- /domparsing/XMLSerializer-serializeToString.html [wpt.fyi]
- Check if redundant xmlns="..." is dropped.:
FAIL - Check if inconsistent xmlns="..." is dropped.:
FAIL - Check if an attribute with namespace and no prefix is serialized with the nearest-declared prefix even if the prefix is assigned to another namespace.:
FAIL - Check if the prefix of an attribute is NOT preserved in a case where neither its prefix nor its namespace URI is not already used.:
FAIL - Check if the prefix of an attribute is replaced with a generated one in a case where the prefix is already mapped to a different namespace URI.:
FAIL - Check if attribute serialization takes into account of following xmlns:* attributes:
FAIL - Check if attribute serialization takes into account of the same prefix declared in an ancestor element:
FAIL - Check if start tag serialization drops element prefix if the namespace is same as inherited default namespace.:
FAIL - Check if start tag serialization takes into account of its xmlns:* attributes:
FAIL - Check if start tag serialization applied the original prefix even if it is declared in an ancestor element.:
FAIL - Check if start tag serialization does NOT apply the default namespace if its namespace is declared in an ancestor.:
FAIL - Check if generated prefixes match to "ns${index}".:
FAIL - Check if "ns1" is generated even if the element already has xmlns:ns1.:
FAIL - Check if no special handling for XLink namespace unlike HTML serializer.:
FAIL
- Check if redundant xmlns="..." is dropped.:
- /domparsing/createContextualFragment.html [wpt.fyi]
- SVG namespace shouldn't be special:
FAIL
- SVG namespace shouldn't be special:
- /domparsing/innerhtml-01.xhtml [wpt.fyi]
- innerHTML in XHTML: getting while the document is in an invalid state:
FAIL - innerHTML in XHTML: getting while the document is in an invalid state 1:
FAIL
- innerHTML in XHTML: getting while the document is in an invalid state:
- /domparsing/innerhtml-05.xhtml [wpt.fyi]
- innerHTML in XHTML:
FAIL
- innerHTML in XHTML:
- /domparsing/xml-serialization.xhtml [wpt.fyi]
- DocumentType: 'QUOTATION MARK' (U+0022):
FAIL - DocumentType: 'APOSTROPHE' (U+0027) and 'QUOTATION MARK' (U+0022):
FAIL - ProcessingInstruction: empty data:
FAIL
- DocumentType: 'QUOTATION MARK' (U+0022):
Comment 4•1 year ago
|
||
| bugherder | ||
Description
•