mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Bug 1365306 - Remove net::ThrottlingService, don't suspend/resume download channels on page load. r=hurley
This commit is contained in:
1 parent
1f0e4e3dd3
commit
77023ca826
23 files changed
+6
-734
No files matched your search
@@ -7609,10 +7609,6 @@ nsresult
|
||||
nsDocShell::EndPageLoad(nsIWebProgress* aProgress,
|
||||
nsIChannel* aChannel, nsresult aStatus)
|
||||
{
|
||||
// We can release any pressure we may have had on the throttling service and
|
||||
// let background channels continue.
|
||||
mThrottler.reset();
|
||||
|
||||
if (!aChannel) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
@@ -10799,16 +10795,6 @@ nsDocShell::InternalLoad(nsIURI* aURI,
|
||||
net::PredictorPredict(aURI, nullptr,
|
||||
nsINetworkPredictor::PREDICT_LOAD, attrs, nullptr);
|
||||
|
||||
// Increase pressure on the throttling service so background channels will be
|
||||
// appropriately de-prioritized. We need to explicitly check for http[s] here
|
||||
// so that we don't throttle while loading, say, about:blank.
|
||||
bool isHTTP, isHTTPS;
|
||||
aURI->SchemeIs("http", &isHTTP);
|
||||
aURI->SchemeIs("https", &isHTTPS);
|
||||
if (isHTTP || isHTTPS) {
|
||||
mThrottler.reset(new mozilla::net::Throttler());
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIRequest> req;
|
||||
rv = DoURILoad(aURI, aOriginalURI, aLoadReplace, aReferrer,
|
||||
!(aFlags & INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER),
|
||||
|
||||
Reference in new issue
Block a user