Whether the browser aborts the request on page unload (it should) and whether it fires the abort event (???) are two different things. There could be security issues to letting JS handle the event, for example would the abort handler be able to pop up dialogs or change `window.location`? The `window.onbeforeunload` handler has restrictions due to concerns about what happens on the way out of a page.