Bug 1650797 [wpt PR 24458] - Portals: Support default click-to-activate., a=testonly
commita948049a5ee70a62640e08bd2e89978f26c9eb76
authorJeremy Roman <jbroman@chromium.org>
Thu, 9 Jul 2020 14:17:09 +0000 (9 14:17 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 10 Jul 2020 10:38:23 +0000 (10 10:38 +0000)
treed4b44ebe902ee5a9e31f3165f6d9fd9827e772f7
parentd5ace3b183d3766f064a653ea427af5c63a015ea
Bug 1650797 [wpt PR 24458] - Portals: Support default click-to-activate., a=testonly

Automatic update from web-platform-tests
Portals: Support default click-to-activate.

This adds a default behavior whereby clicking (or equivalent) will cause
the portal to immediately activate, unless the click or DOMActivate
event has preventDefault called by a listener.

This is guarded by a new runtime enabled feature so that this does not
affect the behavior in the current origin trial.

Bug: 1102081
Change-Id: I6a6c2409b0123f95d5068c54a423ac2f29e3e968
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2281308
Reviewed-by: Adithya Srinivasan <adithyas@chromium.org>
Commit-Queue: Jeremy Roman <jbroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785812}

--

wpt-commits: 03d89c92bba52de611854f29373ba2c062ea0729
wpt-pr: 24458
testing/web-platform/tests/portals/portal-activate-default.html [new file with mode: 0644]
testing/web-platform/tests/portals/portals-focus.sub.html
testing/web-platform/tests/portals/resources/portal-activate-broadcastchannel.html [new file with mode: 0644]