Closed
Bug 608958
Opened 14 years ago
Closed 14 years ago
Omnijar doesn't load preference files in reverse alphabetical order
Categories
(Core :: Preferences: Backend, defect)
Core
Preferences: Backend
Tracking
()
RESOLVED
FIXED
mozilla2.0b8
People
(Reporter: rain1, Assigned: neil)
References
Details
Attachments
(1 file)
939 bytes,
patch
|
dwitte
:
review+
benjamin
:
approval2.0+
|
Details | Diff | Splinter Review |
The pref file "spec" at <https://developer.mozilla.org/En/A_Brief_Guide_to_Mozilla_Preferences#Preferences_Loading_and_Resolution> mentions that pref files are loaded in reverse alphabetical order. This doesn't seem to be true with omnijar, as we discovered while trying to get a Thunderbird omnijar build running (prefs in mailnews.js override prefs in all-thunderbird.js).
Per <http://mxr.mozilla.org/comm-central/source/mozilla/modules/libpref/src/nsPrefService.cpp?mark=871-881#856>, there doesn't seem to be anything that explicitly sorts the files in reverse alphabetical order as there is in <http://mxr.mozilla.org/comm-central/source/mozilla/modules/libpref/src/nsPrefService.cpp?mark=653-661#653>.
Assignee | ||
Comment 1•14 years ago
|
||
It looks like the file names are hashed so that omnijar uses a predictable but meaningless order?
Assignee | ||
Comment 2•14 years ago
|
||
Would this work perhaps?
Comment 3•14 years ago
|
||
(In reply to comment #2)
> Created attachment 488454 [details] [diff] [review]
> Possible patch
>
> Would this work perhaps?
Wouldn't that be alphabetical order?
Comment 4•14 years ago
|
||
(In reply to comment #3)
> (In reply to comment #2)
> > Created attachment 488454 [details] [diff] [review] [details]
> > Possible patch
> >
> > Would this work perhaps?
>
> Wouldn't that be alphabetical order?
Oops, ignore that question, I should have read the next line more closely as well...
Comment 5•14 years ago
|
||
I've just tried this on Thunderbird's try server and it definitely fixes the MozMill issues that we were seeing before with omnijar.
Assignee: nobody → neil
Assignee | ||
Updated•14 years ago
|
Attachment #488454 -
Flags: review?(dwitte)
Comment 6•14 years ago
|
||
Comment on attachment 488454 [details] [diff] [review]
Possible patch
r=dwitte. I assume we do want case-sensitive sorting here, since nothing says otherwise.
Attachment #488454 -
Flags: review?(dwitte) → review+
Assignee | ||
Comment 7•14 years ago
|
||
(In reply to comment #6)
> I assume we do want case-sensitive sorting here, since nothing says otherwise.
The existing code does case-sensitive sorting too but our preference files all only use lower case anyway.
Assignee | ||
Comment 8•14 years ago
|
||
Comment on attachment 488454 [details] [diff] [review]
Possible patch
This patch is necessary for comm-central to be able to use omnijar.
Attachment #488454 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #488454 -
Flags: approval2.0? → approval2.0+
Comment 9•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b8
Version: unspecified → Trunk
Comment 10•14 years ago
|
||
I updated <https://developer.mozilla.org/En/A_Brief_Guide_to_Mozilla_Preferences#Preferences_Loading_and_Resolution> to note that the sorting is case-sensitive and to remove the existing note about this bug.
You need to log in
before you can comment on or make changes to this bug.
Description
•