Enable user-gesture activation model on Fennec

RESOLVED FIXED in Firefox 66

Status

()

enhancement
RESOLVED FIXED
3 months ago
2 months ago

People

(Reporter: alwu, Assigned: alwu)

Tracking

(Blocks 1 bug)

unspecified
Firefox 66
Points:
---

Firefox Tracking Flags

(relnote-firefox 66+, firefox66 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

3 months ago

We've decided to ship this new blocking autoplay model on Fennec as well to make it consistent with what Desktop has, so we need to flip the prefs.

Comment 2

3 months ago
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1c1ef238dc17
enable blocking autoplay with user-gesture-activation model on Fennec. r=cpearce

Comment 3

3 months ago
bugherder
Status: NEW → RESOLVED
Last Resolved: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 66

Alastor, can you suggest a release note? Thanks!

And, what is "user gesture activation model"? Is there any documentation explaining how to get this to work?

(Assignee)

Comment 6

3 months ago

(In reply to Liz Henry (:lizzard) (use needinfo) from comment #5)

And, what is "user gesture activation model"? Is there any documentation explaining how to get this to work?

It's a similar autoplay policy model as what Chrome is using right now. We will allow a site to autoplay after user interacts with it by some specific gestures, eg. mouse click, keyboard pressing, touch.

(Assignee)

Comment 7

3 months ago

We don't have any documentation about this model now, but we will have a hack post soon which might cover the details about how the model works.

Flags: needinfo?(cpearce)

(In reply to Liz Henry (:lizzard) (use needinfo) from comment #5)

And, what is "user gesture activation model"? Is there any documentation explaining how to get this to work?

Link to the hacks blog post:

https://hacks.mozilla.org/2019/02/firefox-66-to-block-automatically-playing-audible-video-and-audio/

Basically, once a tab has had a click, printable key press, or a touch end event for a touch that was a tap and not a pan/zoom gesture, the tab is allowed to play media. Plays that occur before user interaction as considered "not user gesture activated", and playback in such tabs is blocked. Navigation (of the top level document) clears the gesture activation status, so we'll start blocking again.

Flags: needinfo?(cpearce)
You need to log in before you can comment on or make changes to this bug.