Closed Bug 511456 Opened 15 years ago Closed 15 years ago

Cancelling a quit still closes some windows

Categories

(Firefox :: General, defect)

3.5 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a1

People

(Reporter: Biesinger, Assigned: benjamin)

References

Details

Attachments

(1 file)

Steps to reproduce: 1. Have an unsaved Gmail draft in one window 2. Have some more windows open 3. Press Ctrl+Q 4. Get asked by the Gmail window if you really want to quit 5. Press Cancel Expected results: All windows stay open Actual results: After pressing cancel, the non-Gmail windows close. History|Recently closed windows opens empty windows instead of restoring what was in them. (this is with a mozilla.org Firefox 3.5.2 build on Ubuntu)
Mossop, do you know the workflow of Ctrl+Q? If it's using quit-application-requested, will content-area onbeforeunload handlers get a notification then, or only when quit-application-granted has been fired?
<gavin> bsmedberg: permitUnload is what you want to search for <gavin> bsmedberg: biesi's bug would kind of be annoying to fix <gavin> we'd need to start checking permitUnload for all windows/tabs before trying to close any of them <biesi_> yeah <gavin> what happens if you permit one tab to close, but not the next? <biesi_> well then you don't close any <bsmedberg> gavin: yeah, don't close any <bsmedberg> gavin: it sounds like something we should be doing at quit-application-requested, way before we get to actual window-closing <gavin> I guess so
(In reply to comment #1) > Mossop, do you know the workflow of Ctrl+Q? I don't no, and probably wouldn't have time to dig into it until after next week. I have a suspicion that this bug is a dupe too.
This patch trades one bug for another: quitting now works well, but beforeunload handlers are not called at all when the user just closes one window. I'm also going to have to learn browser-chrome tests setup, and I'm not sure whether it can deal with the modal prompts that onbeforeload handlers put up...
Assignee: nobody → benjamin
Depends on: 537449
Fixed by bug 537449
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: