Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
index 6505cd5d233a561f9174313c696c4fdeb1601eb8..dc31154e08fd6f5ce5f7d0abe082b0a955d0674b 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
@@ -216,7 +216,7 @@ bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource, String* |
*result = toCSSStyleSheetResource(cachedResource)->sheetText(); |
return true; |
case Resource::Script: |
- *result = cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script(); |
+ *result = cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script().toString(); |
return true; |
case Resource::ImportResource: // Fall through. |
case Resource::Raw: { |