Commit Graph
339 Commits
Author SHA1 Message Date
Keith Cirkel b18abd792a Bug 2045080 - Reset mReqeustCloseReturnValue during SetRequestCloseReturnValue r=dom-core-reviewers,smaug
Differential Revision: https://phabricator.services.mozilla.com/D304848
2026-06-04 21:21:58 +00:00
Luke Warlow 09529a9a67 Bug 2042201 [wpt PR 60154] - dialog.requestClose() test for removing closedby midway through, a=testonly
Automatic update from web-platform-tests
dialog.requestClose() test for removing closedby midway through (#60154)

This test demonstrates an interop bug with dialog.requestClose() and closedby.
--

wpt-commits: 1b8d9de898c425bcfe37f95f0e2acdebd2b420f0
wpt-pr: 60154
2026-06-04 07:41:16 +00:00
Luke Warlow 5d0243bf30 Bug 2041181 [wpt PR 60021] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=315206, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=315206 (#60021)
--

wpt-commits: 7a5a3d3cb32362d12b408f6c08a7eaf93383c85e
wpt-pr: 60021
2026-05-29 15:59:39 +00:00
Luke Warlow 95bda84c2d Bug 2039520 [wpt PR 59877] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311746, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311746 (#59877)
--

wpt-commits: 6fb724af7b721f91aeef4ce237ba90112408fd68
wpt-pr: 59877
2026-05-15 21:09:50 +00:00
Luke Warlow 29ceb26300 Bug 2039616 [wpt PR 59053] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311741, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=311741 (#59053)
--

wpt-commits: 014212bf8e000a18c50ba87c091a8601e608fc28
wpt-pr: 59053
2026-05-15 21:09:29 +00:00
Sam Sneddon 13ecc6bccf Bug 2037982 [wpt PR 59279] - Remove requestIdleCallback from a dialog test, a=testonly
Automatic update from web-platform-tests
Remove requestIdleCallback from a dialog test (#59279)

As far as I can tell, it just wants to make sure we've had time to
process the close before then calling it again: we don't need to wait
for as long as requestIdleCallback would.
--

wpt-commits: bc3f573143039309b30f6bd715d124ea701ecf53
wpt-pr: 59279
2026-05-12 08:48:03 +00:00
Leo Tenenbaum 5d1131e566 Bug 2032781 [wpt PR 58862] - Clean up focusing in dialog-closedby-start-open.html, a=testonly
Automatic update from web-platform-tests
Clean up focusing in `dialog-closedby-start-open.html`

--

wpt-commits: 4be4d67d1376844f34331185b7fbf09183ef49f1
wpt-pr: 58862
2026-04-23 10:15:30 +00:00
Joey Arhar 5bcc88002f Bug 2031849 [wpt PR 59104] - Restore focus on dialog close when dialog is focused, a=testonly
Automatic update from web-platform-tests
Restore focus on dialog close when dialog is focused

Dialogs only restore focus to the previously focused element on close
when an element inside the dialog is focused. When there is no focusable
element inside of the dialog and the dialog element itself becomes
focused, we should restore focus to the previously focused element when
the dialog is closed.

This change matches the spec, which uses an inclusive descendant check
on the dialog element.

Fixed: 497884156
Change-Id: I48e0e617a82a3ebe784884bd60f7d81e2776b71d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7735579
Commit-Queue: Joey Arhar <[email protected]>
Reviewed-by: David Baron <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1613005}

--

wpt-commits: c4780b9eb3332f8c0f4aa388ef0efb9ce12f71e9
wpt-pr: 59104
2026-04-23 10:11:22 +00:00
Chris Cuellar 6893ad9a63 Bug 2028850 [wpt PR 58792] - maps "toggleevent-source" web feature, a=testonly
Automatic update from web-platform-tests
maps "toggleevent-source" web feature (#58792)
--

wpt-commits: f17301ac1ea51e6f30412d4beb7ba56e5511fa5e
wpt-pr: 58792
2026-04-17 08:36:27 +00:00
Blink WPT Bot 5cd93d2faf Bug 2021702 [wpt PR 58337] - [dialog] Fix assertion in dialog-closedby-corner-cases WPT, a=testonly
Automatic update from web-platform-tests
[dialog] Fix assertion in dialog-closedby-corner-cases WPT (#58337)

Use `assert_equals` instead of `assert_true` to compare
`respondsToLightDismiss` with `shouldRespond`.

This CL updates WPT, no behavior change.

Bug: 417571176
Change-Id: I0030f9f03e100a4be9b84c9f8d2feaea431c7388
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7637950
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Peng Zhou <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1595871}

Co-authored-by: Peng Zhou <[email protected]>
--

wpt-commits: cdd7f3225ca48908c6ba23a80366cf3f2370dd9f
wpt-pr: 58337
2026-04-17 08:35:55 +00:00
Keith Cirkel 0589c437b7 Bug 2014549 - Add crash test for Dialog requestClose r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D282175
2026-04-11 06:48:06 +00:00
Ryosuke Niwa 13185c70ae Bug 2023875 [wpt PR 58526] - Add a test for inserting multiple details elements with a document fragment., a=testonly
Automatic update from web-platform-tests
Add a test for inserting multiple details elements with a document fragment. (#58526)
--

wpt-commits: fd24702f14993bf02f8245c31d489dfb1a6ae46b
wpt-pr: 58526
2026-03-30 08:02:30 +00:00
Tim Nguyen 554bd30a94 Bug 2020117 [wpt PR 58140] - Credit myself on tests I previously wrote, a=testonly
Automatic update from web-platform-tests
Credit myself on tests I previously wrote (#58140)

5bc1df18d9ba  Add WPT reftests for conic-gradient and stop normalization.
590dd7f5d93c  Add more <dialog> focus-related tests
b3958a2b7798  Add tests for animating CSS ::backdrop pseudo-element
00668dccbfd2  Import invalid-media-query-list.html from WebKit layout tests (#53149)
d6ef7143ef34  Test that focusing steps do not run when dialog is disconnected
108476e46779  WebKit export: [CSS Highlight API] REGRESSION(270146@main): Crash trying to serialize `::highlight` (#42955)
3455549bab45  WebKit export: [CSS random()] Allow in `@keyframes` (#53860)
7cac08694abc  WebKit export: [view-transitions] Allow animations to run more than once (#44609)
f9c9898520bc  WebKit export: [view-transitions] Fix white flash on certain demos (#45212)
--

wpt-commits: b15b9424e0e34c9010e01455ec3c2bbd41a9b49a
wpt-pr: 58140
2026-03-10 15:42:32 +00:00
Chris Cuellar d3efec3d53 Bug 2006484 [wpt PR 56793] - classifies "open-pseudo" web feature, a=testonly
Automatic update from web-platform-tests
classifies "open-pseudo" web feature (#56793)

* first pass at mapping "open-pseudo"

* adds additional mappings

Noting that the spec is referenced in all of these tests: https://drafts.csswg.org/selectors-4/#open-state
--

wpt-commits: a94b616f3d392dba0131be07b86f794365ae9614
wpt-pr: 56793
2025-12-20 14:42:07 +00:00
Orko Garai ceff2c4667 Bug 2002354 [wpt PR 56270] - Fix focus related failures due to URL bar being focused on launch, a=testonly
Automatic update from web-platform-tests
Fix focus related failures due to URL bar being focused on launch

Chromium-based browsers automatically focus the URL bar on launch which can prevent focus events from firing. Fix this by ensuring the page has focus first and in some cases simply change the expectation to use document.activeElement instead.
--

wpt-commits: 744d45bafb0ca4f75f19941da2d4a4d9d85b7748
wpt-pr: 56270
2025-12-20 14:41:35 +00:00
Joey Arhar d279498c24 Bug 2005035 [wpt PR 56612] - Reapply "Make light dismiss use click instead of pointerdown/up", a=testonly
Automatic update from web-platform-tests
Reapply "Make light dismiss use click instead of pointerdown/up"

This reverts commit df686d944283cfbb801057be0c8134c3e0c3f674.

The previous attempt had a flaky test which has been removed this time
around.

Bug: 425579196, 408010435
Change-Id: I6f0563e0c04197a792b2cee6efe1535de432cc17
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7235545
Reviewed-by: Robert Flack <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1556246}

--

wpt-commits: 5076a8ff63443384259f01ec0d0f041e64e18999
wpt-pr: 56612
2025-12-15 07:47:58 +00:00
jugglinmike 5544826287 Bug 1994796 [wpt PR 55481] - Map various tests to web-features (04), a=testonly
Automatic update from web-platform-tests
Map various tests to web-features (04) (#55481)

--

wpt-commits: da5fad35a4948323e4e57db650e9acfaa06b842b
wpt-pr: 55481
2025-11-13 15:05:15 +00:00
Keith Cirkel c27e0af2ec Bug 1990014 - Re-order dialog attr changed steps so that cleanup steps always occur r=smaug,dom-core
This is causing assertion failures due to the Dialog not being removed
from the open dialogs list when it is not open.

Differential Revision: https://phabricator.services.mozilla.com/D265771
2025-10-01 08:49:32 +00:00
Keith Cirkel c22805b720 Bug 1989971 [wpt PR 54975] - move details commandfor tests to tentative file, a=testonly
Automatic update from web-platform-tests
move details commandfor tests to tentative file (#54975)

--

wpt-commits: 960c1b591d7d71b53ba987df3f0361d873e6f8d4
wpt-pr: 54975
2025-09-26 12:08:28 +00:00
Luke Warlow b4b782f721 Bug 1985531 [wpt PR 54543] - Remove reliance on :open pseudo selector in unrelated tests, a=testonly
Automatic update from web-platform-tests
Remove reliance on :open pseudo selector in unrelated tests (#54543)

WebKit doesn't yet support this pseudo class, so match against [open] instead.
--

wpt-commits: f394836323e790c80d743d2580b0891e78ac894e
wpt-pr: 54543
2025-09-01 08:29:45 +00:00
Philip Jägenstedt ce2d694bcf Bug 1983517 [wpt PR 54319] - Map <dialog closedby> tests to web-features, a=testonly
Automatic update from web-platform-tests
Map <dialog closedby> tests to web-features (#54319)

--

wpt-commits: 16d773f3a2e63d0e72d6db01553db82efe2d49b4
wpt-pr: 54319
2025-08-25 08:44:15 +00:00
Tim Nguyen 848fbce489 Bug 1977989 [wpt PR 53824] - Fix "soruce" typos in dialog-toggle-source.html, a=testonly
Automatic update from web-platform-tests
Fix "soruce" typos in dialog-toggle-source.html (#53824)

--

wpt-commits: 5e7676b0d42284c490ce4637043c82cdc5e157aa
wpt-pr: 53824
2025-07-21 12:50:37 +00:00
Mason Freed b9462aa026 Bug 1974868 [wpt PR 53492] - Another attempt to fix <dialog open> top layer behavior, a=testonly
Automatic update from web-platform-tests
Another attempt to fix <dialog open> top layer behavior

This fixes the case where this element:

```
<dialog open popover id=p>
<script>
  p.showPopover();
</script>
```

could be open as a popover, yet not be in the top layer.

See [1] for a first attempt at this fix, but that caused [2], so it
was reverted. This CL cleans up the html.css file a bit, to bring
together the related parts of popover and dialog top layer and display
handling. It also refactors/moves the logic behind the
`:-internal-{popover|dialog}-in-top-layer` pseudo classes, so they use
Element methods. The initial problem with [1] was that since the
`overlay` property is used to control whether the element remains in
the top layer, it's a loop to use `:-internal-popover-in-top-layer`
to control `overlay`. The new code goes back to roughly the same
CSS as before:

```
dialog:modal, [popover]:popover-open {
    overlay: auto !important;
}
```

[1] https://chromium-review.googlesource.com/c/chromium/src/+/6185344
[2] https://crbug.com/393947100

Fixed: 388538944
Bug: 393947100
Change-Id: I46c90094f54735908b8ecb8bbe8a0c31f1d548dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6292794
Commit-Queue: Joey Arhar <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Reviewed-by: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1480691}

--

wpt-commits: 5f6a495c5e0f5663e41d2b759b688f2870d1b54b
wpt-pr: 53492
2025-07-07 10:06:57 +00:00
Joey Arhar 648da012cf Bug 1974097 [wpt PR 53398] - Don't let <form method=dialog> submit across shadow boundaries, a=testonly
Automatic update from web-platform-tests
Don't let <form method=dialog> submit across shadow boundaries

This is what the other browsers and the spec are doing:
https://github.com/whatwg/html/issues/7971

Fixed: 40229445
Change-Id: I21ef5c421560dbbf7f019aea097bd9c72a624e6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6668972
Reviewed-by: Dominic Farolino <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1478752}

--

wpt-commits: 031dcadfa908f43320753eba08e7191d5107bfeb
wpt-pr: 53398
2025-07-04 08:44:53 +00:00
Keith Cirkel be861fe689 Bug 1968285 [wpt PR 52757] - add test ensuring moveBefore does not change the order of open dialogs, a=testonly
Automatic update from web-platform-tests
add test ensuring moveBefore does not change the order of open dialogs (#52757)

--

wpt-commits: 55c1bdebbaf774f0065ba0514d76a996d156ad31
wpt-pr: 52757
2025-06-23 09:43:04 +00:00
Philip Jägenstedt 2971f39909 Bug 1971718 [wpt PR 53062] - Map dialog.requestClose() tests to web-features, a=testonly
Automatic update from web-platform-tests
Map dialog.requestClose() tests to web-features (#53062)

--

wpt-commits: bf7d5d7e8d08bd13e575d99e47ef2f4dded40309
wpt-pr: 53062
2025-06-23 09:36:07 +00:00
Joey Arhar 46405c04b8 Bug 1970472 [wpt PR 52967] - Make ToggleEvent.source WPTs non-tentative, a=testonly
Automatic update from web-platform-tests
Make ToggleEvent.source WPTs non-tentative

The spec PR has been merged, so these WPTs should no longer be marked as
tentative: https://github.com/whatwg/html/pull/11186

Bug: 408018828
Change-Id: I6ff9da8ab80551cdb4cae3cfca3cb60872806dfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6621684
Reviewed-by: Luke <[email protected]>
Commit-Queue: Luke <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1469501}

--

wpt-commits: 70f0a19eac6b582538f523fdfe19fced1b6b4e1f
wpt-pr: 52967
2025-06-19 08:16:50 +00:00
Joey Arhar 31536b9063 Bug 1970243 [wpt PR 52935] - Implement ToggleEvent.source for dialog requestclose, a=testonly
Automatic update from web-platform-tests
Implement ToggleEvent.source for dialog requestclose

I recently added this to the spec PR after incorporating spec changes
for the addition of dialog.requestClose:
https://github.com/whatwg/html/pull/11186

Bug: 408018828
Change-Id: Ia6a3a2560349760219a863dba814c5addfa60165
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6598554
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1468857}

--

wpt-commits: 4f0e0581b96db8b8cb82c1ca74ee08e47225fed0
wpt-pr: 52935
2025-06-19 08:14:52 +00:00
Luke Warlow 413c2bda8d Bug 1955191 [wpt PR 51484] - Update dialog form submission test,
Automatic update from web-platform-tests
Update dialog form submission test

We now assert the actual value of returnValue when the submit button has no attribute.

See https://github.com/whatwg/html/pull/11280.
--

wpt-commits: 76c3c693ab36c5a7eb523ec798d60cfd57379423
wpt-pr: 51484

Differential Revision: https://phabricator.services.mozilla.com/D251003
2025-05-23 19:16:08 +00:00
Mason Freed 4e7fa8d646 Bug 1967041 [wpt PR 52619] - Remove the requestIdleCallback test from closedby,
Automatic update from web-platform-tests
Remove the requestIdleCallback test from closedby

Mozilla and Chromium keep ping-ponging this test back and forth because
it's flaky. And the source of the flakiness is that there's an inherent
race in the test, between the call to requestIdleCallback and the `await
test_driver.send_keys`.  I added this test initially just to make sure
there wasn't anything weird going on, in [1]. I don't think it's worth
the flakiness in either browser's test system, so this CL just removes
that particular sub-test.

This section is racy:

```
const step = setup(t);
const ESC = '\uE00C';
await test_driver.send_keys(document.documentElement,ESC); // [2]
await step;
```

The [2] line (or equivalent in each test) is racy: we're awaiting
sending keys, but we've also already queued up things, e.g.
requestIdleCallback. The callback might get called before or after
sending the ESC key.

The test was flaky about ~80% of the time for me locally
on a Mac before this CL, and 0% after this CL.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/6259116

Fixed: 417571176
Change-Id: I8ade9b467323c7f8ad4a52f98059d328bb574852
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6559169
Commit-Queue: Mason Freed <[email protected]>
Reviewed-by: Keith Cirkel <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1462348}

--

wpt-commits: 5855958877a18ace62a91c0cda77b8848a876635
wpt-pr: 52619

Differential Revision: https://phabricator.services.mozilla.com/D250699
2025-05-22 10:43:15 +00:00
Joey Arhar 5c892a1b00 Bug 1966900 [wpt PR 52589] - Implement ToggleEvent.source,
Automatic update from web-platform-tests
Implement ToggleEvent.source

The ToggleEvent's source attribute is set to the element which invoked
the element which the ToggleEvent is being fired on. Source can be set
up as a parameter passed to element.showPopover(), an element with the
popovertarget attribute, or an element with the commandfor attribute.
This patch implements support for every element which the ToggleEvent is
currently fired on, including <details>, <dialog>, and popovers.

Bug: 408018828
Change-Id: I43f3cfe66cfcf077980180d598cfb4ccea6c171e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6427115
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1461127}

--

wpt-commits: 054fc62514695a3e3cac6eeda9854a09caac1e22
wpt-pr: 52589

Differential Revision: https://phabricator.services.mozilla.com/D250656
2025-05-22 10:40:37 +00:00
Keith Cirkel c6a1d39cde Bug 1963941 - Refactor closedby-corner-cases to avoid waiting on timers r=dom-core,edgar
Differential Revision: https://phabricator.services.mozilla.com/D247605
2025-05-12 09:33:03 +00:00
Keith Cirkel c71aafeaae Bug 1965052 - Only check top-most dialog for closedby in HandleEsc r=edgar,dom-core
We do not need to iterate over all open dialogs, as the top-most dialog
must respond _somehow_ to the escape key press, it either closes, or it
blocks the escape key-press, disallowing outer dialogs to handle the
key-press.

Differential Revision: https://phabricator.services.mozilla.com/D248309
2025-05-09 16:29:01 +00:00
Keith Cirkel 1755a3a28d Bug 1963312 [wpt PR 52240] - refactor dialog requestClose tests to wait for close event,
Automatic update from web-platform-tests
refactor dialog requestClose tests to wait for close event (#52240)

--

wpt-commits: 102d5a327d22de73f3f1420a8919edb3fe2c61f8
wpt-pr: 52240

Differential Revision: https://phabricator.services.mozilla.com/D247993
2025-05-06 13:53:17 +00:00
Keith Cirkel 37f6a330fa Bug 1963278 [wpt PR 52235] - Fixup dialog-focusability test,
Automatic update from web-platform-tests
Fixup dialog-focusability test (#52235)

--

wpt-commits: 8251881b6612203c099a85290402d9897c8a208c
wpt-pr: 52235

Differential Revision: https://phabricator.services.mozilla.com/D247983
2025-05-06 13:52:42 +00:00
Mason Freed d91c4e0d86 Bug 1963026 [wpt PR 52185] - Fix flakiness in dialog-requestclose.html test,
Automatic update from web-platform-tests
Fix flakiness in dialog-requestclose.html test

There was a recent change to this test, also to try to
eliminate some flakiness, but that change actually causes
flakiness on Chrome. Here is an example:

https://ci.chromium.org/ui/p/chromium/builders/try/linux-blink-rel/119717/overview

Some steps get missing `close` events, and others get
extra `close` events from the prior test's cleanup
steps running too late. I've replaced the step_timeout with
a *double* rAF in the hopes that this fixes flakiness
across browsers. This CL does seem to eliminate problems
in Chrome.

See the conversation here:

https://github.com/web-platform-tests/wpt/pull/52132

Fixed: 413595942
Change-Id: Id6d7bb25588c4b09693ee75b340a727d36da0919
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6492291
Commit-Queue: Di Zhang <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Reviewed-by: Di Zhang <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1452049}

--

wpt-commits: 6a9fba68ed0c1e69aa292ce604b8e484ed774ad5
wpt-pr: 52185

Differential Revision: https://phabricator.services.mozilla.com/D247939
2025-05-06 13:50:07 +00:00
keithamus a74f91b8cf Bug 1936940 - Implement dialog light dismiss r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D235504
2025-05-01 19:05:50 +00:00
Sebastian Hengst ac85dfe9e5 Revert "Bug 1936940 - Implement dialog light dismiss r=webidl,emilio" for failing two html/semantics/interactive-elements/the-dialog-element/ tests
This reverts commit 0c65e1c7da.
2025-05-01 13:56:58 +00:00
keithamus 0c65e1c7da Bug 1936940 - Implement dialog light dismiss r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D235504
2025-05-01 03:51:09 +00:00
Alexandru Marc ce0a455f47 Backed out changeset 307ff391dd02 (bug 1936940) for causing wpt failures @ dialog-closedby.html 2025-04-30 13:35:19 +03:00
keithamus 129d6b84a4 Bug 1936940 - Implement dialog light dismiss r=webidl,emilio
Differential Revision: https://phabricator.services.mozilla.com/D235504
2025-04-30 08:53:12 +00:00
Mason Freed 9f220cc1f6 Bug 1962004 [wpt PR 52105] - Add connectedness/activity check for IsOpen for dialogs, a=testonly
Automatic update from web-platform-tests
Add connectedness/activity check for IsOpen for dialogs

Many such checks of `IsOpen()` implicitly should have also checked
that the dialog was connected to an active document. This CL
replaces several `IsOpen()` checks with `IsOpenAndActive()`, which
avoids a few crashes related to `closedby`.

Also see related spec issue:

https://github.com/whatwg/html/issues/11230

Fixed: 410878546,411623170
Change-Id: Ifc3d66b6a6632fe17acf0258f98bdb557724dc24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6476484
Commit-Queue: Mason Freed <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Reviewed-by: Keith Cirkel <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1450659}

--

wpt-commits: 2754b9d6125976e07dd8f8978c31fbf5e54ec5ed
wpt-pr: 52105
2025-04-24 11:45:18 +00:00
Keith Cirkel cc6b5958a7 Bug 1961968 [wpt PR 52092] - Create another dialog requestClose crashtest, a=testonly
Automatic update from web-platform-tests
Create another dialog requestClose crashtest (#52092)

--

wpt-commits: 43a06153617aa58f877f9e5873c0a02290b1c2a8
wpt-pr: 52092
2025-04-24 11:44:54 +00:00
keithamus 803154a9f6 Bug 1960556 - Implement Dialog requestClose r=webidl,smaug
Differential Revision: https://phabricator.services.mozilla.com/D245566
2025-04-23 16:44:25 +00:00
Keith Cirkel 23886de150 Bug 1960825 [wpt PR 52020] - add two crash-tests for dialog requestClose, a=testonly
Automatic update from web-platform-tests
add two crash-tests for dialog requestClose (#52020)

--

wpt-commits: 81afdec3b67baf9a9d0c2bf94b3df231ef2295a9
wpt-pr: 52020
2025-04-23 10:43:41 +00:00
Ryosuke Niwa 92a7b7471a Bug 1954942 [wpt PR 51442] - Fix the issue #51441 by waiting for the actual scrolling to happen in test_move_focus_dont_scroll_viewport., a=testonly
Automatic update from web-platform-tests
Fix the issue #51441 by waiting for the actual scrolling to happen in test_move_focus_dont_scroll_viewport. (#51442)

Because scrolling to the button may happen over a period of time, we can't assume that scrollTop has moved
when we receive the first scroll event.
--

wpt-commits: d769a3c872673b8b434e57734120e90fce477c76
wpt-pr: 51442
2025-03-23 08:12:17 +00:00
Mason Freed 001282afa4 Bug 1951009 [wpt PR 51008] - Fix missing invalidation of :open pseudo for dialogs, a=testonly
Automatic update from web-platform-tests
Fix missing invalidation of :open pseudo for dialogs

This was missing, so that changing the `open` attribute did not
invalidate the `:open` pseudo class.

Change-Id: If4bffc3e926b8e40b07a86ddc247f44c7d381812
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6227749
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1426017}

--

wpt-commits: d48385dbf74cb8698fe96277c91c4ed6e18f44ac
wpt-pr: 51008
2025-03-03 13:44:07 +00:00
zhoupeng 217cefd010 Bug 1950770 [wpt PR 50985] - The container node of the dialog element should be connected to a document, a=testonly
Automatic update from web-platform-tests
The container node of the dialog element should be connected to a document

Consider this test case:
const dialog = document.createElement('dialog');
dialog.open = true;
const node = document.createElement('div');
node.appendChild(dialog);
document.body.appendChild(node);

This results in a DCHECK failure. When a `dialog` element is added to
`node`, the `HTMLDialogElement::InsertedInto` is called. This method
will continue to be called when `node` is added to the document.
The presence of `ContainerNode` in the document should be evaluated in
`HTMLDialogElement::InsertedInto` and `HTMLDialogElement::RemoveFrom`.

Bug: 398401913, 398630741
Change-Id: I1c656d6a6d808f1c038c9e5d65c0178f26595f48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6298221
Reviewed-by: Mason Freed <[email protected]>
Auto-Submit: Peng Zhou <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1425499}

--

wpt-commits: cc174d4d70d350834dbe6c5fafad4bbc9ce3756b
wpt-pr: 50985
2025-02-28 06:55:40 +00:00
Mason Freed adce11c231 Bug 1948376 [wpt PR 50725] - Very small cleanup, a=testonly
Automatic update from web-platform-tests
Very small cleanup

This just removes an extra `new` in a few places. This:

  `await new test_driver.send_keys`

becomes this:

  `await test_driver.send_keys`

The test_driver.send_keys function does not use `this`,
so `new` is not needed:

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/resources/testdriver.js;l=71;drc=5dc84ea15257674d6cf48920576a293557e53069

Change-Id: Ie21c96d8d05c74f97de49b116df5f045ed3e03c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6266169
Reviewed-by: Di Zhang <[email protected]>
Commit-Queue: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1422261}

--

wpt-commits: f280649df7e7f692dd373b7532c6de5eb0688fc0
wpt-pr: 50725
2025-02-28 06:53:39 +00:00
Mason Freed d9c3295814 Bug 1949299 [wpt PR 50813] - Handle the open dialogs list and close watcher when removed, a=testonly
Automatic update from web-platform-tests
Handle the open dialogs list and close watcher when removed

See more discussion here:

  https://github.com/whatwg/html/pull/10954

In particular, this comment should summarize the end-state after this
CL lands:

  https://github.com/whatwg/html/pull/10954#issuecomment-2660172510

Essentially, the spec says to remove a dialog from the open dialogs
list when the dialog is removed from the document:

https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-requestclose:~:text=Remove%20removedNode%20from%20removedNode%27s%20node%20document%27s%20open%20dialogs%20list

But it does not say what to do when a dialog is inserted into the
document that has the `open` attribute, however. It also doesn't
correctly handle the distinction between connected and disconnected
dialogs. This CL adds insertion steps that re-add dialogs to the open
dialogs list, and re-create the close watcher. Plus tests. Lots of
tests.

Bug: 376516550
Change-Id: Ie70d63287e26c4e5f4a0a200205f78e914e6a220
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6259116
Reviewed-by: Joey Arhar <[email protected]>
Commit-Queue: Joey Arhar <[email protected]>
Auto-Submit: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1422181}

--

wpt-commits: 68c405e14856d3a9f9264adc8b3df6de42af3fe3
wpt-pr: 50813
2025-02-28 06:53:19 +00:00