Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 2260303002: Sending an async GET request for doc.written blocked scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra new lines removed Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index c4ab711b0903d38ea0d8121df4aa7cffac881516..fa8336c6135d28f61147a772ff1fe75db787b89c 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -163,6 +163,8 @@ ResourceLoadPriority ResourceFetcher::computeLoadPriority(Resource::Type type, c
priority = type == Resource::Raw ? ResourceLoadPriorityLow : ResourceLoadPriorityVeryLow;
}
+ priority = request.resourceRequest().computePriorityForInterventions(priority);
+
// A manually set priority acts as a floor. This is used to ensure that synchronous requests
// are always given the highest possible priority, as well as to ensure that there isn't priority
// churn if images move in and out of the viewport, or is displayed more than once, both in and out

Powered by Google App Engine
This is Rietveld 408576698