Closed
Bug 1416703
Opened 7 years ago
Closed 7 years ago
Remove dead prefs in all.js
Categories
(Core :: General, enhancement)
Core
General
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
Assignee | ||
Comment 1•7 years ago
|
||
Assignee: nobody → cyu
Attachment #8928133 -
Flags: review?(gijskruitbosch+bugs)
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8928134 -
Flags: review?(bobowencode)
Assignee | ||
Updated•7 years ago
|
Attachment #8928134 -
Attachment is patch: true
Assignee | ||
Comment 3•7 years ago
|
||
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)
Assignee | ||
Comment 4•7 years ago
|
||
Attachment #8928137 -
Flags: review?(jdescottes)
Assignee | ||
Updated•7 years ago
|
Attachment #8928137 -
Attachment description: Remove dead devtools → Remove dead devtools prefs
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8928138 -
Flags: review?(mak77)
Assignee | ||
Comment 6•7 years ago
|
||
Attachment #8928139 -
Flags: review?(nical.bugzilla)
Assignee | ||
Comment 7•7 years ago
|
||
Attachment #8928140 -
Flags: review?(amarchesini)
Assignee | ||
Comment 8•7 years ago
|
||
Attachment #8928142 -
Flags: review?(dveditz)
Comment 9•7 years ago
|
||
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 10•7 years ago
|
||
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 11•7 years ago
|
||
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 12•7 years ago
|
||
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 13•7 years ago
|
||
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+
Assignee | ||
Comment 14•7 years ago
|
||
(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®exp=false&path= it's no longer accessed in our code.
Assignee | ||
Comment 15•7 years ago
|
||
(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®exp=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.
Assignee | ||
Comment 16•7 years ago
|
||
Attachment #8928133 -
Attachment is obsolete: true
Attachment #8928486 -
Flags: review?(gijskruitbosch+bugs)
Comment 17•7 years ago
|
||
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+
Comment 18•7 years ago
|
||
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+
Updated•7 years ago
|
Attachment #8928139 -
Flags: review?(nical.bugzilla) → review+
Updated•7 years ago
|
Attachment #8928136 -
Flags: review?(rjesup) → review+
Updated•7 years ago
|
Attachment #8928140 -
Flags: review?(amarchesini) → review+
Assignee | ||
Comment 19•7 years ago
|
||
Attachment #8928138 -
Attachment is obsolete: true
Attachment #8929395 -
Flags: review?(mak77)
Updated•7 years ago
|
Attachment #8929395 -
Flags: review?(mak77) → review+
Assignee | ||
Comment 20•7 years ago
|
||
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+
Assignee | ||
Comment 21•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/804e07186d2c057e5a0f4dc56ee6c4f51c446052
Bug 1416703 - Part 1: Remove dead accessibility prefs in all.js. r=Gijs
https://hg.mozilla.org/integration/mozilla-inbound/rev/a23b36d4dc5563320dbb3b5a3c275832f3cfcad9
Bug 1416703 - Part 2: Remove dead prefs for printing in all.js. r=bobowen
https://hg.mozilla.org/integration/mozilla-inbound/rev/810e5228e5fcc71f570bcc3ff8837c81ffa92c82
Bug 1416703 - Part 3: Remove dead media prefs in all.js. r=cpearce,jesup
https://hg.mozilla.org/integration/mozilla-inbound/rev/cf62d0c0ce5af78eb8a4eb27eaa12c254449912d
Bug 1416703 - Part 4: Remove dead devtools prefs in all.js. r=jdescottes
https://hg.mozilla.org/integration/mozilla-inbound/rev/0821f12ed500027bf4254873a522eac4581f4adb
Bug 1416703 - Part 5: Remove dead prefs for profile management in all.js. r=mak
https://hg.mozilla.org/integration/mozilla-inbound/rev/d9f40d531291a4714c165dd076350a0f04fbdc7a
Bug 1416703 - Part 6: Remove dead gfx prefs in all.js. r=nical
https://hg.mozilla.org/integration/mozilla-inbound/rev/27b171e4cd2d1d51e95df1bfb6fc567500b6284d
Bug 1416703 - Part 7: Remove some dead prefs in all.js. r=baku
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb9c29a3067df17a9fe2d23a541154cccb613018
Bug 1416703 - Part 8: Remove dead security prefs in all.js. r=dveditz
Comment 22•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/804e07186d2c
https://hg.mozilla.org/mozilla-central/rev/a23b36d4dc55
https://hg.mozilla.org/mozilla-central/rev/810e5228e5fc
https://hg.mozilla.org/mozilla-central/rev/cf62d0c0ce5a
https://hg.mozilla.org/mozilla-central/rev/0821f12ed500
https://hg.mozilla.org/mozilla-central/rev/d9f40d531291
https://hg.mozilla.org/mozilla-central/rev/27b171e4cd2d
https://hg.mozilla.org/mozilla-central/rev/eb9c29a3067d
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Updated•7 years ago
|
status-firefox58:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•