Implement TRR fallback warning page
Categories
(Core :: Networking: DNS, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: valentin, Assigned: acreskey)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [necko-triaged])
Attachments
(5 files, 2 obsolete files)
We want to show the user a warning page before we start falling back to native DNS.
To do this, we can extend the page added in bug 1596845.
- Add new skip reasons to nsITRRSkipReasons.idl for each of the heuristics.
- Add a new method on nsIDNSService - like setHeuristicDetection(Ci.nsITRRSkipReason. [tripped heuristic])
- then after running heuristics we need to call the method with the id of the trippd heuristic, or Ci.nsITRRSkipReason.TRR_OK if none were tripped.
- in nsHostResolver::NameLookup we need to check the value of setHeuristicDetection - and if it's a tripped heuristic, call
rec->RecordReason(TRRSkippedReason::[reason]);
- We need two prefs - the first is whether to show the fallback warning page at all. The second is whether the user has chosen to always continue.
- Depending on the value of the prefs, we might not call NativeLookup , so we should just return NS_ERROR_UNKNOWN_HOST to the caller, leading to the warning page showing up.
- We might need another array of domains that we append to TRRService::mExcludedDomains every time we reset them.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Networking: DNS' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
wip Adds new skip reasons for heuristics tripped and records them
Prevents fallback to native if new fallback warning pref is enabled and not disabled.
Reporter | ||
Comment 3•2 years ago
|
||
Assignee | ||
Comment 4•2 years ago
|
||
We will need these exposed to differentiate failure reasons.
Assignee | ||
Comment 5•2 years ago
|
||
Depends on D165554
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D165556
Assignee | ||
Comment 7•2 years ago
|
||
Depends on D165557
Assignee | ||
Comment 8•2 years ago
|
||
Depends on D165558
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a12595f10b1a
https://hg.mozilla.org/mozilla-central/rev/9659a47871f3
https://hg.mozilla.org/mozilla-central/rev/1a177fd28da2
https://hg.mozilla.org/mozilla-central/rev/425fc5b63cff
https://hg.mozilla.org/mozilla-central/rev/c5061e420b1a
Description
•