Commit Graph
37 Commits
Author SHA1 Message Date
yu han 4ac297d8a9 Bug 1598476 [wpt PR 20376] - Fixes click on inline element embedded in anchor inside <summary> breaks anchor., a=testonly
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
2019-11-29 10:57:50 +00:00
TAMURA, Kent eb10e33847 Bug 1582350 [wpt PR 19151] - hmtl: Add a test for an autofocus issue with <dialog>, a=testonly
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
2019-11-29 10:55:38 +00:00
Darryl Pogue 6419d5be01 Bug 1588343 [wpt PR 19657] - [html] Clean state between dialog positioning tests, a=testonly
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
2019-10-24 18:03:34 +01:00
Anne van Kesteren c461b9c75e Bug 1564939 [wpt PR 17574] - HTML: remove nonsense JSON resources, a=testonly
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
2019-07-24 13:33:50 +01:00
Morten Stenshorne 2e70b0d7f8 Bug 1556399 [wpt PR 17137] - [LayoutNG] DETAILS/SUMMARY may override display type., a=testonly
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
2019-06-19 11:06:33 -07:00
Simon Pieters 154b8f8094 Bug 1488178 [wpt PR 12800] - HTML: test accesskey for legend, a=testonly
Automatic update from web-platform-testsHTML: test accesskey for legend

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

