Detect browser close event
We are working with Firefox Portable ESR 78.6.0 on windows 10 OS
We need to detect the close event to override it, or disable it when the user try to close the browser from the taskbar.
With an older version of Firefox Portable ESR (52.2.0), we used the following code to detect browser closure:
var observerService = Components.classes ["@ mozilla.org/observer-service;1"OUND.getService(Components.interfaces.nsIObserverService);
observerService.addObserver (this, "quit-application-granted", false);
- Read more about Detect browser close event
- Log in or register to post comments