Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: LayoutTests/http/tests/navigatorconnect/resources/connect-helper.js

Issue 885343002: bindings: Fixes connect-helper to use stringifyDOMObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/navigatorconnect/resources/connect-helper.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))});
});
};
« no previous file with comments | « LayoutTests/http/tests/navigatorconnect/resources/connect-helper.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698