| 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.
|
|
|