Skip to content

Commit

Permalink
Bug 1549405 - Use LOAD_BYPASS_URL_ClASSIFIER flag for TRR request. r=…
Browse files Browse the repository at this point in the history
…valentin

We should add LOAD_BYPASS_URL_ClASSIFIER to TRR request because if
"network.trr.mode" is set to 3, blocked TRR request means DNS resolution
fail, we don't fall back to regular DNS in this scenario.

Differential Revision: https://phabricator.services.mozilla.com/D30085

--HG--
extra : moz-landing-system : lando
  • Loading branch information
DimiDL committed May 6, 2019
1 parent 1b7f443 commit 00f63d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netwerk/dns/TRR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ nsresult TRR::SendHTTPRequest() {
nullptr, // PerformanceStorage
nullptr, // aLoadGroup
this,
nsIRequest::LOAD_ANONYMOUS | (mPB ? nsIRequest::INHIBIT_CACHING : 0),
nsIRequest::LOAD_ANONYMOUS | (mPB ? nsIRequest::INHIBIT_CACHING : 0) |
nsIChannel::LOAD_BYPASS_URL_CLASSIFIER,
ios);
if (NS_FAILED(rv)) {
LOG(("TRR:SendHTTPRequest: NewChannel failed!\n"));
Expand Down

0 comments on commit 00f63d8

Please sign in to comment.