Closed Bug 2024181 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 58545 - Add a test which removes the next sibling during replaceWith.

Categories

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

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Ryosuke Niwa <rniwa@webkit.org> wrote:

Add a test which removes the next sibling during replaceWith.

This was a bug in WebKit and did not have a test coveerage.

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

CI Results

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

Total 321 tests

Status Summary

Firefox

OK : 1[GitHub] 308[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-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PASS : 1[GitHub] 9[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 14852[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 14853[Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt] 14854[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 14860[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]
FAIL : 37[Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt] 38[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] 39[Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PRECONDITION_FAILED: 6

Chrome

OK : 1
PASS : 1

Safari

OK : 1
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/nodes/Document-contentType/contentType/contenttype_bmp.html [wpt.fyi]: SKIP
  • /dom/nodes/Document-createEvent.https.html [wpt.fyi]
    • TouchEvent should be an alias for TouchEvent.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
    • createEvent('TouchEvent') should be initialized correctly.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
    • touchevent should be an alias for TouchEvent.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
    • createEvent('touchevent') should be initialized correctly.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
    • TOUCHEVENT should be an alias for TouchEvent.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
    • createEvent('TOUCHEVENT') should be initialized correctly.: PASS [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], PRECONDITION_FAILED [Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
  • /dom/nodes/Node-lookupNamespaceURI.html [wpt.fyi]
    • Element has namespace URI matching prefix: FAIL
    • Comment should inherit namespace URI matching prefix: FAIL
    • Child element should inherit baz namespace: FAIL
    • Child element should have null namespace: FAIL
    • Child element has namespace URI matching prefix: FAIL
    • baz namespace is default for child: FAIL
    • childNamespace is default for child: FAIL
    • Document should have xhtml namespace, prefix null: FAIL
    • Document should have xhtml namespace, prefix "": FAIL
    • For document, baz namespace is not default: FAIL
    • For document, xhtml namespace is default: FAIL
  • /dom/nodes/Node-mutation-adoptNode.html [wpt.fyi]
    • Adopting an element into a different document update's the element's owner doc as well as the owner docs of it's attributes: FAIL
  • /dom/nodes/adoption.window.html [wpt.fyi]
    • adoptNode() and DocumentFragment with host: FAIL
  • /dom/nodes/insertion-removing-steps/Node-append-meta-referrer-and-script-from-fragment.tentative.html [wpt.fyi]
    • <meta name=referrer> gets processed and applied in the post-insertion steps: FAIL
  • /dom/nodes/insertion-removing-steps/Node-appendChild-script-and-default-style-meta-from-fragment.tentative.html [wpt.fyi]
    • Inserting <meta> that uses alternate stylesheets, applies the style during DOM post-insertion steps: FAIL
  • /dom/nodes/insertion-removing-steps/Node-appendChild-script-and-iframe.tentative.html [wpt.fyi]
    • A script inserted atomically before an iframe (using a div) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes: FAIL
    • A script inserted atomically before an iframe (using a DocumentFragment) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes: FAIL
    • A script inserted atomically before an iframe (using a append() with multiple arguments) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes: FAIL
  • /dom/nodes/insertion-removing-steps/Node-appendChild-script-and-style.tentative.html [wpt.fyi]
    • An earlier-inserted <script> synchronously observes a later-inserted <style> (via a div) being applied: FAIL
    • An earlier-inserted <script> synchronously observes a later-inserted <style> (via a DocumentFragment) being applied: FAIL
    • Earlier-inserted <script> (via a DocumentFragment) synchronously observes a later-inserted <link rel=stylesheet>'s CSSStyleSheet creation: FAIL
    • Earlier-inserted <script> (via a div) synchronously observes a later-inserted <link rel=stylesheet>'s CSSStyleSheet creation: FAIL
    • Earlier-inserted <script> (via a append()) synchronously observes a later-inserted <link rel=stylesheet>'s CSSStyleSheet creation: FAIL
  • /dom/nodes/insertion-removing-steps/Node-appendChild-script-in-script.tentative.html [wpt.fyi]
    • An outer script whose preparation/execution gets triggered by the insertion of a 'nested'/'inner' script, executes before the inner script executes: FAIL
  • /dom/nodes/insertion-removing-steps/insertion-removing-steps-iframe.window.html [wpt.fyi]
    • Insertion steps: load event fires synchronously after iframe DOM insertion, as part of the iframe element's insertion steps: FAIL
    • Removing steps (innerHTML): script does not run synchronously during iframe destruction: FAIL
    • Removing steps (replaceChildren): script does not run synchronously during iframe destruction: FAIL
    • Removing steps (remove): script does not run synchronously during iframe destruction: FAIL
  • /dom/nodes/insertion-removing-steps/later-script-removed-by-earlier-script.html [wpt.fyi]
    • A later-inserted script removed by an earlier-inserted script in the same document fragment should not run: FAIL
    • A later-inserted script removed by an earlier-inserted script in the same append() call should not run: FAIL
  • /dom/nodes/moveBefore/preserve-render-blocking-script.html [wpt.fyi]
    • A moved script should keep its render-blocking state: FAIL
  • /dom/nodes/moveBefore/preserve-render-blocking-style.html [wpt.fyi]
    • A moved script should keep its render-blocking state: FAIL
  • /dom/nodes/moveBefore/selection-preserve.html [wpt.fyi]
    • moveBefore should not reset selection with preceding text: FAIL
    • moveBefore resets selection that enters a subtree, when the whole selection is moved: FAIL
    • moveBefore anchor node moved up to expand selection and absorb nodes: FAIL
    • moveBefore focus node moved up to shrink selection and exclude nodes; focus node gets reset: FAIL
    • moveBefore selection is not preserved, especially when underlying range gets inverted: FAIL
  • /dom/nodes/moveBefore/focus-preserve-render.html [wpt.fyi]: FAIL
  • /dom/nodes/remove-from-shadow-host-and-adopt-into-iframe.html [wpt.fyi]: FAIL [Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt], PASS [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]

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/2cd61ca8a99f https://hg.mozilla.org/integration/autoland/rev/8a6c76722e2d [wpt PR 58545] - Add a test which removes the next sibling during replaceWith., a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.