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

Unified Diff: lib/src/runner/browser/post_message_channel.dart

Issue 2272223003: Stop JSON-encoding cross-frame messages. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 4 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 | « no previous file | lib/src/runner/browser/static/host.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/post_message_channel.dart
diff --git a/lib/src/runner/browser/post_message_channel.dart b/lib/src/runner/browser/post_message_channel.dart
index 865467536d6b77866d44d24dfe86c5e9adec3b95..f27ff6bce89f45a96d47491cf07a2611a23e16d9 100644
--- a/lib/src/runner/browser/post_message_channel.dart
+++ b/lib/src/runner/browser/post_message_channel.dart
@@ -20,8 +20,7 @@ StreamChannel postMessageChannel() {
if (message.origin != window.location.origin) return;
message.stopPropagation();
- // See host.dart for why we have to explicitly decode here.
- controller.local.sink.add(JSON.decode(message.data));
+ controller.local.sink.add(message.data);
});
controller.local.stream.listen((data) {
« no previous file with comments | « no previous file | lib/src/runner/browser/static/host.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698