Closed Bug 109488 Opened 23 years ago Closed 23 years ago

Collapse the all-*.rdf and user-*.rdf files into one file

Categories

(SeaMonkey :: General, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla0.9.7

People

(Reporter: hyatt, Assigned: hyatt)

References

Details

(Keywords: perf)

Attachments

(3 files, 2 obsolete files)

This bug covers taking the chrome registry RDF files and simplifying the code by
merging all the RDF files together.
Targeting for 0.9.7.  Adding perf keyword.
Status: NEW → ASSIGNED
Keywords: perf
Target Milestone: --- → mozilla0.9.7
OS: Windows 2000 → All
Blocks: 103912
Attached patch Patch to collapse the files (obsolete) — Splinter Review
This patch collapses all of the all-* and user-*.rdf files into two files, one 
in the profile and one in the install dir.  In a typical usage scenario, the 
user's skin/locale selections (once they start switching skins etc.) are kept 
in the profile file, and everything else is basically in the chrome file.
Attachment #58560 - Attachment is obsolete: true
Actually I changed my mind about removing this feature.  If I do what I was 
talking about with dp (storing info in chrome.rdf about whether or not your 
package has stylesheets or overlays), then I can stop the file misses without 
sacrificing the feature.

would it be a better idea to hold mBatchInstallFlushes in some automatic helper
class, in case you bail out halfway due to some freaky failure?
I doubt it matters, since any freaky failure in the middle of chrome
registration will probably be fatal anyway. :)
Comment on attachment 58580 [details] [diff] [review]
Patch to also remove support for stylesheets.rdf, since it isn't used by anyone.

r=dp
Attachment #58580 - Attachment is obsolete: true
Comment on attachment 58591 [details] [diff] [review]
Revised patch.  dp reviewed this.

rubbery sr=brendan@mozilla.org, the chrome registry code still seeks kinda fast
and loose, but more power to it for not being bloated with error handling junk!

/be
Attachment #58591 - Flags: superreview+
Fixing this bug broken my idea for default settings (settings for skin and locale) in localized builds. By editing user-locales.rdf and user-skins.rdf files  and copying them to \Mozilla.org\Mozilla\chrome\ dir I could set default skin / locale.
In this way any new profile was with Modern skin and Polish language. Now this feature is broken and new profile has Classic skin and English language by default. I can't also edit chrome.rdf  because this is Mozilla generate file. So I'm asking for re-enabling reading user-locales.rdf and user-skins.rdf only in \Mozilla.org\Mozilla\chrome or creating for example user-chrome.rdf file with user settings. I'm attaching edited user-locales.rdf and user-skins.rdf files.
You can define a chrome.rdf file in your profile that contains your locale/skin
settings.

Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
First:
This wont setup localized and skined Profile Manager (will be always in English and with Classic skin)

Second:
When I making localized builds (*.exe, *.tar.gz) I want that my locale would be default, for example newbie user is installing mozilla, then Profile Manager is started with PL locale and Modern skin, newly created profile is also in PL locale and Modern skin (it was working before). With this changes to this bug newbie is installing localized version, but first thought is "This is localized version but why Profile Manger is in English" and "Why my new profile is in English" :((((
You can edit chrome.rdf in either the install or profile to get the settings you
need.  No features have been lost here.  All I did was collapse all-*.rdf and
user-*.rdf into a single file.  You can still put the same information into the
rdf file that was in all-* or user-*.
Did I said that this files (user*) were copied (to \Mozilla.org\Mozilla\chrome\) during localized build installation (this must be automated process, newbie user shouldn't edit chrome as You suggested)? But I've already tested it and I put info about locale and skin into chrome.rdf (and nothing more) and if this file will be copied to \Mozilla.org\Mozilla\chrome\ during installation all post installation changes into registry will be added to this file (Thats ok - everything seems fine). But really don't know what will happen if user who already have Mozilla will install only langpack (with preedited chrome.rdf) - will registry be overvritten, added, or nothing will change or Mozilla will crash?
Eh David, the MultiZilla installation doesn't work after this change. What do I
need to change in order to get it going again? 

Thanks,
-Neil.
Marek, what you need is bug 54904 (ability to select default skin in an
install). Overwriting the user-* files was never the right way to do it, but now
that the hack workaround has been taken away the importance of bug 54904 is much
higher. Please lobby/vote in that bug.
Thnx for info about 54904 bug.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: