Index: third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp |
diff --git a/third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp b/third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp |
index d3be9db3a13ad3c429296b48aa9dbc0162ae9c9d..9e77ec4a7eee1f5e8819c44e281060b1fcb7ce4b 100644 |
--- a/third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp |
+++ b/third_party/WebKit/Source/core/loader/resource/ScriptResource.cpp |
@@ -83,8 +83,11 @@ void ScriptResource::onMemoryDump(WebMemoryDumpLevelOfDetail levelOfDetail, |
dump->guid(), String(WTF::Partitions::kAllocatedObjectPoolName)); |
} |
-const String& ScriptResource::script() { |
- DCHECK(isLoaded()); |
+NOINLINE const String& ScriptResource::script() { |
+ // For investigating https://crbug.com/692856. |
+ CHECK(isLoaded() || (isLoading() && hasRevalidated())); |
+ CHECK(isLoaded() || (isLoading() && isCacheValidator())); |
+ CHECK(isLoaded()); |
if (m_script.isNull() && data()) { |
String script = decodedText(); |