Skip to content

Commit

Permalink
Bug 1837813 - Remove unused media.* prefs r=geckoview-reviewers,m_kato
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorypappas committed Jun 17, 2023
1 parent 37406d4 commit bb30b3f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
6 changes: 2 additions & 4 deletions dom/media/test/test_can_play_type_mpeg.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@
var haveMp4 =
getPref("media.wmf.enabled") ||
IsMacOS() ||
(IsSupportedAndroid() &&
(IsJellyBeanOrLater() || getPref("media.plugins.enabled"))) ||
IsSupportedAndroid() ||
(IsLinux() && getPref("media.ffmpeg.enabled"));

check_mp4(document.getElementById('v'), haveMp4);
Expand All @@ -155,8 +154,7 @@
getPref("media.wmf.enabled") ||
(IsLinux() && getPref("media.ffmpeg.enabled")) ||
(IsSupportedAndroid() &&
((IsJellyBeanOrLater() && getPref("media.android-media-codec.enabled")) ||
getPref("media.plugins.enabled"))) ||
((IsJellyBeanOrLater() && getPref("media.android-media-codec.enabled")))) ||
IsMacOS();

check_mp3(document.getElementById('v'), haveMp3);
Expand Down
13 changes: 0 additions & 13 deletions mobile/android/app/mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,6 @@ pref("urlclassifier.malwareTable", "goog-harmful-proto,goog-unwanted-proto,mozte
pref("browser.dom.window.dump.enabled", true);
pref("devtools.console.stdout.chrome", true);

pref("media.realtime_decoder.enabled", true);

pref("full-screen-api.enabled", true);

// Transmit UDP busy-work to the LAN when anticipating low latency
Expand All @@ -316,15 +314,6 @@ pref("network.tickle-wifi.enabled", true);
// Mobile manages state by autodetection
pref("network.manage-offline-status", true);

// Media plugins for libstagefright playback on android
pref("media.plugins.enabled", true);

// Stagefright's OMXCodec::CreationFlags. The interesting flag values are:
// 0 = Let Stagefright choose hardware or software decoding (default)
// 8 = Force software decoding
// 16 = Force hardware decoding
pref("media.stagefright.omxcodec.flags", 0);

// Hide common parts of URLs like "www." or "http://"
pref("browser.urlbar.trimURLs", true);

Expand Down Expand Up @@ -401,8 +390,6 @@ pref("dom.push.maxRecentMessageIDsPerSubscription", 0);

pref("dom.audiochannel.mediaControl", true);

pref("media.openUnsupportedTypeWithExternalApp", true);

// Ask for permission when enumerating WebRTC devices.
pref("media.navigator.permission.device", true);

Expand Down
1 change: 0 additions & 1 deletion testing/profiles/reftest/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ user_pref("layout.testing.overlay-scrollbars.always-visible", true);
// way to guarantee it's loaded by the time we take the reftest screenshot.
user_pref("layout.image.eager_broken_image_icon", true);
user_pref("media.gmp-manager.url.override", "http://localhost/dummy-gmp-manager.xml");
user_pref("media.openUnsupportedTypeWithExternalApp", false);
// Reftests load a lot of URLs very quickly. This puts avoidable and
// unnecessary I/O pressure on the Places DB (measured to be in the
// gigabytes).
Expand Down
1 change: 0 additions & 1 deletion testing/profiles/unittest-required/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ user_pref("media.hls.server.url", "http://{server}/tests/dom/media/test/hls");
user_pref("media.libavcodec.allow-obsolete", true);
user_pref("media.memory_cache_max_size", 32);
user_pref("media.memory_caches_combined_limit_kb", 256);
user_pref("media.openUnsupportedTypeWithExternalApp", false);
user_pref("media.preload.auto", 3); // auto = enough
user_pref("media.preload.default", 2); // default = metadata
user_pref("media.preload.default.cellular", 2); // default = metadata
Expand Down

0 comments on commit bb30b3f

Please sign in to comment.