Chrome app window.onClosed not fired when process ended from Task Manager - Google Chrome
问题 We have a chrome app that we keep open by openning again the main window in response to it's onClosed event. However, this event is not raised when the process is ended from Google's Chrome Task Manager. Why is this? Can we get around this so that we can keep the app open? So far, I've just run this on Windows. 回答1: Chrome Task Manager uses a low-level system function to terminate the process, see the source code (1, 2). On Windows it's TerminateProcess, and the documentation says: A process