Closed Bug 1416703 Opened 7 years ago Closed 7 years ago

Remove dead prefs in all.js

Categories

(Core :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: cyu, Assigned: cyu)

References

(Blocks 1 open bug)

Details

Attachments

(8 files, 3 obsolete files)

5.12 KB, patch
bobowen
: review+
Details | Diff | Splinter Review
2.41 KB, patch
jdescottes
: review+
Details | Diff | Splinter Review
3.08 KB, patch
nical
: review+
Details | Diff | Splinter Review
8.90 KB, patch
baku
: review+
Details | Diff | Splinter Review
2.48 KB, patch
dveditz
: review+
Details | Diff | Splinter Review
1.09 KB, patch
Gijs
: review+
Details | Diff | Splinter Review
1.87 KB, patch
mak
: review+
Details | Diff | Splinter Review
5.98 KB, patch
cyu
: review+
Details | Diff | Splinter Review
This bug is opened for tracking the removal of dead prefs in all.js
Attached patch Remove dead accessibility prefs (obsolete) — Splinter Review
Assignee: nobody → cyu
Attachment #8928133 - Flags: review?(gijskruitbosch+bugs)
Attachment #8928134 - Flags: review?(bobowencode)
Attachment #8928134 - Attachment is patch: true
Attached patch Remove dead media prefs (obsolete) — Splinter Review
Note that "media.getusermedia.aec_delay_agnostic" is in effect a dead pref because there is a typo (redundant "aec") in https://searchfox.org/mozilla-central/source/dom/media/MediaManager.cpp#3057. Do we still need to keep this pref?
Attachment #8928136 - Flags: review?(cpearce)
Attachment #8928137 - Flags: review?(jdescottes)
Attachment #8928137 - Attachment description: Remove dead devtools → Remove dead devtools prefs
Attachment #8928138 - Flags: review?(mak77)
Attachment #8928139 - Flags: review?(nical.bugzilla)
Attachment #8928142 - Flags: review?(dveditz)
Comment on attachment 8928133 [details] [diff] [review] Remove dead accessibility prefs Review of attachment 8928133 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/libpref/init/all.js @@ -977,5 @@ > pref("accessibility.accesskeycausesactivation", true); > pref("accessibility.mouse_focuses_formcontrol", false); > > // Type Ahead Find > -pref("accessibility.typeaheadfind", true); This is still used, and I don't really understand why you think it is unused. It's even synced and has UI. If you're trying to dedupe this with browser's firefox.js file, the correct way to do that, IMO, would be to move the default value in browser to this file and rm the override in browser (in which case it would be courteous to notify fennec/mailnews and/or other consumers in case they care about the change in default).
Attachment #8928133 - Flags: review?(gijskruitbosch+bugs) → review-
Comment on attachment 8928137 [details] [diff] [review] Remove dead devtools prefs Review of attachment 8928137 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me, none of them are used anymore.
Attachment #8928137 - Flags: review?(jdescottes) → review+
Comment on attachment 8928138 [details] [diff] [review] Remove dead prefs for profile management Review of attachment 8928138 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/libpref/init/all.js @@ -2815,5 @@ > -// if -1, we never think your profile is defunct > -// and users will never see the remigrate UI. > -pref("profile.seconds_until_defunct", -1); > -// We can show it anytime from menus > -pref("profile.manage_only_at_launch", false); This one looks used by Suite: https://dxr.mozilla.org/comm-central/source/suite/common/profile/profileSelection.js#48 , you should file a separate bug for it, to move it to the Suite relevant pref file
Attachment #8928138 - Flags: review?(mak77) → review-
Comment on attachment 8928142 [details] [diff] [review] Remove dead security prefs Review of attachment 8928142 [details] [diff] [review]: ----------------------------------------------------------------- r=dveditz
Attachment #8928142 - Flags: review?(dveditz) → review+
Comment on attachment 8928136 [details] [diff] [review] Remove dead media prefs Review of attachment 8928136 [details] [diff] [review]: ----------------------------------------------------------------- Some of these prefs are for WebRTC, Jesup should look at them. ::: modules/libpref/init/all.js @@ -414,5 @@ > #ifdef MOZ_APPLEMEDIA > #ifdef MOZ_WIDGET_UIKIT > pref("media.mp3.enabled", true); > #endif > pref("media.apple.mp3.enabled", true); media.apple.mp3.enabled is only used once: https://searchfox.org/mozilla-central/rev/a662f122c37704456457a526af90db4e3c0fd10e/dom/media/test/test_can_play_type_mpeg.html#168 We support MP3 on all versions of MacOS that are officially supported. So if you changed the line in the test that uses media.apple.mp3.enabled to instead just check if we're on MacOS, you could also remove that pref. See IsMacOSSnowLeopardOrLater() for an example of how to do that: https://searchfox.org/mozilla-central/rev/a662f122c37704456457a526af90db4e3c0fd10e/dom/media/test/test_can_play_type_mpeg.html#124
Attachment #8928136 - Flags: review?(rjesup)
Attachment #8928136 - Flags: review?(cpearce)
Attachment #8928136 - Flags: review+
(In reply to :Gijs (slow, PTO recovery mode) from comment #9) > Comment on attachment 8928133 [details] [diff] [review] > Remove dead accessibility prefs > > Review of attachment 8928133 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: modules/libpref/init/all.js > @@ -977,5 @@ > > pref("accessibility.accesskeycausesactivation", true); > > pref("accessibility.mouse_focuses_formcontrol", false); > > > > // Type Ahead Find > > -pref("accessibility.typeaheadfind", true); > > This is still used, and I don't really understand why you think it is > unused. It's even synced and has UI. If you're trying to dedupe this with > browser's firefox.js file, the correct way to do that, IMO, would be to move > the default value in browser to this file and rm the override in browser (in > which case it would be courteous to notify fennec/mailnews and/or other > consumers in case they care about the change in default). Sorry, it's an error. What I meant to remove is "accessibility.typeaheadfind.enabletimeout" and from the search result https://searchfox.org/mozilla-central/search?q=enabletimeout&case=true&regexp=false&path= it's no longer accessed in our code.
(In reply to Cervantes Yu [:cyu] [:cervantes] from comment #14) > Sorry, it's an error. What I meant to remove is > "accessibility.typeaheadfind.enabletimeout" and from the search result > https://searchfox.org/mozilla-central/ > search?q=enabletimeout&case=true&regexp=false&path= it's no longer accessed > in our code. accessibility.typeaheadfind.enabletimeout is still used in comm-central so it's still used. We can move it to suite-relevant pref file.
Attachment #8928133 - Attachment is obsolete: true
Attachment #8928486 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8928486 [details] [diff] [review] Remove dead accessibility prefs Review of attachment 8928486 [details] [diff] [review]: ----------------------------------------------------------------- Thanks!
Attachment #8928486 - Flags: review?(gijskruitbosch+bugs) → review+
See Also: → 1417395
Comment on attachment 8928134 [details] [diff] [review] Remove dead prefs for printing Review of attachment 8928134 [details] [diff] [review]: ----------------------------------------------------------------- ::: modules/libpref/init/all.js @@ -4295,5 @@ > pref("helpers.private_mime_types_file", "~/.mime.types"); > pref("helpers.private_mailcap_file", "~/.mailcap"); > pref("print.printer_list", ""); // list of printers, separated by spaces > pref("print.print_reversed", false); > -pref("print.print_color", true); Looks like this (and the one further down) should be print.print_in_color and as a bonus you fix a 15 year old regression (bug 180964). :-) (Or at least give the correct default pref for people to flip.)
Attachment #8928134 - Flags: review?(bobowencode) → review+
Blocks: 180964
Attachment #8928139 - Flags: review?(nical.bugzilla) → review+
Attachment #8928136 - Flags: review?(rjesup) → review+
Attachment #8928140 - Flags: review?(amarchesini) → review+
Attachment #8928138 - Attachment is obsolete: true
Attachment #8929395 - Flags: review?(mak77)
Attachment #8929395 - Flags: review?(mak77) → review+
Carryover r+ from :cpearce and jesup. Update: - Also remove dead pref "media.mp3.enabled", which was introduced in bug 1214678 for iOS. - Remove pref "media.apple.mp3.enabled" and update test case accordingly.
Attachment #8928136 - Attachment is obsolete: true
Attachment #8930415 - Flags: review+
No longer blocks: 1188411
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: