Index: LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js |
diff --git a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js |
index 816352e7520f4e581a4a74f19f76e666d35333dd..cda64fcf47a78ac97ab03b215d00ae54d6c3ac97 100644 |
--- a/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js |
+++ b/LayoutTests/http/tests/workers/resources/worker-importscripts-onerror-redirect-to-crossorigin.js |
@@ -1,2 +1,6 @@ |
+self.onerror = function (message, url, line, column) { |
+ postMessage({ 'message': message, 'url': url, 'line': line, 'column': column }); |
+}; |
+ |
var differentRedirectOrigin = "/resources/redirect.php?url=http://localhost:8000/workers/resources/worker-importScripts-throw.js"; |
importScripts(differentRedirectOrigin) |