DescriptionBugfix in html_dart2js: Detect window objects in a way compatible with cross domain iframes
The "setTimeout" member in window object can only be accessed if the window
object is from the same origin. Cross origin windows will throw a security error
exception.
This is fixed by checking for "postMessage" in the window object (which
can be accessed even in cross-origin windows).
BUG=http://dartbug.com/20166
R=blois@google.com
Committed: https://code.google.com/p/dart/source/detail?r=38517
Patch Set 1 #
Total comments: 6
Patch Set 2 : Use 'postMessage', change tools/dom/src/dart2js_Conversions.dart #
Messages
Total messages: 6 (0 generated)
|