Bug 1807268 - Re-enable verifyShowClipboardSuggestionsToggleTest UI test r=jajohnson
[gecko.git] / netwerk / docs / dns / trr-skip-reasons.md
blobdbbb4e3336aa704d3d7d3726c7f39bc987051760
1 # TRRSkippedReasons
3 These values are defined in [TRRSkippedReason.h](https://searchfox.org/mozilla-central/source/netwerk/dns/nsITRRSkipReason.idl) and are recorded on _nsHostRecord_ for each resolution.
4 We normally use them for telemetry or to determine the cause of a TRR failure.
7 ## TRR_UNSET
9 Value: 0
11 This reason is set on _nsHostRecord_ before we attempt to resolve the domain.
12 Normally we should not report this value into telemetry - if we do that means there's a bug in the code.
15 ## TRR_OK
17 Value: 1
19 This reason is set when we got a positive TRR result. That means we used TRR for the DNS resolution, the HTTPS request got a 200 response, the response was properly decoded as a DNS packet and that packet contained relevant answers.
22 ## TRR_NO_GSERVICE
24 Value: 2
26 This reason is only set if there is no TRR service instance when trying to compute the TRR mode for a request. It indicates a bug in the implementation.
29 ## TRR_PARENTAL_CONTROL
31 Value: 3
33 This reason is set when we have detected system level parental controls are enabled. In this case we will not be using TRR for any requests.
36 ## TRR_OFF_EXPLICIT
38 Value: 4
40 This reason is set when DNS over HTTPS has been explicitly disabled by the user (by setting _network.trr.mode_ to _5_). In this case we will not be using TRR for any requests.
43 ## TRR_REQ_MODE_DISABLED
45 Value: 5
47 The request had the _nsIRequest::TRRMode_ set to _TRR\_DISABLED\_MODE_. That is usually the case for request that should not use TRR, such as the TRRServiceChannel, captive portal and connectivity checks, DoHHeuristics checks, requests originating from PAC scripts, etc.
50 ## TRR_MODE_NOT_ENABLED
52 Value: 6
54 This reason is set when the TRRService is not enabled. The only way we would end up reporting this to telemetry would be if the TRRService was enabled when the request was dispatched, but by the time it was processed the TRRService was disabled.
57 ## TRR_FAILED
59 Value: 7
61 The TRR request failed for an unknown reason.
64 ## TRR_MODE_UNHANDLED_DEFAULT
66 Value: 8
68 This reason is no longer used. This value may be recycled to mean something else in the future.
71 ## TRR_MODE_UNHANDLED_DISABLED
73 Value: 9
75 This reason is no longer used. This value may be recycled to mean something else in the future.
78 ## TRR_DISABLED_FLAG
80 Value: 10
82 This reason is used when retrying failed connections, sync DNS resolves on the main thread, or requests coming from webextensions that choose to skip TRR.
85 ## TRR_TIMEOUT
87 Value: 11
89 The TRR request timed out.
91 ## TRR_CHANNEL_DNS_FAIL
93 Value: 12
95 This reason is set when we fail to resolve the name of the DNS over HTTPS server.
98 ## TRR_IS_OFFLINE
100 Value: 13
102 This reason is recorded when the TRR request fails and the browser is offline (no active interfaces).
105 ## TRR_NOT_CONFIRMED
107 Value: 14
109 This reason is recorded when the TRR Service is not yet confirmed to work. Confirmation is only enabled when _Do53_ fallback is enabled.
112 ## TRR_DID_NOT_MAKE_QUERY
114 Value: 15
116 This reason is sent when _TrrLookup_ exited without doing a TRR query. It may be set during shutdown, or may indicate an implementation bug.
119 ## TRR_UNKNOWN_CHANNEL_FAILURE
121 Value: 16
123 The TRR request failed with an unknown channel failure reason.
126 ## TRR_HOST_BLOCKED_TEMPORARY
128 Value: 17
130 The reason is recorded when the host is temporarily blocked. This happens when a previous attempt to resolve it with TRR failed, but fallback to _Do53_ succeeded.
133 ## TRR_SEND_FAILED
135 Value: 18
137 The call to TRR::SendHTTPRequest failed.
140 ## TRR_NET_RESET
142 Value: 19
144 The request failed because the connection to the TRR server was reset.
147 ## TRR_NET_TIMEOUT
149 Value: 20
151 The request failed because the connection to the TRR server timed out.
154 ## TRR_NET_REFUSED
156 Value: 21
158 The request failed because the connection to the TRR server was refused.
161 ## TRR_NET_INTERRUPT
163 Value: 22
165 The request failed because the connection to the TRR server was interrupted.
168 ## TRR_NET_INADEQ_SEQURITY
170 Value: 23
172 The request failed because the connection to the TRR server used an invalid TLS configuration.
175 ## TRR_NO_ANSWERS
177 Value: 24
179 The TRR request succeeded but the encoded DNS packet contained no answers.
182 ## TRR_DECODE_FAILED
184 Value: 25
186 The TRR request succeeded but decoding the DNS packet failed.
189 ## TRR_EXCLUDED
191 Value: 26
193 This reason is set when the domain being resolved is excluded from TRR, either via the _network.trr.excluded-domains_ pref or because it was covered by the DNS Suffix of the user's network.
196 ## TRR_SERVER_RESPONSE_ERR
198 Value: 27
200 The server responded with non-200 code.
203 ## TRR_RCODE_FAIL
205 Value: 28
207 The decoded DNS packet contains an rcode that is different from NOERROR.
210 ## TRR_NO_CONNECTIVITY
212 Value: 29
214 This reason is set when the browser has no connectivity.
217 ## TRR_NXDOMAIN
219 Value: 30
221 This reason is set when the DNS response contains NXDOMAIN rcode (0x03).
224 ## TRR_REQ_CANCELLED
226 Value: 31
228 This reason is set when the request was cancelled prior to completion.
230 ## ODOH_KEY_NOT_USABLE
232 Value: 32
234 This reason is set when we don't have a valid ODoHConfig to use.
236 ## ODOH_UPDATE_KEY_FAILED
238 Value: 33
240 This reason is set when we failed to update the ODoHConfigs.
242 ## ODOH_KEY_NOT_AVAILABLE
244 Value: 34
246 This reason is set when ODoH requests timeout because of no key.
248 ## ODOH_ENCRYPTION_FAILED
250 Value: 35
252 This reason is set when we failed to encrypt DNS packets.
254 ## ODOH_DECRYPTION_FAILED
256 Value: 36
258 This reason is set when we failed to decrypt DNS packets.
260 ## TRR_HEURISTIC_TRIPPED_GOOGLE_SAFESEARCH
262 Value: 37
264 This reason is set when the google safesearch heuristic was tripped.
266 ## TRR_HEURISTIC_TRIPPED_YOUTUBE_SAFESEARCH
268 Value: 38
270 This reason is set when the youtube safesearch heuristic was tripped.
272 ## TRR_HEURISTIC_TRIPPED_ZSCALER_CANARY
274 Value: 39
276 This reason is set when the zscaler canary heuristic was tripped.
278 ## TRR_HEURISTIC_TRIPPED_CANARY
280 Value: 40
282 This reason is set when the global canary heuristic was tripped.
284 ## TRR_HEURISTIC_TRIPPED_MODIFIED_ROOTS
286 Value: 41
288 This reason is set when the modified roots (enterprise_roots cert pref) heuristic was tripped.
290 ## TRR_HEURISTIC_TRIPPED_PARENTAL_CONTROLS
292 Value: 42
294 This reason is set when parental controls are detected.
296 ## TRR_HEURISTIC_TRIPPED_THIRD_PARTY_ROOTS
298 Value: 43
300 This reason is set when the third party roots heuristic was tripped.
302 ## TRR_HEURISTIC_TRIPPED_ENTERPRISE_POLICY
304 Value: 44
306 This reason is set when enterprise policy heuristic was tripped.
308 ## TRR_HEURISTIC_TRIPPED_VPN
310 Value: 45
312 This reason is set when the heuristic was tripped by a vpn being detected.
314 ## TRR_HEURISTIC_TRIPPED_PROXY
316 Value: 46
318 This reason is set when the heuristic was tripped by a proxy being detected.
320 ## TRR_HEURISTIC_TRIPPED_NRPT
322 Value: 47
324 This reason is set when the heuristic was tripped by a NRPT being detected.