Closed Bug 1520663 Opened 6 years ago Closed 6 years ago

Enable user-gesture activation model on Fennec

Categories

(Firefox for Android Graveyard :: Audio/Video, enhancement)

enhancement
Not set
normal

Tracking

(relnote-firefox 66+, firefox66 fixed)

RESOLVED FIXED
Firefox 66
Tracking Status
relnote-firefox --- 66+
firefox66 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

Details

Attachments

(1 file)

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.

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
Status: NEW → RESOLVED
Closed: 6 years 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?

(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.

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)
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: