Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after page load postMessage does not work #19610

Open
DartBot opened this issue Jun 23, 2014 · 2 comments
Open

after page load postMessage does not work #19610

DartBot opened this issue Jun 23, 2014 · 2 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries

Comments

@DartBot
Copy link

DartBot commented Jun 23, 2014

This issue was originally filed by dvar...@skawa.hu


What steps will reproduce the problem?

  1. assign: WindowBase win = (iframe as WindowsBase).contentWindow
  2. load: iframe.src = "http://example.com";
  3. talk: win.postMessage("Hey!", "*");

What is the expected output? What do you see instead?
The postMessage message arrives to the embedded frame (iframe).
Instead of that, the iframe's message event handler never gets fired.

What version of the product are you using? On what operating system?
1.4.2

Please provide any additional information below.

Here is a complete test case that details what the problem is with the actual output compared to the same dart code compiled to JS.
https://github.com/daniel-v/dart-iframe-test

@sgjesse
Copy link
Contributor

sgjesse commented Jun 25, 2014

Added Area-Library, Library-Html, Triaged labels.

@alan-knight
Copy link
Contributor

May be related to 20146


Removed Priority-Unassigned label.
Added Priority-Medium, Accepted labels.

@DartBot DartBot added Type-Defect area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. library-html labels Mar 3, 2015
@kevmoo kevmoo added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) and removed accepted labels Feb 29, 2016
@vsmenon vsmenon added the area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. label Jul 20, 2019
@sigmundch sigmundch added the web-libraries Issues impacting dart:html, etc., libraries label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-web Use area-web for Dart web related issues, including the DDC and dart2js compilers and JS interop. library-html P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

6 participants