| Index: Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
|
| index 0ccb29dcbbf864908f57c8e944ab31303e25f62b..c0a58ca4e5ff3a04e0dd047102574875fb217674 100644
|
| --- a/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/Source/core/loader/FrameFetchContext.cpp
|
| @@ -689,7 +689,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.
|
|
|