onBeforeClose

abstract fun onBeforeClose(browser: CefBrowser)

Called just before a browser is destroyed. Release all references to the browser object and do not attempt to execute any methods on the browser object after this callback returns. If this is a modal window and a custom modal loop implementation was provided in runModal() this callback should be used to exit the custom modal loop. See doClose() documentation for additional usage information.

Parameters

browser

The browser generating the event.