Open Bug 705554 Opened 13 years ago Updated 2 years ago

nsIAppStartup eForceQuit will fail if there is at least one window with registered unload handlers

Categories

(Toolkit :: Startup and Profile System, defect)

8 Branch
x86
macOS
defect

Tracking

()

UNCONFIRMED

People

(Reporter: passfree, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.8 (KHTML, like Gecko) Chrome/17.0.942.0 Safari/535.8

Steps to reproduce:

If we try to to close an application via the nsIAppStartup, the attempt will fail if there is at least one open window and has registered unload handlers. In other words, the following will fail:

addEventListener('unload', function () {}, false);

function clickMe() {
  appStartup.quit();
}



Expected results:

The application should exit normally.
What are the precise symptoms of failure? In this example you aren't passing any argument to appStartup.quit, although in the bug summary you mention eForceQuit. Did you mean to be passing eForceQuit?
Component: XPCOM → Startup and Profile System
Product: Core → Toolkit
QA Contact: xpcom → startup
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.