bug 1452568 - inhibit cache use when doing TRR in PB r?valentin draft
authorDaniel Stenberg <daniel@haxx.se>
Mon, 09 Apr 2018 12:14:28 +0200
changeset 779151 51ce4dbd5e4c9c9df9c9b1ed858f8f2aed499d04
parent 779089 b4bc6b2401738b78fd47127a4c716bb9178e1a09
push id105671
push userbmo:daniel@haxx.se
push dateMon, 09 Apr 2018 10:18:48 +0000
reviewersvalentin
bugs1452568
milestone61.0a1
bug 1452568 - inhibit cache use when doing TRR in PB r?valentin MozReview-Commit-ID: MmdSMBdH4v
netwerk/dns/TRR.cpp
--- a/netwerk/dns/TRR.cpp
+++ b/netwerk/dns/TRR.cpp
@@ -182,17 +182,18 @@ TRR::SendHTTPRequest()
   rv = NS_NewChannel(getter_AddRefs(mChannel),
                      dnsURI,
                      nsContentUtils::GetSystemPrincipal(),
                      nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL,
                      nsIContentPolicy::TYPE_OTHER,
                      nullptr,   // PerformanceStorage
                      nullptr, // aLoadGroup
                      this,
-                     nsIRequest::LOAD_ANONYMOUS, ios);
+                     nsIRequest::LOAD_ANONYMOUS |
+                     (mPB ? nsIRequest::INHIBIT_CACHING: 0), ios);
   if (NS_FAILED(rv)) {
     LOG(("TRR:SendHTTPRequest: NewChannel failed!\n"));
     return rv;
   }
 
   nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(mChannel);
   if (!httpChannel) {
     return NS_ERROR_UNEXPECTED;