Closed
Bug 1405685
Opened 7 years ago
Closed 6 years ago
Geolocation search pref (browser.search.geoSpecificDefaults) should not live in firefox-l10n.js
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
FIXED
Firefox 60
People
(Reporter: flod, Assigned: mkaply)
References
Details
Attachments
(2 files)
I've spent the afternoon cleaning up firefox-l10n.js files in l10n repositories, where browser.search.geoSpecificDefaults was added incorrectly by a localization tool (Pootle). The only locales with that setting are now be, kk, ru, tr, uk, zh-TW firefox-l10n.js doesn't work in build+language pack scenarios, and we need to figure out a better way to centralize this setting if the goal is to create multi-locales builds of Firefox.
Assignee | ||
Comment 1•7 years ago
|
||
What is browser.search.geoSpecificDefaults set to in those locales?
Reporter | ||
Comment 2•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #1) > What is browser.search.geoSpecificDefaults set to in those locales? It's set to true https://dxr.mozilla.org/l10n-central/source/zh-TW/browser/firefox-l10n.js Other locales had true as well, since it was copied from en-US. This is the changeset removing it https://hg.mozilla.org/l10n-central/ar/rev/9886b64e06b7 en-US: http://searchfox.org/mozilla-central/source/browser/locales/en-US/firefox-l10n.js Default value seems false on browser, but true on mobile? http://searchfox.org/mozilla-central/source/browser/app/profile/firefox.js#394 http://searchfox.org/mozilla-central/source/mobile/android/app/mobile.js#279
Assignee | ||
Comment 3•7 years ago
|
||
Everyone sets it to true. We should just default it to true and remove any custom settings. (I don't want to remove the pref, as it is needed for testing). Note that if we move it to true, we need to make sure tests still pass.
Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #3) > Everyone sets it to true. We should just default it to true and remove any > custom settings. I tried to look at the code but got lost. If we set the default to true: * Are we going to send unnecessary requests to a server to get region search settings? * Does the request take the UI locale into account?
Reporter | ||
Comment 5•7 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #4) > * Does the request take the UI locale into account? Answering my own question geoSpecificDefaults.url = https://search.services.mozilla.com/1/%APP%/%VERSION%/%CHANNEL%/%LOCALE%/%REGION%/%DISTRIBUTION%/%DISTRIBUTION_VERSION% The only doubt is about making unnecessary requests, even if they seem cached.
Assignee | ||
Comment 6•7 years ago
|
||
> * Are we going to send unnecessary requests to a server to get region search settings? I thought every locale sets it to true anyway? > Does the request take the UI locale into account? Yes. It returns correct search settings based on the locale of the browser combined with the true region of the user.
Reporter | ||
Comment 7•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #6) > > * Are we going to send unnecessary requests to a server to get region search settings? > > I thought every locale sets it to true anyway? Uhm, no. I interpreted "those locales" in comment 1 as "be, kk, ru, tr, uk, zh-TW". Right now, they're the only locale set to true, since I've fixed all the others, and the majority was already not setting a custom value in firefox-l10n.js and inheriting false.
Assignee | ||
Comment 8•7 years ago
|
||
I'm even more confused now. According to this: https://dxr.mozilla.org/l10n-mozilla-release/search?q=browser.search.geoSpecificDefaults&redirect=false 42 locales set it to true?
Reporter | ||
Comment 9•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #8) > I'm even more confused now. > > According to this: > > https://dxr.mozilla.org/l10n-mozilla-release/search?q=browser.search. > geoSpecificDefaults&redirect=false > > 42 locales set it to true? You're looking at release, I've fixed l10n-central (which covers both Beta and Nightly, and will be used for Release starting from 57). Also, DXR is heavily cached https://dxr.mozilla.org/l10n-central/search?q=browser.search.geoSpecificDefaults&redirect=false e.g. ach shows up here, but it's fixed https://hg.mozilla.org/l10n-central/ach/filelog/default/browser/firefox-l10n.js
Assignee | ||
Comment 10•7 years ago
|
||
So going forward, we are going to just turn on geolocation for everyone and remove the pref from l10n. We should probably do this very early in a nightly cycle in case there are any issues, so maybe right after 59 goes to nightly?
Reporter | ||
Comment 11•7 years ago
|
||
(In reply to Mike Kaply [:mkaply] from comment #10) > We should probably do this very early in a nightly cycle in case there are > any issues, so maybe right after 59 goes to nightly? Sounds reasonable to me, no point in investing resources while the focus is still on shipping 57.
Updated•7 years ago
|
status-firefox57:
--- → wontfix
Assignee | ||
Comment 12•7 years ago
|
||
We're going to do this for 58. I'm setting the pref to true and moving it completely out of l10n.
Assignee: nobody → mozilla
Comment hidden (mozreview-request) |
Updated•7 years ago
|
Attachment #8923840 -
Flags: review?(mconnor) → review+
Assignee | ||
Comment 14•7 years ago
|
||
mozreview-review |
Comment on attachment 8923840 [details] Bug 1405685 - Use geo specific defaults for all locales. https://reviewboard.mozilla.org/r/195000/#review208554 r+ by mconnor in bug.
Attachment #8923840 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8923840 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8923840 -
Attachment is obsolete: false
Comment hidden (mozreview-request) |
Assignee | ||
Comment 16•6 years ago
|
||
firefox-l10n.js can't be removed from the build until it's not used in any locale.
Reporter | ||
Comment 17•6 years ago
|
||
From a quick look, firefox-l10n.js is used for browser.fixup.alternate.suffix be, cs, da, nb-NO, nn-NO, sk browser.search.geoSpecificDefaults be, kk, ru, tr, uk, zh-TW browser.search.order.* ja, ja-JP-mac browser.startup.homepage zh-CN fonts zh-TW https://dxr.mozilla.org/l10n-central/source/zh-TW/browser/firefox-l10n.js * Fonts seems used only on XP for zh-TW * browser.search.order should be obsolete after bug 1352539 * browser.search.geoSpecificDefaults should become obsolete in this bug That leaves us with zh-CN homepage, for which we also have an extra string in browser.properties (confusing…), and the alternate suffix.
Comment 18•6 years ago
|
||
mozreview-review |
Comment on attachment 8946942 [details] Bug 1405685 - Use geospecific defaults for all locales. https://reviewboard.mozilla.org/r/216794/#review222726 Should we just remove the preference and all the calls to geoSpecificDefaultsEnabled in the search service? Or do we somehow still need this preference for linux distributions?
Assignee | ||
Comment 19•6 years ago
|
||
mozreview-review-reply |
Comment on attachment 8946942 [details] Bug 1405685 - Use geospecific defaults for all locales. https://reviewboard.mozilla.org/r/216794/#review222726 I think we should keep the pref for now because we might create a policy around it to disable it in enterprises. So for now, I think we should make it default to true.
Comment 21•6 years ago
|
||
Tracking this for 59. Do we need testing in 60/Nightly before uplift or is this something we need to uplift, then test in 59 beta?
status-firefox59:
--- → affected
status-firefox60:
--- → affected
tracking-firefox59:
--- → +
tracking-firefox60:
--- → +
Comment 22•6 years ago
|
||
mozreview-review |
Comment on attachment 8946942 [details] Bug 1405685 - Use geospecific defaults for all locales. https://reviewboard.mozilla.org/r/216794/#review224274
Attachment #8946942 -
Flags: review?(florian) → review+
Comment 23•6 years ago
|
||
(In reply to Liz Henry (:lizzard) (needinfo? me) from comment #21) > Tracking this for 59. Do we need testing in 60/Nightly before uplift or is > this something we need to uplift, then test in 59 beta? Testing on a en-US nightly won't help. If we want to test on Nightly, we should test a localized build for a locale that wasn't setting this pref before.
Flags: needinfo?(florian)
Comment 24•6 years ago
|
||
Pushed by mozilla@kaply.com: https://hg.mozilla.org/integration/autoland/rev/ecd8c15f4c4d Use geospecific defaults for all locales. r=florian
Comment 25•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ecd8c15f4c4d
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 60
Assignee | ||
Comment 26•6 years ago
|
||
Comment on attachment 8946942 [details] Bug 1405685 - Use geospecific defaults for all locales. Approval Request Comment [Feature/Bug causing the regression]: Cause all builds in all locales to look geo specific search defaults [User impact if declined]: None [Is this code covered by automated tests?]: No [Has the fix been verified in Nightly?]: Yes [Needs manual test from QE? If yes, steps to reproduce]: No [List of other uplifts needed for the feature/fix]: None [Is the change risky?]: Low [Why is the change risky/not risky?]: [String changes made/needed]: Currently we only get geo specific search defaults for certain locale builds. This change allows us to get geo specific defaults for all locale builds. This is a business related change.
Attachment #8946942 -
Flags: approval-mozilla-beta?
Comment on attachment 8946942 [details] Bug 1405685 - Use geospecific defaults for all locales. Business decision, Beta59+
Attachment #8946942 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 28•6 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/f8d212c4a686
You need to log in
before you can comment on or make changes to this bug.
Description
•