Index: third_party/WebKit/Source/core/testing/Internals.cpp |
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp |
index d1c86963cca7d3e5375da5107164133beaa3df5e..9b30ec480db420f2f882f9ce5765343baac5277b 100644 |
--- a/third_party/WebKit/Source/core/testing/Internals.cpp |
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp |
@@ -250,6 +250,7 @@ Internals::Internals(ScriptState* scriptState) |
: ContextLifecycleObserver(scriptState->getExecutionContext()) |
, m_runtimeFlags(InternalRuntimeFlags::create()) |
{ |
+ contextDocument()->fetcher()->enableIsPreloadedForTest(); |
} |
Document* Internals::contextDocument() const |
@@ -396,7 +397,7 @@ bool Internals::isPreloadedBy(const String& url, Document* document) |
{ |
if (!document) |
return false; |
- return document->fetcher()->isPreloaded(document->completeURL(url)); |
+ return document->fetcher()->isPreloadedForTest(document->completeURL(url)); |
} |
bool Internals::isLoadingFromMemoryCache(const String& url) |