Closed Bug 1574576 Opened 6 years ago Closed 6 years ago

For zh-CN, updating builds older than Firefox 66 reverts the default search engine from Baidu to Google.

Categories

(Firefox :: Search, defect, P3)

69 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: tracy, Assigned: standard8)

Details

I've been updating our Iris automation for updating the browser then checking for the correct default search engine. I discovered that with builds older than Fx66, browser update causes the default search engine to be set to Google. Prior to the update the search engine is correctly set to Baidu.

This seem similar to bug 1565315. Use the same steps to reproduce, except start with a zh-CN build with browser.search.region = 'CN'

QA Whiteboard: [iris]

To note and clarify comment 0, I've reproduced this when going from 65.0.2 -> 68.0.2 but not from 66 -> 68.0.2.

Assignee: nobody → standard8
Status: NEW → ASSIGNED
Priority: -- → P1

I've looked into this a bit more, and discovered this is actually working as expected. In 65.0.2, the browser.migration.version preference is set to 77. When it hits version 78, the browser.search.region preference is reset - part of bug 1518326.

That reset will happen on startup of 68.0.2, so there's no easy way of doing this via setting the preference.

The only other thing I could suggest is changing the value of browser.search.geoip.url to point at a dummy server to return the region that you want for the test.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Priority: P1 → P3
Resolution: --- → INVALID

(In reply to Mark Banner (:standard8) from comment #2)

The only other thing I could suggest is changing the value of browser.search.geoip.url to point at a dummy server to return the region that you want for the test.

That's worth a try. Can you point me to an example of the information this dummy server should provide?

(In reply to Tracy Walker [:tracy] from comment #3)

(In reply to Mark Banner (:standard8) from comment #2)

The only other thing I could suggest is changing the value of browser.search.geoip.url to point at a dummy server to return the region that you want for the test.

That's worth a try. Can you point me to an example of the information this dummy server should provide?

Nevermind, I found a way to do this directly from the pref with setting browser.search.geoip.url = "data:application/json,{"country_code": "CN"}",

You need to log in before you can comment on or make changes to this bug.