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 499681 ab03a5f493975fe3403bbcdbcab4d1075f1a9a42
parent 499680 e9f2f0ad93b3b16fd9e4bc9ed6c1c4596886615d
child 499682 7007206a3cd46da7c478e5a9992b608b743a1ff9
child 499684 1cf243201204ea1c447de6bbef144eb9a2130cdb
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [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(),