Bug 1501354 - Fetch() should not block the loadgroup from completing, r=bz
authorAndrea Marchesini <amarchesini@mozilla.com>
Sat, 27 Oct 2018 08:55:20 +0200
changeset 443199 ab03a5f493975fe3403bbcdbcab4d1075f1a9a42
parent 443198 e9f2f0ad93b3b16fd9e4bc9ed6c1c4596886615d
child 443200 1cf243201204ea1c447de6bbef144eb9a2130cdb
child 443249 7007206a3cd46da7c478e5a9992b608b743a1ff9
push id109321
push useramarchesini@mozilla.com
push dateSat, 27 Oct 2018 06:56:04 +0000
treeherdermozilla-inbound@ab03a5f49397 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1501354
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1501354 - Fetch() should not block the loadgroup from completing, r=bz
dom/fetch/FetchDriver.cpp
--- a/dom/fetch/FetchDriver.cpp
+++ b/dom/fetch/FetchDriver.cpp
@@ -534,17 +534,17 @@ FetchDriver::HttpFetch(const nsACString&
     return NS_ERROR_UNEXPECTED;
   }
 
   // From here on we create a channel and set its properties with the
   // information from the InternalRequest. This is an implementation detail.
   MOZ_ASSERT(mLoadGroup);
   nsCOMPtr<nsIChannel> chan;
 
-  nsLoadFlags loadFlags = nsIRequest::LOAD_NORMAL |
+  nsLoadFlags loadFlags = nsIRequest::LOAD_BACKGROUND |
     bypassFlag | nsIChannel::LOAD_CLASSIFY_URI;
   if (mDocument) {
     MOZ_ASSERT(mDocument->NodePrincipal() == mPrincipal);
     rv = NS_NewChannel(getter_AddRefs(chan),
                        uri,
                        mDocument,
                        secFlags,
                        mRequest->ContentPolicyType(),