All users were logged out of Bugzilla on October 13th, 2018

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

UNCONFIRMED
Unassigned

Status

()

UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: passfree, Unassigned)

Tracking

8 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
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.

Comment 1

7 years ago
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?

Updated

7 years ago
Component: XPCOM → Startup and Profile System
Product: Core → Toolkit
QA Contact: xpcom → startup
You need to log in before you can comment on or make changes to this bug.