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

Unified Diff: tools/dom/src/dart2js_DOMImplementation.dart

Issue 296153013: Fixing iframe.contentWindow.postMessage passing incorrect data (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « tests/html/postmessage_structured_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dart2js_DOMImplementation.dart
diff --git a/tools/dom/src/dart2js_DOMImplementation.dart b/tools/dom/src/dart2js_DOMImplementation.dart
index a844f232b370c8629d499be5b8bdb9734b282f63..f263def4a86e374081c680e427af725774f1afa4 100644
--- a/tools/dom/src/dart2js_DOMImplementation.dart
+++ b/tools/dom/src/dart2js_DOMImplementation.dart
@@ -32,9 +32,12 @@ class _DOMWindowCrossFrame implements WindowBase {
void postMessage(var message, String targetOrigin, [List messagePorts = null]) {
if (messagePorts == null) {
- JS('void', '#.postMessage(#,#)', _window, message, targetOrigin);
+ JS('void', '#.postMessage(#,#)', _window,
+ convertDartToNative_SerializedScriptValue(message), targetOrigin);
} else {
- JS('void', '#.postMessage(#,#,#)', _window, message, targetOrigin, messagePorts);
+ JS('void', '#.postMessage(#,#,#)', _window,
+ convertDartToNative_SerializedScriptValue(message), targetOrigin,
+ messagePorts);
}
}
« no previous file with comments | « tests/html/postmessage_structured_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698