Closed Bug 515232 Opened 15 years ago Closed 12 years ago

"distribution" searchplugins dont work for complex general.useragent.locale

Categories

(Firefox :: Search, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 14

People

(Reporter: asac, Assigned: glandium)

Details

Attachments

(1 file, 3 obsolete files)

currently the localized searchengines feature for "distribution/searchplugins" is broken for builds that use a complex pref for general.useragent.locale - which is what we don in ubuntu

Also its not possible to overload searchplugins in the "common" directory in the locale folder, which could be fixed by changing the order of the searchplugindirs returned in browser/components/dirprovider/nsBrowserDirectoryProvider.cpp ... which I would like to address in the same patch.
Attached patch patch 1 (obsolete) — Splinter Review
Attached patch patch 1 without garbage (obsolete) — Splinter Review
Attachment #399299 - Attachment is obsolete: true
Assignee: nobody → asac
Status: NEW → ASSIGNED
Attachment #399302 - Attachment is obsolete: true
Only the first paragraph of comment 0 still applies. Instead of using Alex's approach of using chrome registry, I'm just using GetComplexValue, fallbacking to GetChar if that fails, which is what all other code paths getting general.user-agent.locale are using.
Attachment #399338 - Attachment is obsolete: true
Assignee: asac → mh+mozilla
Comment on attachment 600753 [details] [diff] [review]
Try getting general.useragent.locale as a complex value first in DirectoryProvider.cpp

It might be nice to make this use mozilla::Preferences while we're changing this.
Comment on attachment 600753 [details] [diff] [review]
Try getting general.useragent.locale as a complex value first in DirectoryProvider.cpp

[It's annoying when hg bzexport silently doesn't put the requested review flag for some reason]
Attachment #600753 - Flags: review?(benjamin)
(In reply to Gavin Sharp (use gavin@gavinsharp.com for email) from comment #5)
> Comment on attachment 600753 [details] [diff] [review]
> Try getting general.useragent.locale as a complex value first in
> DirectoryProvider.cpp
> 
> It might be nice to make this use mozilla::Preferences while we're changing
> this.

Unfortunately, mozilla::Preferences is an internal API, and as such is not available from browser.
Attachment #600753 - Flags: review?(benjamin) → review+
Comment on attachment 600753 [details] [diff] [review]
Try getting general.useragent.locale as a complex value first in DirectoryProvider.cpp

of course - I forgot this was in browsercomps
https://hg.mozilla.org/mozilla-central/rev/5689de2cf0f8
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 14
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: