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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 1328763002: Make the low priority iframe flag affect all resources in cross origin iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: All iframes, not just cross origin iframes Created 5 years, 3 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: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index 874d17a757af8aba8d807865f1c81d0126a8f808..b22b251b35024280278d23b0e0c49bf28962cd4e 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -676,7 +676,8 @@ ResourceLoadPriority FrameFetchContext::modifyPriorityForExperiments(ResourceLoa
if (!frame()->settings())
return priority;
- if (!frame()->isMainFrame() && frame()->settings()->lowPriorityIframes() && type == Resource::MainResource)
+ // If enabled, drop the priority of all resources in a subframe.
+ if (frame()->settings()->lowPriorityIframes() && !frame()->isMainFrame())
return ResourceLoadPriorityVeryLow;
// Async/Defer scripts.
« no previous file with comments | « no previous file | Source/core/loader/FrameFetchContextTest.cpp » ('j') | Source/core/loader/FrameFetchContextTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698