Closed Bug 1799997 Opened 2 years ago Closed 1 year ago

[OnboardingVideo] Update autoPlay pref to support tratement branch with autoPlay true

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
109 Branch
Iteration:
109.2 - Nov 28 - Dec 9
Tracking Status
firefox109 --- verified

People

(Reporter: pdahiya, Assigned: aminomancer)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

Bu default Firefoxs Block AutoPlay. To support treatment branch, with option autoPlay as true, we need to set pref Services.prefs.setIntPref("media.autoplay.default", 0); when autoPlay in content.video_container is true

See https://phabricator.services.mozilla.com/D161233#inline-890079

I'm not sure if we need to set the default permission (which would affect video players everywhere), we may be able to just set the permission for this one about:welcome principal. SitePermissions will not work since it's an about page, but it has a non-expanded content principal so I think it should be possible for it to have an autoplay permission. If we can't handle it in the react component, we probably can in AboutWelcomeChild.jsm. I'll do some trial & error in the meantime

Services.perms.addFromPrincipal(
  gBrowser.selectedBrowser.contentPrincipal,
  "autoplay-media",
  Services.perms.ALLOW_ACTION,
  Services.perms.EXPIRE_SESSION
);
Blocks: 1800126
Iteration: --- → 109.1 - Nov 14 - Nov 25
Priority: -- → P1
Assignee: nobody → nsauermann
Assignee: nsauermann → nobody

Add the autoplay permission to about:welcome through the default
permissions file. If we add onboarding videos to other messaging
surfaces (like the multistage spotlight for existing user onboarding),
it won't be necessary to add permissions since autoplay is only blocked
in content. This also incidentally reduces the severity of bug 1799935.
The error still happens, breaking the video controls. But since the
video autoplays, the bug is only noticeable if you try to interact with
the video controls. Otherwise, the video will just play on its own and
advance to the next screen when it's finished.

Assignee: nobody → shughes
Status: NEW → ASSIGNED
Iteration: 109.1 - Nov 14 - Nov 25 → 109.2 - Nov 28 - Dec 9
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch

I‘ve verified this enhancement using the latest Firefox Nightly 109.0a1 (Build ID: 20221204094021) on Windows 10 x64, macOS 11.7.1. On Ubuntu 22.04, I’m blocked from verifying due to Bug 1801038.

  • After following the steps from this Test Plan, I can confirm that the video from the second screen of the “about:welcome” page doesn’t auto-play.
Status: RESOLVED → VERIFIED
Depends on: 1804855
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: