[Webkit-unassigned] [Bug 186593] User gesture context is not passed via MessageChannel

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 14 05:16:07 PDT 2018


Frédéric Wang (:fredw) <fred.wang at free.fr> changed:

           What    |Removed                     |Added
                 CC|                            |fred.wang at free.fr

--- Comment #1 from Frédéric Wang (:fredw) <fred.wang at free.fr> ---
(In reply to Dima Voytenko from comment #0)
> To repro:
> 1. Open http://output.jsbin.com/cidetu
> 2. Click on "Channel message" button.
> Observe that the popup is blocked. Also observe that clicking on "Window
> message" opens popup as expected.
> The user gesture context is propagated via a window "message" event, but is
> NOT propagated via a MessageChannel event. Not sure if this is a part of any
> spec, but it seems counter-intuitive since MessageChannel is essentially the
> same API. There might be questions of whether the user gesture context
> should be propagated to Web Workers, etc, but as far as cross-window
> propagation, I believe it should.

Hi Dima. I can confirm the bug on macOS and GTK. A quick debug in WebCore::DOMWindow::allowPopUp shows that UserGestureIndicator::processingUserGesture() returns false for "Channel Message" because UserGestureIndicator::currentToken() is null, so indeed it seems the user gesture context is not propagated somehow.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180614/132876c1/attachment.html>

More information about the webkit-unassigned mailing list