Fix for https://bugs.webkit.org/show_bug.cgi?id=38471
[WebKit-https.git] / WebKit2 / UIProcess / WebPageProxy.cpp
index b84d00c..07ac8a4 100644 (file)
@@ -782,7 +782,7 @@ void WebPageProxy::didRunJavaScriptInMainFrame(const String& resultString, uint6
         return;
     }
 
-    callback->performCallbackWithReturnValue(resultString);
+    callback->performCallbackWithReturnValue(resultString.impl());
 }
 
 void WebPageProxy::didGetRenderTreeExternalRepresentation(const String& resultString, uint64_t callbackID)
@@ -793,7 +793,7 @@ void WebPageProxy::didGetRenderTreeExternalRepresentation(const String& resultSt
         return;
     }
 
-    callback->performCallbackWithReturnValue(resultString);
+    callback->performCallbackWithReturnValue(resultString.impl());
 }
 
 void WebPageProxy::processDidBecomeUnresponsive()