Open Bug 1747284 Opened 3 years ago Updated 3 years ago

Use DEFAULT_REGION instead of browser.search.region pref in Form Autofill code

Categories

(Toolkit :: Form Autofill, task, P2)

task

Tracking

()

People

(Reporter: serg, Unassigned)

References

(Blocks 1 open bug)

Details

We look at browser.search.region too much, at the same time we have DEFAULT_REGION. DEFAULT_REGION is used elsewhere in the code and it is based on Region.home. Region module deals with detecting region from browser.search.region pref or WiFi network or some other magic that is not Form Autofill concern.

We should let Region.jsm deal with region detection.
We should rename DEFAULT_REGION to region or current_region.
We should add a test when browser.search.region is not set.

Blocks: 1737329
Severity: -- → N/A
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.