Index: LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js |
diff --git a/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js b/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js |
index fd09d020d9de44ca0852e3691a9e38f2881c4d9c..865737bd218abe76167a1cbac09ce52b9b3dc536 100644 |
--- a/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js |
+++ b/LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js |
@@ -1,3 +1,7 @@ |
+try { |
+ importScripts("/js-test-resources/js-test.js"); |
jsbell
2015/01/30 17:58:10
Can we do this instead:
if ('importScripts' in se
Yuki
2015/02/02 07:51:12
Done.
|
+} catch (e) {} |
+ |
self.onmessage = function(e) { |
navigator.connect(e.data.connect) |
.then(function(port) { |
@@ -7,6 +11,6 @@ self.onmessage = function(e) { |
// Not all errors can be serialized as a SerializedScriptValue, so |
// convert to JSON and parse to get just the bits that certainly can. |
e.data.port.postMessage( |
- {success: false, result: JSON.parse(JSON.stringify(error))}); |
+ {success: false, result: JSON.parse(stringifyDOMObject(error))}); |
}); |
}; |