Bug 1766214 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

https://searchfox.org/mozilla-central/rev/13d69189a8abfc5064fe44944550b9b6eb4544f5/dom/webidl/Document.webidl#572

`userHasInteracted` was built before spec has a clear definition of how user activation should work, see https://html.spec.whatwg.org/multipage/interaction.html#tracking-user-activation. Now there is `hasBeenUserGestureActivated` in document which basically serve the same purpose as `userHasInteracted`, but it aligns with the spec more and also support Fussion nicer.

One major difference between them is that `userHasInteracted` treats `drop` event as a user interaction, but `hasBeenUserGestureActivated` doesn't. I checked with Blink, it treats `drop` event as user activation, so I think we could just also follow that, and then I would expect that we could replace the usage of  `userHasInteracted` by `hasBeenUserGestureActivated` .
https://searchfox.org/mozilla-central/rev/13d69189a8abfc5064fe44944550b9b6eb4544f5/dom/webidl/Document.webidl#572

`userHasInteracted` was built before spec has a clear definition of how user activation should work, see https://html.spec.whatwg.org/multipage/interaction.html#tracking-user-activation. Now there is `hasBeenUserGestureActivated` in document which basically serve the same purpose as `userHasInteracted`, but it aligns with the spec more and also support Fission nicer.

One major difference between them is that `userHasInteracted` treats `drop` event as a user interaction, but `hasBeenUserGestureActivated` doesn't. I checked with Blink, it treats `drop` event as user activation, so I think we could just also follow that, and then I would expect that we could replace the usage of  `userHasInteracted` by `hasBeenUserGestureActivated` .

Back to Bug 1766214 Comment 0