wpt-commits: de955843cde5540bfc63015490630beeb1f19f89
wpt-pr: 12800
2018-09-12 10:42:55 +00:00
Philip Jägenstedt 782894f25d Bug 1474297 [wpt PR 11852] - Replace/remove ayg in suggested_reviewers in META.yml, a=testonly
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
2018-07-20 13:04:31 +00:00
Philip Jägenstedt 805f777dc5 Bug 1474282 [wpt PR 11851] - Remove .gitkeep files in 2dcontext/ and html/, a=testonly
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
2018-07-20 13:04:30 +00:00
Dave Tapuska d39a477b77 Bug 1464926 [wpt PR 11206] - Migrate fullscreen to use top layer., a=testonly
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
2018-06-10 09:31:19 +01:00
James Graham ca38db6d48 Bug 1421370 - Update web-platform-tests to revision 2b50389ee72d89dd0be12bc6ca54a6e95c98d163, a=testonly
MozReview-Commit-ID: 7xxqj73z5yl
2017-11-28 21:32:30 +00:00
James Graham ce3ea2f585 Bug 1419296 - Update web-platform-tests to fa27b785c62e67cc3a12201612db188c4fdd49ad, a=testonly
MozReview-Commit-ID: 4P631tX3vv4
2017-11-21 07:39:00 +00:00
James Graham 70d673c377 Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-25 10:45:59 +01:00
Attila Craciun c1a7e6e3a9 Backed out changeset 2c89e7b44592 (bug 1410245) for failing Windows web platform tests (Assertion Failure) r=backout on a CLOSED TREE. 2017-10-20 15:37:18 +03:00
James Graham 09fc912cfe Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-20 11:07:49 +01:00
Sebastian Hengst c6ce04b694 Backed out changeset 8cbc5032b043 (bug 1410245) for references to removed files in wpt's moz.build file. r=backout on a CLOSED TREE 2017-10-20 00:50:06 +02:00
James Graham 15428f7b8f Bug 1410245 - Update web-platform-tests to revision a372dce582c21c911056273eec042fd9073cbd60, a=testonly
MozReview-Commit-ID: CQzdR66hsXZ
2017-10-19 22:22:41 +01:00
James Graham 58f84ddd62 Bug 1402002 - Update web-platform-tests to revision b88862e6e574c2116f8efea0e982f6776a3c4b22, a=testonly
MozReview-Commit-ID: FlhL7aMvsiY
2017-09-23 15:03:31 +01:00
Sebastian Hengst 4dee2ea142 Backed out changeset 147051a4cc35 (bug 1402002) for perma-crashing in wpt /css/css-variables-1/variable-first-letter.html on Linux 32 stylo disabled debug and still failing wpt /mediacapture-streams/MediaStream-MediaElement-preload-none.https.html on non-stylo builds. r=backout a=backout
MozReview-Commit-ID: EWASfe1D350
2017-09-22 11:42:15 +02:00
James Graham 73f749b591 Bug 1402002 - Update web-platform-tests to revision b88862e6e574c2116f8efea0e982f6776a3c4b22, a=testonly
MozReview-Commit-ID: FlhL7aMvsiY
2017-09-21 16:41:28 +01:00
James Graham 4163e541cc Bug 1381842 - Update web-platform-tests to revision 85ae24e3dc80ee63b6dc2ed78a922cff68c6e819, a=testonly
MozReview-Commit-ID: DfvN9mAFYhI
2017-07-20 13:05:25 +01:00
James Graham a99f828ced Bug 1363982 - Update web-platform-tests to revision db6ed4bb451e44748cbb9af69d0a01c17a33571a a=testonly
MozReview-Commit-ID: KjIquC2PKKI
2017-05-11 18:01:46 +01:00
James Graham 99f3698b17 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-20 10:49:24 +01:00
Sebastian Hengst ae83546ec4 Backed out changeset e7024412b94e (bug 1356225)
MozReview-Commit-ID: Ib8aOAM6cQ2
2017-04-14 17:18:47 +02:00
James Graham 468eebfa83 Bug 1356225 - Update web-platform-tests to revision d519fe9011da7cfce7949f7ed826e9759dc5c532, a=testonly
MozReview-Commit-ID: GmGgeZxHy0j
2017-04-13 16:22:32 +01:00
James Graham b9dadc7bae Bug 1335397 - Update web-platform-tests to d93247d5cb7d70f80da8b154a171f4e3d50969f4, a=testonly
MozReview-Commit-ID: 4ow7Qzx6nhD
2017-02-04 09:38:58 +00:00
James Graham d9ee612568 Bug 1331899 - Update web-platform-tests to revision 7071a3d128ff6610a57944d1b0aaabee97b3af5a, a=testonly
MozReview-Commit-ID: LvpIb2OK2GS
2017-01-19 14:23:39 +00:00
James Graham 8622cfc387 Bug 1309931 - Update web-platform-tests to revision 1d8e28e2c762b51c06670a373b23af6bd7a8aed7, a=testonly
MozReview-Commit-ID: 17dwWFxkprQ
2016-10-25 18:10:30 +01:00
James Graham 5aa8b71c34 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-04 23:34:05 +01:00
Phil Ringnalda 48419535ac Back out 2 changesets (bug 1291312) for making Win7 debug wpt-e10s-2 permanently fail by taking more than 7200 seconds to run, a=backout
Backed out changeset 0267734ec297 (bug 1291312)
Backed out changeset 8232b0211660 (bug 1291312)
2016-08-03 18:50:40 -07:00
James Graham 4255c10e30 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-02 20:22:14 +01:00
Sebastian Hengst 92be3e18e3 Backed out changeset 6fbdadb91edf (bug 1291312) for timing out in encrypted-media-keystatuses-multiple-updates.html. r=backout 2016-08-02 20:45:48 +02:00
James Graham 44d6a9a253 Bug 1291312 - Update web-platform-tests to revision 7a6a5c9f436730f86123e6f48a44bf1b7ba5654f, a=testonly
MozReview-Commit-ID: 2Z26QRXPNuK
2016-08-02 16:51:47 +01:00
Ting-Yu Lin 2843986545 Bug 1225412 followup - Add comment to details10 in toggleEvent.html for consistency. r=me
Comment-only so DONTBUILD.
2016-03-14 12:00:17 +08:00
Ting-Yu Lin 24385dcb45 Bug 1225412 Part 2 - Add support to dispatch toggle events to details element. r=smaug
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
2016-03-12 19:53:51 +08:00
James Graham 3a33080983 Bug 1146321 - Update web-platform-tests to revision 1defdd7213b52589e4b7a259e53f4fff359c301a, a=testonly 2015-03-23 13:21:13 +00:00
James Graham 0e207d40b5 Bug 1097230 - Update web-platform-tests to revision 9840b559b10e05f659932a835c11832db9e01c42, a=testonly 2014-11-20 16:30:01 +00:00
James Graham 5ae42538f6 Bug 945222 - Initial import of web-platform-tests testsuite 1/4: test data 2014-09-04 12:48:31 +01:00