From 50934f88eb273c6d6c352d0d46ec44d66f22861c Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 6 Oct 2015 06:37:07 -0700 Subject: [PATCH] Bug 1210941 P7 Use LOAD_BYPASS_SERVICE_WORKER in ServiceWorkerScriptCache. r=ehsan --- dom/workers/ServiceWorkerScriptCache.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dom/workers/ServiceWorkerScriptCache.cpp b/dom/workers/ServiceWorkerScriptCache.cpp index 1c44aa1ed83..03f91ba5bea 100644 --- a/dom/workers/ServiceWorkerScriptCache.cpp +++ b/dom/workers/ServiceWorkerScriptCache.cpp @@ -117,7 +117,9 @@ public: uri, aPrincipal, nsILoadInfo::SEC_NORMAL, nsIContentPolicy::TYPE_INTERNAL_SCRIPT, - loadGroup); + loadGroup, + nullptr, // aCallbacks + nsIChannel::LOAD_BYPASS_SERVICE_WORKER); if (NS_WARN_IF(NS_FAILED(rv))) { return rv; } @@ -140,12 +142,6 @@ public: httpChannel->SetRedirectionLimit(0); } - // Don't let serviceworker intercept. - nsCOMPtr internalChannel = do_QueryInterface(mChannel); - if (internalChannel) { - internalChannel->ForceNoIntercept(); - } - nsCOMPtr loader; rv = NS_NewStreamLoader(getter_AddRefs(loader), this, this); if (NS_WARN_IF(NS_FAILED(rv))) {