REGRESSION(r103325) - injected-script-for-origin.html crashing in Chromium Linux...
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2011 16:32:25 +0000 (16:32 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 20 Dec 2011 16:32:25 +0000 (16:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=74934

Unreviewed test fix.

* http/tests/inspector/injected-script-for-origin.html:

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

LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/injected-script-for-origin.html

index 223cb68..becdbe9 100644 (file)
@@ -1,3 +1,12 @@
+2011-12-20  Andrey Kosyakov  <caseq@chromium.org>
+
+        REGRESSION(r103325) - injected-script-for-origin.html crashing in Chromium Linux debug
+        https://bugs.webkit.org/show_bug.cgi?id=74934
+
+        Unreviewed test fix.
+
+        * http/tests/inspector/injected-script-for-origin.html:
+
 2011-12-20  Ilya Tikhonovsky  <loislo@chromium.org>
 
         chromium: unreviewed. Clean out passing tests from test_expectations.txt.
index c8cae5b..bf45662 100644 (file)
@@ -17,8 +17,8 @@ function test()
         }
     }
     top.addEventListener("message", onMessage, false);
-    InspectorFrontendHost.setInjectedScriptForOrigin("http://127.0.0.1:8000", "window.foo = '127.0.0.1';");
-    InspectorFrontendHost.setInjectedScriptForOrigin("http://localhost:8000", "window.foo = 'localhost';");
+    InspectorFrontendHost.setInjectedScriptForOrigin("http://127.0.0.1:8000", "(function() { window.foo = '127.0.0.1'; return {}})");
+    InspectorFrontendHost.setInjectedScriptForOrigin("http://localhost:8000", "(function() { window.foo = 'localhost'; return {}})");
     function addSubframe(url)
     {
         var iframe = document.createElement("iframe");