Don't convert pasted content to use blob URL in WebKit1
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebKitCocoa / paste-rtfd.html
index 2bdb24f061522d952a52c5c5940959c2b8a8a81f..1e53e8c5f4dc10b6e465a07c40498c30ae53e31e 100644 (file)
@@ -24,7 +24,10 @@ editor.addEventListener('paste', (event) => {
 
 function notifyLoaded()
 {
-    webkit.messageHandlers.testHandler.postMessage('loaded');
+    if (window.webkit)
+        webkit.messageHandlers.testHandler.postMessage('loaded');
+    else
+        alert('loaded');
 }
 
 </script>