2009-04-08 Dimitri Glazkov <dglazkov@chromium.org>
authordglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2009 17:52:24 +0000 (17:52 +0000)
committerdglazkov@chromium.org <dglazkov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 8 Apr 2009 17:52:24 +0000 (17:52 +0000)
        Reviewed by Timothy Hatcher.

        https://bugs.webkit.org/show_bug.cgi?id=25093
        REGRESSION: some scripts are showing in the Inspector with only "true"
        as the source.

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::didParseSource): Fixed conversion issue.
        (WebCore::InspectorController::failedToParseSource): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@42325 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/inspector/InspectorController.cpp

index 4e35825..e65df13 100644 (file)
@@ -1,3 +1,15 @@
+2009-04-08  Dimitri Glazkov  <dglazkov@chromium.org>
+
+        Reviewed by Timothy Hatcher.
+
+        https://bugs.webkit.org/show_bug.cgi?id=25093
+        REGRESSION: some scripts are showing in the Inspector with only "true"
+        as the source.
+
+        * inspector/InspectorController.cpp:
+        (WebCore::InspectorController::didParseSource): Fixed conversion issue.
+        (WebCore::InspectorController::failedToParseSource): Ditto.
+
 2009-04-08  Adam Barth  <abarth@webkit.org>
 
         Reviewed by Alexey Proskuryakov.
index 4f6b721..155f2d8 100644 (file)
@@ -1422,7 +1422,7 @@ void InspectorController::didParseSource(ExecState*, const SourceCode& source)
     ScriptFunctionCall function(m_scriptState, m_webInspector, "parsedScriptSource");
     function.appendArgument(static_cast<long long>(source.provider()->asID()));
     function.appendArgument(source.provider()->url());
-    function.appendArgument(source.data());
+    function.appendArgument(JSC::UString(source.data(), source.length()));
     function.appendArgument(source.firstLine());
     function.call();
 }
@@ -1431,7 +1431,7 @@ void InspectorController::failedToParseSource(ExecState*, const SourceCode& sour
 {
     ScriptFunctionCall function(m_scriptState, m_webInspector, "failedToParseScriptSource");
     function.appendArgument(source.provider()->url());
-    function.appendArgument(source.data());
+    function.appendArgument(JSC::UString(source.data(), source.length()));
     function.appendArgument(source.firstLine());
     function.appendArgument(errorLine);
     function.appendArgument(errorMessage);