On Tue, Apr 2, 2019 at 10:20 AM Henri Sivonen <hsivo...@mozilla.com> wrote:

> On Tue, Mar 19, 2019 at 3:15 PM Johann Hofmann <jhofm...@mozilla.com>
> wrote:
> >
> > In bug 1524619 <https://bugzilla.mozilla.org/show_bug.cgi?id=1524619> I
> > plan to implement support for requiring a user gesture when calling
> > Notification.requestPermission() [0] and PushManager.subscribe() [1].
>
> What's the current status of getting a cross-browser definition for
> something being invoked in response to a user gesture?
>

That's a great question, I don't actually know, but I'm sure someone on
this list does.

Does scrolling count as a user gesture?
>

As per my testing, no. At least not when consulting
EventStateManager::IsHandlingUserInput(), though Document.userHasInteracted
seems to take wheel events into account:
https://searchfox.org/mozilla-central/rev/201450283cddc9e409cec707acb65ba6cf6037b1/dom/events/EventStateManager.cpp#454

We might want to check that the definition of user gesture is consistent
across our own code, too.


>
> --
> Henri Sivonen
> hsivo...@mozilla.com
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to