Closed Bug 1888513 Opened 1 year ago Closed 11 months ago

DoH region switch takes 2 weeks of roaming to trigger

Categories

(Core :: Networking: DNS, defect, P2)

defect

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: tcampbell, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged] [necko-priority-queue])

Attachments

(4 files)

In Bug 1859608, we tried to have DoH switch regions in response to the REGION_TOPIC observer. Unfortunately, the REGION_TOPIC is intended for long-term switching rather than travel/roaming. The default time interval the observer waits is 2 weeks.

As a result, when roaming (eg from Canada to US) the DoH region sticks as home (CIRA is default) which then has timeout or simply traffic throttling behaviour. This ends up with very frequent DoH issues when roaming. In "Increased Protection" or above, there is a lot of network problems experienced.

https://searchfox.org/mozilla-central/rev/28cc363411d2029aed04c969c8f98785cae110db/toolkit/modules/Region.sys.mjs#96-99

Thanks for reporting this, Ted. We were wondering why telemetry didn't immediately change after bug 1859608.
Do you happen to know a better way to immediately detect region changes?
Thanks!

Flags: needinfo?(tcampbell)

From our discussion last week, we should force a region check on the daily-idle event or when a timezone change is detected.

Whiteboard: [necko-triaged] [necko-priority-queue]
Assignee: nobody → valentin.gosu
Severity: -- → S3
Priority: -- → P2

This is not a constant, so it should defer to the pref as a source of truth.

The region change event is emitted after 2 weeks of being in a region.
Using the idle-daily event and checking if the current region has changed
should allow users to move to the correct DoH provider sooner.

A timezone change indicates that the user has just changed location.
This is the most relevant signal that we should change DoH region,
so we immediately do a region fetch and check if it matches the current
DoH region.

Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/04bd60cbb83f Refactor DoHConfig.sys.mjs to make kRegionPrefBranch into a function r=necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/d9d9a6bb63d6 Default DoHConfig to current region instead of home region r=necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/b2bc9b3dff39 use idle-daily event instead of region change event r=necko-reviewers,jesup https://hg.mozilla.org/integration/autoland/rev/c6e3a646b7d4 Perform a region check when the timezone changes r=necko-reviewers,jesup

Clearing old pending NI. The bug was resolved.

Flags: needinfo?(tcampbell)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: