| Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| index f873f582a862959088feae2731098e1add6b3b7e..309dc95c3a64618b15dedcd315844296628af008 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -119,8 +119,7 @@ bool shouldDisallowFetchForMainFrameScript(const ResourceRequest& request, Fetch
|
| // recover if blocking of a script is leading to a page break and the user
|
| // reloads the page.
|
| const FrameLoadType loadType = document.frame()->loader().loadType();
|
| - const bool isReload = loadType == FrameLoadTypeReload || loadType == FrameLoadTypeReloadBypassingCache || loadType == FrameLoadTypeReloadMainResource;
|
| - if (isReload) {
|
| + if (isReloadLoadType(loadType)) {
|
| // Recording this metric since an increase in number of reloads for pages
|
| // where a script was blocked could be indicative of a page break.
|
| document.loader()->didObserveLoadingBehavior(WebLoadingBehaviorFlag::WebLoadingBehaviorDocumentWriteBlockReload);
|
|
|