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
OnBeforeUnload event doesnt work with Polymer + Dart2Js #18428
Comments
Added Library-Html, Triaged labels. |
Added Area-Library label. |
Appears to work properly in dart2js without Polymer. Removed Library-Html, Area-Library labels. |
Removed Area-Pkg label. |
Removed Area-Polymer label. |
Removed Library-Polymer label. |
Added this to the Later milestone. |
Added Polymer-P-2 label. |
Removed this from the Later milestone. |
Removed Polymer-P-2 label. |
Removed Polymer-Milestone-Later label. |
This issue has been moved to dart-archive/polymer-dart#170. |
This issue was originally filed by bendera...@google.com
What steps will reproduce the problem?
window.onBeforeUnload.listen((BeforeUnloadEvent e) {
e.returnValue = "no dont leave";
});
to enteredView of main component
What is the expected output?
I would expect to see a browser dialog window indicating warning me that Im about to leave and it should include the message 'no dont leave'.
What do you see instead?
No dialog, navigation proceeds unimpeded.
What version of the product are you using? On what operating system?
This was tested on ubuntu, with DartEditor 35068, I tested in both Chrome 34 and contemporary FF and it doesnt work. However, it does work correctly in dartium.
The text was updated successfully, but these errors were encountered: