nex3 / test-repo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

window.onBeforeUnload not working in chrome

nex3 opened this issue · comments

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?

  1. add a callback to window.onBeforeUnload

ex.

window.onBeforeUnload.listen((BeforeUnloadEvent e) {
  return "it worked!";
});

  1. 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