window.onBeforeUnload not working in chrome
nex3 opened this issue · comments
Natalie Weizenbaum commented
Issue by DartBot
Originally opened as dart-lang/sdk#23566
This issue was originally filed by zel...@google.com
What steps will reproduce the problem?
- add a callback to window.onBeforeUnload
ex.
window.onBeforeUnload.listen((BeforeUnloadEvent e) {
return "it worked!";
});
- refresh the page in dartium - you see a confirmation dialog with "it worked!"
3.refresh the page in chrome - no confirmation dialog, just a refresh.
What version of the product are you using? Dart SDK version 1.11.0-dev.2.0