Closed Bug 268607 Opened 20 years ago Closed 15 years ago

greprefs/all.js contains references to mozilla chrome

Categories

(Core :: Preferences: Backend, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 297759

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7.5) Gecko/20041109 Firefox/1.0 (Debian package 1.0-1) Build Identifier: Mozilla/5.0 (X11; U; Linux i686; ja-JP; rv:1.7.5) Gecko/20041109 Firefox/1.0 (Debian package 1.0-1) bingreprefs/all.js contains references to mozilla chrome, such as chrome://navigator-platform/locale/navigator.properties. That makes general.useragent.contentlocale contain a wrong value, since it is not overriden in bin/defaults/pref/firefox.js. Most of the others are overriden, so it's not really a problem in firefox, but still, it's incoherent. An other culprit is general.useragent.locale which is overriden to a static value (in firefox-l10n.js), being the one of the bundled locale in localized distributions. It should just be chrome://global/locale/intl.properties, so that running firefox in an other locale (installing locales as extensions and using the -UIlocale command-line argument) will set the general.useragent.locale accordingly. Please find a patch attached. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Summary: bingreprefs/all.js contains references to mozilla chrome → bin/greprefs/all.js contains references to mozilla chrome
It is not that easy. all.js is shared between gecko applications (seamonkey/firefox/thunderbird), so you can't just replace values in it. What needs to be done is either make Firefox/Seamonkey/others really share the prefs (ie, use a chrome:// URIs common to all apps) or move the prefs from all.js to app-specific prefs files. btw, patches should be against cvs (the files you are editing are pre-processed at build time)
Status: UNCONFIRMED → NEW
Component: General → Preferences: Backend
Ever confirmed: true
Product: Firefox → Core
Hardware: PC → All
Summary: bin/greprefs/all.js contains references to mozilla chrome → greprefs/all.js contains references to mozilla chrome
Version: unspecified → Trunk
dang. sorry for the extra mail
Assignee: firefox → prefs
QA Contact: firefox.general
Comment on attachment 165298 [details] [diff] [review] Patch to change these wrong values to actual values this patch is bogus and will break things. note that the prefs are generally clobbered in firefox.js and thunderbird.js (while that's not ideal, breaking seamonkey isn't acceptable either).
Attachment #165298 - Flags: review-
Mike, how about an updated patch to address the review comments?
Assignee: prefs → mh+mozilla
Won't that be obsoleted by suiterunner ?
QA Contact: preferences-backend
The exact same patch was applied in bug 297759.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: