Closed Bug 1783380 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 35350 - Add XML parser tests for custom elements

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 35350 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/35350
Details from upstream follow.

Ryosuke Niwa <rniwa@webkit.org> wrote:

Add XML parser tests for custom elements

These tests were written for WebKit: https://commits.webkit.org/253122@main
Trunk WebKit passes all the test cases whereas Gecko passes all but two involving document.open.
Blink fail a bulk of tests requring XML parser to construct custom elements synchronously.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 75 tests and 5 subtests

Status Summary

Firefox

OK : 75
PASS : 757[Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows10-32-2004-qr-debug, Gecko-windows10-32-2004-qr-opt, Gecko-windows10-64-2004-qr-debug, Gecko-windows10-64-2004-qr-opt, GitHub] 760[Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview]
FAIL : 24

Chrome

OK : 73
PASS : 744
CRASH: 2
FAIL : 15

Safari

OK : 74
PASS : 540
FAIL : 230
ERROR: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

  • /custom-elements/Document-createElement.html [wpt.fyi]
    • document.createElement must report a NotSupportedError when the element is adopted into a the document of an iframe during construction: FAIL
    • document.createElement must report a NotSupportedError when the element is inserted into a the document of an iframe during construction: FAIL
    • document.createElement must not report a NotSupportedError when the element is adopted back from a the document of an iframe during construction: FAIL
  • /custom-elements/adopted-callback.html [wpt.fyi]
    • Moving the shadow host's shadow of a custom element from the owner document into the document of the template elements must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into a new document must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into a new document must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into a cloned document must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into a cloned document must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into a document created by createHTMLDocument must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into a document created by createHTMLDocument must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into an HTML document created by createDocument must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into an HTML document created by createDocument must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into the document of an iframe must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into the document of an iframe must enqueue and invoke adoptedCallback: FAIL
    • Moving the shadow host's shadow of a custom element from the owner document into an HTML document fetched by XHR must enqueue and invoke adoptedCallback: FAIL
    • Moving the <template>'s content of a custom element from the owner document into an HTML document fetched by XHR must enqueue and invoke adoptedCallback: FAIL
  • /custom-elements/reactions/Document.html [wpt.fyi]
    • execCommand on Document must enqueue a disconnected reaction when deleting a custom element from a contenteditable element: FAIL
  • /custom-elements/reactions/HTMLElement.html [wpt.fyi]
    • translate on HTMLElement must enqueue an attributeChanged reaction when adding translate content attribute: FAIL linked bug:Bug 1710159
    • translate on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute: FAIL linked bug:Bug 1710159

New Tests That Don't Pass

  • /custom-elements/Document-createElement.html [wpt.fyi]
    • document.createElement must report a NotSupportedError when the element is adopted into a the document of an iframe during construction: FAIL (Chrome: PASS, Safari: PASS)
    • document.createElement must report a NotSupportedError when the element is inserted into a the document of an iframe during construction: FAIL (Chrome: PASS, Safari: PASS)
    • document.createElement must not report a NotSupportedError when the element is adopted back from a the document of an iframe during construction: FAIL (Chrome: PASS, Safari: PASS)
  • /custom-elements/adopted-callback.html [wpt.fyi]
    • Moving the shadow host's shadow of a custom element from the owner document into the document of the template elements must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into a new document must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into a new document must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into a cloned document must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into a cloned document must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into a document created by createHTMLDocument must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into a document created by createHTMLDocument must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into an HTML document created by createDocument must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into an HTML document created by createDocument must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into the document of an iframe must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into the document of an iframe must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the shadow host's shadow of a custom element from the owner document into an HTML document fetched by XHR must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
    • Moving the <template>'s content of a custom element from the owner document into an HTML document fetched by XHR must enqueue and invoke adoptedCallback: FAIL (Chrome: PASS, Safari: PASS)
  • /custom-elements/perform-microtask-checkpoint-before-construction-xml-parser.xhtml [wpt.fyi]
    • XML parser must perform a microtask checkpoint before constructing a custom element: FAIL (Chrome: FAIL, Safari: FAIL)
  • /custom-elements/throw-on-dynamic-markup-insertion-counter-construct-xml-parser.xhtml [wpt.fyi]
    • document.open(URL) must NOT throw an InvalidStateError when synchronously constructing a custom element: FAIL (Safari: FAIL)
  • /custom-elements/throw-on-dynamic-markup-insertion-counter-reactions-xml-parser.xhtml [wpt.fyi]
    • document.open(URL) must NOT throw an InvalidStateError when processing custom element reactions for a synchronous constructed custom element: FAIL
  • /custom-elements/reactions/Animation.html [wpt.fyi]
    • Animation.animate must enqueue an attributeChanged reaction when it adds the observed style attribute: FAIL (Chrome: FAIL, Safari: FAIL)
    • Animation.animate must enqueue an attributeChanged reaction when it mutates the observed style attribute: FAIL (Chrome: FAIL, Safari: FAIL)
  • /custom-elements/reactions/Document.html [wpt.fyi]
    • execCommand on Document must enqueue a disconnected reaction when deleting a custom element from a contenteditable element: FAIL (Chrome: PASS, Safari: PASS)
  • /custom-elements/reactions/HTMLElement.html [wpt.fyi]
    • translate on HTMLElement must enqueue an attributeChanged reaction when adding translate content attribute: FAIL (Chrome: PASS, Safari: PASS)
    • translate on HTMLElement must enqueue an attributeChanged reaction when replacing an existing attribute: FAIL (Chrome: PASS, Safari: PASS)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4de577477aed [wpt PR 35350] - Add XML parser tests for custom elements, a=testonly https://hg.mozilla.org/integration/autoland/rev/cd3d126e377f [wpt PR 35350] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.