Lock to prevent multiple parallel executions of the beforeunload
listener.
Returns a list of actions that FrontendApplicationContributions would like to take before shutdown It is expected that this will succeed - i.e. return an empty array - at most once per session. If no vetoes are received during any cycle, no further checks will be made. In that case, shutdown should proceed unconditionally.
Called when the window
is about to unload
its resources.
At this point, the document
is still visible and the BeforeUnloadEvent
event will be canceled if the return value of this method is false
.
In Electron, handleCloseRequestEvent is is run instead.
Run when ElectronMain detects a close
event and emits a close-requested
event.
Should send an event to electron.ipcRenderer
on the event's confirmChannel
if it is safe to exit
after running FrontendApplication onWillStop
handlers or on the cancelChannel
if it is not safe to exit.
Notify the browser that we do not want to unload.
Notes:
The beforeunload event
Implement the mechanism to detect unloading of the page.
Updates the window zoom level based on the preference value.
Close the window right away when
true
, else check if we can unload.