Bug 1207775 - Remove now-unnecessary LOAD_CLASSIFY_URI flags. r?ckerschb draft
authorFrancois Marier <francois@mozilla.com>
Fri, 26 Oct 2018 17:03:54 -0700
changeset 491372 91a21b66babc
parent 491371 1143474b901d
child 491373 5be79c5daf2d
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersckerschb
bugs1207775
milestone65.0a1
Bug 1207775 - Remove now-unnecessary LOAD_CLASSIFY_URI flags. r?ckerschb Channels associated with a content window no longer need to explicitly set the LOAD_CLASSIFY_URI flag. They are automatically covered unless they opt out.
image/imgLoader.cpp
--- a/image/imgLoader.cpp
+++ b/image/imgLoader.cpp
@@ -846,17 +846,16 @@ NewImageChannel(nsIChannel** aResult,
   }
 
   // Pass in a nullptr loadgroup because this is the underlying network
   // request. This request may be referenced by several proxy image requests
   // (possibly in different documents).
   // If all of the proxy requests are canceled then this request should be
   // canceled too.
   //
-  aLoadFlags |= nsIChannel::LOAD_CLASSIFY_URI;
 
   nsCOMPtr<nsINode> requestingNode = do_QueryInterface(aRequestingContext);
 
   nsSecurityFlags securityFlags =
     aCORSMode == imgIRequest::CORS_NONE
     ? nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_INHERITS
     : nsILoadInfo::SEC_REQUIRE_CORS_DATA_INHERITS;
   if (aCORSMode == imgIRequest::CORS_ANONYMOUS) {