Closed Bug 1526945 Opened 6 years ago Closed 6 years ago

Sync Block websites from automatically playing sound option

Categories

(Firefox :: Sync, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 67
Tracking Status
firefox67 --- fixed

People

(Reporter: a.polivanchuk, Assigned: a.polivanchuk, Mentored)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The option "Block websites from automatically playing sound" should be synchronized using Firefox Account.
Currently, it doesn't sync when changed.

String id: permissions-block-autoplay-media2

I couldn't find the preference id for this option in privacy.xul
https://searchfox.org/mozilla-central/source/browser/components/preferences/in-content/privacy.xul#578

For more exotic prefs like that, you can usually search for the checkbox ID (in this case, autoplayMediaCheckbox). One of the results is https://searchfox.org/mozilla-central/rev/5e3bffe964110b8d1885b4236b8abd5c94d8f609/browser/components/preferences/in-content/privacy.js#356-357, and toggleAutoplayMedia has the pref we're looking for: https://searchfox.org/mozilla-central/rev/5e3bffe964110b8d1885b4236b8abd5c94d8f609/browser/components/preferences/in-content/privacy.js#1113

Want to submit a patch? :-)

Mentor: lina

So here I have to add the following string under the // Preferences to be synced by default in firefox.js

pref("services.sync.prefs.sync.media.autoplay.default", true);

Yes.

Assignee: nobody → artem
Pushed by kcambridge@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/371f6ecae45f Sync Block websites from automatically playing sound option r=lina
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67
QA Whiteboard: [qa-67b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: