Bug 1262339 - P1. Appcache manifest doesn't use URL classifier. r?francois draft
authorDimi Lee <dlee@mozilla.com>
Wed, 06 Apr 2016 16:58:28 +0800
changeset 348000 7a4d03ae882d793fbdf6f9f971002d08e6e7f908
parent 347283 9bd90088875399347b05d87c67d3709e31539dcd
child 348001 3682f747a2645346b0291b27abf476486b9f612d
push id14724
push userdlee@mozilla.com
push dateWed, 06 Apr 2016 09:01:41 +0000
reviewersfrancois
bugs1262339
milestone48.0a1
Bug 1262339 - P1. Appcache manifest doesn't use URL classifier. r?francois MozReview-Commit-ID: 7frGSgZbdhW
uriloader/prefetch/nsOfflineCacheUpdate.cpp
--- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp
+++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp
@@ -180,17 +180,17 @@ nsManifestCheck::Begin()
     NS_ENSURE_SUCCESS(rv, rv);
     rv = NS_NewChannel(getter_AddRefs(mChannel),
                        mURI,
                        mLoadingPrincipal,
                        nsILoadInfo::SEC_REQUIRE_SAME_ORIGIN_DATA_IS_BLOCKED,
                        nsIContentPolicy::TYPE_OTHER,
                        nullptr,   // loadGroup
                        nullptr,   // aCallbacks
-                       nsIRequest::LOAD_BYPASS_CACHE);
+                       nsIRequest::LOAD_BYPASS_CACHE | nsIChannel::LOAD_CLASSIFY_URI);
 
     NS_ENSURE_SUCCESS(rv, rv);
 
     // configure HTTP specific stuff
     nsCOMPtr<nsIHttpChannel> httpChannel =
         do_QueryInterface(mChannel);
     if (httpChannel) {
         httpChannel->SetReferrer(mReferrerURI);