Title: [101320] trunk/LayoutTests
Revision
101320
Author
[email protected]
Date
2011-11-28 19:48:12 -0800 (Mon, 28 Nov 2011)

Log Message

js-test-pre: don't try to load stylesheet from a web worker
https://bugs.webkit.org/show_bug.cgi?id=73269

Reviewed by Ojan Vafai.

* fast/js/resources/js-test-pre.js:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (101319 => 101320)


--- trunk/LayoutTests/ChangeLog	2011-11-29 03:39:36 UTC (rev 101319)
+++ trunk/LayoutTests/ChangeLog	2011-11-29 03:48:12 UTC (rev 101320)
@@ -1,3 +1,12 @@
+2011-11-28  David Grogan  <[email protected]>
+
+        js-test-pre: don't try to load stylesheet from a web worker
+        https://bugs.webkit.org/show_bug.cgi?id=73269
+
+        Reviewed by Ojan Vafai.
+
+        * fast/js/resources/js-test-pre.js:
+
 2011-11-28  Jeff Timanus  <[email protected]>
 
         Suppressing a failing webgl conformance test on Mac.

Modified: trunk/LayoutTests/fast/js/resources/js-test-pre.js (101319 => 101320)


--- trunk/LayoutTests/fast/js/resources/js-test-pre.js	2011-11-29 03:39:36 UTC (rev 101319)
+++ trunk/LayoutTests/fast/js/resources/js-test-pre.js	2011-11-29 03:48:12 UTC (rev 101320)
@@ -48,6 +48,11 @@
         span.innerHTML = msg + '<br />';
     };
 
+    function isWorker()
+    {
+        return typeof document === 'undefined';
+    }
+
     var css =
         ".pass {" +
             "font-weight: bold;" +
@@ -69,7 +74,8 @@
         (document.head || document.documentElement).appendChild(styleElement);
     }
     
-    insertStyleSheet();
+    if (!isWorker())
+        insertStyleSheet();
 
     window._onerror_ = function(message)
     {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to