Open Bug 1471176 Opened 8 years ago Updated 3 years ago

[wpt-sync] Sync PR 11668 - Add a test to verify that postMessage forwards user gesture.

Categories

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

enhancement

Tracking

()

REOPENED

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 11668 into mozilla-central (this bug is closed when the sync is complete). PR: https://github.com/web-platform-tests/wpt/pull/11668 Details from upstream follow. Frédéric Wang <fwang@igalia.com> wrote: > Add a test to verify that postMessage forwards user gesture. > > I *think* the spec says all versions of postMessage queue a task and so the triggered by user activation flag should be forwarded to the receiver. > > At least with window's postMessage, the popup is allowed in all browsers. > > I'm not sure if Firefox considers the user activation flag to block popups. It seems to allow them all when using ./wpt run with testdriver's click or blocking them all when running manually. > > On Chromium, the popup is blocked for MessagePort and BroadcastChannel when you run them manually (as expected per https://bugs.chromium.org/p/chromium/issues/detail?id=851493) but not when using ./wpt run with testdriver's click. > > On WebKit, BroadcastChannel is not supported ( https://bugs.webkit.org/show_bug.cgi?id=161472 ) and the popup is blocked for MessagePort ( https://bugs.webkit.org/show_bug.cgi?id=186593 ). I tested manually since I'm not sure about the status of ./wpt run or testdriver. > > cc' @Ms2ger
Component: web-platform-tests → DOM
Product: Testing → Core
Component: DOM → DOM: Core & HTML
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.