Clean up preferences calls needing default values in SeaMonkey
Categories
(SeaMonkey :: Preferences, enhancement)
Tracking
(seamonkey2.58 fixed, seamonkey2.53 fixed, seamonkey2.57esr fixed)
People
(Reporter: frg, Assigned: frg)
References
Details
Attachments
(5 files)
20.19 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
4.60 KB,
patch
|
iannbugzilla
:
review+
iannbugzilla
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
1.79 KB,
patch
|
Details | Diff | Splinter Review | |
17.05 KB,
patch
|
Details | Diff | Splinter Review | |
1.17 KB,
patch
|
Details | Diff | Splinter Review |
Services.prefs.getIntPref, Services.prefs.getBoolPref and Services.prefs.getStringPref can now take a default entry starting with Geck 54 / SeaMonkey 2.51. We can now replace GetIntPref, GetBoolPref and GetStringPref with the standard calls and remove the old functions.
Assignee | ||
Comment 1•6 years ago
|
||
suite part
Assignee | ||
Comment 2•6 years ago
|
||
SeaMonkey Composer part. mail and mailnews do not need similiar patches. Need to test them in 2.53 before I ask for review.
Assignee | ||
Comment 3•6 years ago
|
||
Comment on attachment 8968225 [details] [diff] [review] 1454408-suiteprefs.patch Seems to be ok.
Assignee | ||
Comment 4•6 years ago
|
||
Comment on attachment 8968227 [details] [diff] [review] 1454408-editorprefs.patch Seems to be ok.
Assignee | ||
Comment 5•6 years ago
|
||
Additional note. Services.prefs.getStringPref can only used in 58 / 2.55 and up.
Comment on attachment 8968225 [details] [diff] [review] 1454408-suiteprefs.patch >+++ b/suite/common/utilityOverlay.js >- var loadInBackground = GetBoolPref("browser.tabs.loadInBackground", false); >+ var loadInBackground = >+ Services.prefs.getBoolPref("browser.tabs.loadInBackground"); We've lost the false argument here... >- var loadInBackground = GetBoolPref("browser.tabs.loadInBackground", false); >+ var loadInBackground = >+ Services.prefs.getBoolPref("browser.tabs.loadInBackground"); ...and here. r=me with those fixed.
Comment on attachment 8968227 [details] [diff] [review] 1454408-editorprefs.patch LGTM r=me
Assignee | ||
Comment 8•6 years ago
|
||
> ...and here. > r=me with those fixed. This was deliberate. We define it in suite/browser/browser-prefs.js and the calls are inconsistent. The default is not needed. See https://dxr.mozilla.org/comm-central/search?q=browser.tabs.loadInBackground&redirect=false
Pushed by frgrahl@gmx.net: https://hg.mozilla.org/comm-central/rev/4d0730901995 Replace getPref calls needing a default value with standard Services calls. Suite part. r=IanN DONTBUILD https://hg.mozilla.org/comm-central/rev/bd8822971340 Replace getPref calls needing a default value with standard Services calls. SeaMonkey Composer part. r=IanN DONTBUILD
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Comment on attachment 8968225 [details] [diff] [review] 1454408-suiteprefs.patch [Approval Request Comment] Regression caused by (bug #): -- User impact if declined: The fishes told me that they dislike the current code. Testing completed (on m-c, etc.): c-b c-r (without strings) in 2.53 Risk to taking this patch (and alternatives if risky): just a cleanup String changes made by this patch: --
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 11•6 years ago
|
||
2.53 version if ever needed
Assignee | ||
Comment 12•6 years ago
|
||
2.53 version if ever needed
Comment 13•6 years ago
|
||
Who do you expect to approve the beta, me or Ian? One patch is suite/ only, the other one is editor/, so I could approve that one, but since this is a SM bug, I can't approve anything :-(
Assignee | ||
Comment 14•6 years ago
|
||
Thanks for asking. Composer only and not really urgent (just to make backports easier) so I think IanN should do it. SeaMonkey 2.57 based on 60 goes nowhere in the next few months :(
Comment 15•6 years ago
|
||
Comment on attachment 8968225 [details] [diff] [review] 1454408-suiteprefs.patch a=me
Comment 16•6 years ago
|
||
Comment on attachment 8968227 [details] [diff] [review] 1454408-editorprefs.patch a=me
Assignee | ||
Comment 17•6 years ago
|
||
https://hg.mozilla.org/releases/comm-beta/rev/a59b0b5ac649 https://hg.mozilla.org/releases/comm-beta/rev/78712c7817d3
Assignee | ||
Comment 18•6 years ago
|
||
doh ...
Comment 19•6 years ago
|
||
Pushed by frgrahl@gmx.net: https://hg.mozilla.org/comm-central/rev/22f53205439f Followup typo fix. r=me
Assignee | ||
Comment 20•6 years ago
|
||
https://hg.mozilla.org/releases/comm-esr60/rev/db082b43f03470f006fd002752d4f66f519a8dfa
Assignee | ||
Comment 22•4 years ago
|
||
Target 2.53.1
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/1fc0cc36a78bc4a30146072b9ae7a7138cc24197
Replace getPref calls needing a default value with standard Services calls. Suite part.
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/c7ef12754d97bd9f6fa57d20a9dd733add33724b
Replace getPref calls needing a default value with standard Services calls. SeaMonkey Composer part.
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/fc7b4bd2cea8c3e4ce38d387057e0729b7dfeccf
Followup typo fix. r=me a=me
Target 2.53.3
https://gitlab.com/seamonkey-project/seamonkey-2.53-comm/-/commit/ca7901a632e73207df2fd4416cbdbf1f8a49e317
Replace getPref calls needing a default value with standard Services calls. Follow-up for 2.53.3. r=IanN a=IanN
Description
•