Automatic update from web-platform-tests
Fixes click on inline element embedded in anchor inside <summary> breaks anchor.
Previous to this CL, clicking on an inline element embedded in an anchor placed
inside a <summary> tag will expand the <details> section instead of navigating to
the anchor's href. However, when the anchor is placed outside of <summary>,
it behaves correctly.
The error is caused by DOMActivate event generated by the inline element. As
DOMActivate bubbles up, it bypasses the anchor's event handler, reaches the
<summary>, and is handled there. Once DOMActivate is handled, the original
click event stops propagating and terminates. This behavior, however, differs
from when the anchor tag is placed outside of the summary. DOMActivate isn't
handled, and the original click event keeps bubbling up till it's handled by
the anchor.
DOMActivate event is deprecated:
https://developer.mozilla.org/en-US/docs/Web/API/Element/DOMActivate_event.
However, since blink still has code that depends on it, replacing it is outside
of the scope for this fix. Instead, this fix is for the anchor element to
handle the DOMActivate event as it bubbles up. The anchor event handler checks
the underlying event of DOMActivate and handles it if it's a click.
I also looked at an alternative fix by trying to prevent the DOMActivate event
from bubbling up. But calling event.stopPropagation() doesn't work as the
EventDispatcher::DispatchEventPostProcess doesn't check this status.
Bug: 538283
Change-Id: I11fb072faa0563279d43a28e5dc19cee89906bf0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1928234
Reviewed-by: Kent Tamura <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Commit-Queue: Yu Han <[email protected]>
Cr-Commit-Position: refs/heads/master@{#718552}
--
wpt-commits: fa8e9c41c5581439f93897e7c2fe674f803bfa21
wpt-pr: 20376
Automatic update from web-platform-tests
hmtl: Add a test for an autofocus issue with <dialog>
Follows https://github.com/whatwg/html/pull/4918.
--
wpt-commits: 64fff8f90cf94701f7631f84d54f882d846eca3a
wpt-pr: 19151
Automatic update from web-platform-tests
[html] Clean state between dialog positioning tests
Calling `reset()` at the end of every test to close the modal dialog
will only be invoked if the test passes. If an expectation fails, the
call to `reset()` will never run and the dialog will remain modally open
on the page. This causes all further tests to fail because calling
`showModal()` on the dialog while it is open is an error.
Instead, set up `reset()` to be called as a cleanup after every test
regardless of whether the test passes or fails.
--
[html] Fix closing dialogs in showModal test
The `add_cleanup()` calls need to be registered outside of the
`assert_throws` block to ensure that the dialogs are actually closed.
--
wpt-commits: e27c96ebb41237468c9306e629756a2459982dbd, 79c38259f4deb0d7967a1ed8419185909120fd9b
wpt-pr: 19657
Automatic update from web-platform-tests
HTML: remove nonsense JSON resources
Pretty sure we don't have a use for these.
--
remove more JSON
--
wpt-commits: 84ee83638741a79a2b6cf7e67bca1f9c9dc92695, 0f05ba74bb119f32981027aa72d2e3d67e03a4c4
wpt-pr: 17574
Automatic update from web-platform-tests
[LayoutNG] DETAILS/SUMMARY may override display type.
We cannot safely assume, based on display type, that a DETAILS or
SUMMARY element is going to establish a new formatting context, since
they may ignore the display type and just create a regular block
container (which doesn't necessarily establish a new formatting
context).
Bug: 969619
Change-Id: Ie59fe7301f8706cd4d39b3312fe6748c4ffb17e6
Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1640410
Reviewed-by: Ian Kilpatrick <[email protected]>
Commit-Queue: Morten Stenshorne <[email protected]>
Cr-Commit-Position: refs/heads/master@{#665532}
--
wp5At-commits: 8bceacbe19657ffe1273ff75d95bde03f66a61c6
wpt-pr: 17137
Automatic update from web-platform-testsHTML: test accesskey for legend
See https://github.com/whatwg/html/pull/3987
--
wpt-commits: de955843cde5540bfc63015490630beeb1f19f89
wpt-pr: 12800
Automatic update from web-platform-testsReplace/remove ayg in suggested_reviewers in META.yml (#11852)
Responsibilities distributed as discussed in
https://github.com/web-platform-tests/wpt/issues/11521.
In html/, because there aren't obvious candidates for some of the
subdirectories, instead expand html/META.yml to include all present
editors of the HTML standard.
In the past year, most of the action has been in html/semantics/, and
the busiest of the directories within do all have more granular
reviewers, so hopefully this is an improvement.
Fixes https://github.com/web-platform-tests/wpt/issues/11521.
--
wpt-commits: d332f12c8af648643c54082194c120ba654100a2
wpt-pr: 11852
Automatic update from web-platform-testsRemove .gitkeep files in 2dcontext/ and html/ (#11851)
These were added in commit 818bcab4ba58d2bc8dba94276c8b944c76570a19
and reflect the structure of the HTML spec as it was in 2012.
The structure largely remains the same, but some directories like
webappapis/user-prompts/dialogs-implemented-using-separate-documents/
are gone from the spec (https://github.com/whatwg/html/pull/374) and
others like introduction/ are non-normative and should never be
populated.
But mainly, a lot of empty directories is a nuisance when exploring
the directory in a file manager or on GitHub.
The number of directories in 2dcontext/ and html/ combined decreases
by almost 200, from 653 to 456.
--
wpt-commits: ddfe9c089bab565a9d3aa37bdef63d8012c1a94c
wpt-pr: 11851
Automatic update from web-platform-testsMigrate fullscreen to use top layer.
Previous attempts of adding and removing to the top layer were done
synchronously. The spec has been updated to do this asynchronously and
this change matches those changes.
Bug: 240576
Change-Id: Ic57a651596c685daa4b32d78421de5db912c106e
Reviewed-on: https://chromium-review.googlesource.com/1066600
Commit-Queue: Dave Tapuska <[email protected]>
Reviewed-by: Christian Biesinger <[email protected]>
Reviewed-by: Philip Jägenstedt <[email protected]>
Cr-Commit-Position: refs/heads/master@{#563065}
--
wpt-commits: 1829a42c93e435937db68c8a842fa9b56dd39dc2
wpt-pr: 11206
Add ontoggle event handler, and dispatch toggle events to the details
element if the open attribute is added or changed. According to the
spec, if a new toggle event has been queued, previous toggle events
should be aborted.
MozReview-Commit-ID: EN6Jf5hVHHD