Skip to content

window.open returns undefined after compilation with dart2js #19715

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

Closed
DartBot opened this issue Jun 28, 2014 · 3 comments
Closed

window.open returns undefined after compilation with dart2js #19715

DartBot opened this issue Jun 28, 2014 · 3 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. closed-duplicate Closed in favor of an existing report library-html

Comments

@DartBot
Copy link

DartBot commented Jun 28, 2014

This issue was originally filed by halverneu...@gmail.com


What steps will reproduce the problem?
1 var myWindow = window.open("", "_blank");
2 var myWindowDocument = myWindow.document;

(works in JavaScript, works in Dart, when complied with Dart2Js, returns:)
(Uncaught NoSuchMethodError: undefined is not a function)
(on line 2.)

What is the expected output? What do you see instead?
Expected output is a reference to the newly created window. Instead undefined in returned.

What version of the product are you using? On what operating system?
dart2js: 1.5.1
Chrome: 35.0.1916.153
OS: Kubuntu 14.04 64-bit

"pub update" last ran on 28JUN2014 @­15:00 PDT

Please provide any additional information below.

@floitschG
Copy link
Contributor

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

@DartBot
Copy link
Author

DartBot commented Jul 22, 2014

This comment was originally written by @zoechi


This might be related https://code.google.com/p/dart/issues/detail?id=20143

@alan-knight
Copy link
Contributor

I think this is the cross-frame restrictions which we should relax. It doesn't work for me in Dartium either. I get "Exception: Class '_DOMWindowCrossFrame' has no instance getter 'document'."


Added Duplicate label.
Marked as being merged into #20146.

@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 closed-duplicate Closed in favor of an existing report labels Mar 9, 2015
This issue was closed.
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. closed-duplicate Closed in favor of an existing report library-html
Projects
None yet
Development

No branches or pull requests

4 participants