Skip to content

[next] MessageEvent.source inconsistent between Dartium and dart2js #21747

@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


What steps will reproduce the problem?

  1. Set a MessageEvent listener: window.onMessage.listen((MessageEvent e) { /* Verify source here */ });
  2. Open a window: newWindow = window.open("some_page.html", "");
  3. newWindow sends a message back to its opener: window.opener.postMessage("Message.", "*");
  4. Source verification (newWindow == e.source) returns TRUE on Dart, but FALSE on JavaScript build.

What is the expected output? What do you see instead?
JavaScript build must work as Dart does (expected TRUE on both cases).

What version of the product are you using?
Dart Editor version 1.8.0.dev_04_06 (DEV)
Dart SDK version 1.8.0-dev.4.6

On what operating system?
Linux: Debian Testing (Jessie) - 3.16.0-4-amd64

What browser (if applicable)?
Chrome and Iceweasel (Firefox).

Please provide any additional information below.
No additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-obsoleteClosed as the reported issue is no longer relevantlibrary-htmltype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions