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 6c459fc45b15bd19d7e4e2580eccd31d79eda997..9abe2d5d24c80de10a18532f084c8d65169d2510 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp |
@@ -232,7 +232,7 @@ bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource, String* |
maybeEncodeTextContent(toCSSStyleSheetResource(cachedResource)->sheetText(), cachedResource->resourceBuffer(), result, base64Encoded); |
return true; |
case Resource::Script: |
- maybeEncodeTextContent(cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script().toString(), cachedResource->resourceBuffer(), result, base64Encoded); |
+ maybeEncodeTextContent(cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script(), cachedResource->resourceBuffer(), result, base64Encoded); |
return true; |
default: |
String textEncodingName = cachedResource->response().textEncodingName(); |