Closed Bug 351474 Opened 18 years ago Closed 18 years ago

No reaction to WM_QUIT

Categories

(Core Graveyard :: Widget: OS/2, defect)

x86
OS/2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

Details

Attachments

(1 file)

With the threading changes in May 2006 the handling of WM_QUIT that previously lived in nsAppShell::Exit and nsAppShell::Run has gone away. The symptom is that when a SeaMonkey or Firefox window is closed from the Window List of the system nothing happens (besides that window getting focus).

Solutions would be to resurrect the code that was removed and put it into some other method or to just handle WM_QUIT like WM_CLOSE.
Attached patch The easy fixSplinter Review
Mike, please tell me if this easy fix makes sense to you (at least my limited testing does't show any bad effects), or if I should look into getting the old code back into OS/2's nsAppShell somehow.
Assignee: mozilla → mozilla
Status: NEW → ASSIGNED
Attachment #236871 - Flags: review?(mozilla)
If you have multiple windows open and right click on one in the task list and select close, does it close all or just the one (with this patch)
In my testing with this patch it closed the one selected window only.
Related to bug 344440?
Mats, yes the reason for the problem is the same. But I think we should not solve the problem in the same way as it has been done on Windows (in bug 344309) because that will shut down the app completely without asking instead of just closing a window. The solution that was suggested in bug 344440 does not seem to work, either. nsIAppStartup::Quit(eAttemptQuit) always just closes without asking while Quit(eConsiderQuit) doesn't seem to do anything.

I think the solution in attachment 236871 [details] [diff] [review] is better, but I don't know all the implications that this will have when installing and on extensions.
mkaply, are you happy with the simple solution? If yes, we should get this in soon, because the nightly users get more and more unhappy about this.
Comment on attachment 236871 [details] [diff] [review]
The easy fix

Yep. This is good enough for now.
Attachment #236871 - Flags: review?(mozilla) → review+
OK, fix checked into trunk (not needed for branch).
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: