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

Unified Diff: dart/tests/html/cross_domain_iframe_script.html

Issue 406143004: Bugfix in html_dart2js: Detect window objects in a way compatible with cross domain iframes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use 'postMessage', change tools/dom/src/dart2js_Conversions.dart Created 6 years, 5 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 | « dart/sdk/lib/html/dart2js/html_dart2js.dart ('k') | dart/tests/html/cross_domain_iframe_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/html/cross_domain_iframe_script.html
diff --git a/dart/tests/html/cross_domain_iframe_script.html b/dart/tests/html/cross_domain_iframe_script.html
new file mode 100644
index 0000000000000000000000000000000000000000..f57be2adfbbd3cb4f17319eee26e9f6b8e1b00c1
--- /dev/null
+++ b/dart/tests/html/cross_domain_iframe_script.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>cross_domain_iframe_script</title>
+ </head>
+
+ <body>
+ <script type="application/javascript">
+ window.parent.postMessage('foobar', '*');
+ </script>
+ </body>
+</html>
« no previous file with comments | « dart/sdk/lib/html/dart2js/html_dart2js.dart ('k') | dart/tests/html/cross_domain_iframe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698