Closed Bug 1849587 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41559 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=260463

Categories

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

task

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Michael[tm] Smith <mike@w3.org> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=260463

WebKit export from bug: When <details> is open and closed multiple times (coalesced tasks), the ToggleEvent oldState is set wrong

PR 41559 applied with additional changes from upstream: d48fa8b3e81c1fd052237372533ba69113812ecf
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 1 tests and 10 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 8

Chrome

OK : 1
PASS: 2
FAIL: 8

Safari

OK : 1
PASS: 2
FAIL: 8

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /html/semantics/interactive-elements/the-details-element/toggleEvent.html [wpt.fyi]
    • Adding open to 'details' should fire a toggle event at the 'details' element, with 'oldState: closed' and 'newState: open': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' and then removing open from that 'details' should fire only one toggle event at the 'details' element, with 'oldState: closed' and 'newState: closed': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' (display:none) should fire a toggle event at the 'details' element, with 'oldState: closed' and 'newState: open': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' (no children) should fire a toggle event at the 'details' element, with 'oldState: closed' and 'newState: open': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' and then removing open from that 'details' and then again adding open to that 'details' should fire only one toggle event at the 'details' element, with 'oldState: closed' and 'newState: closed': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' using setAttribute('open', '') should fire a toggle event at the 'details' element, with 'oldState: closed' and 'newState: open': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' and then calling removeAttribute('open') should fire only one toggle event at the 'details' element, with 'oldState: closed' and 'newState: closed': FAIL (Chrome: FAIL, Safari: FAIL)
    • Adding open to 'details' (not in the document) should fire a toggle event at the 'details' element, with 'oldState: closed' and 'newState: open': FAIL (Chrome: FAIL, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.