Closed Bug 514388 Opened 15 years ago Closed 15 years ago

No quit dialog when multiple windows are open

Categories

(SeaMonkey :: Session Restore, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.0

People

(Reporter: neil, Assigned: misak.bugzilla)

References

Details

(Keywords: fixed-seamonkey2.0)

Attachments

(2 files, 1 obsolete file)

nsSuiteGlue.js has a reference to chrome://browser/locale/quitDialog.properties but this file does not exist in SeaMonkey. Instead we need to create one in the communicator locale and update nsSuiteGlue.js to point to it.
I wonder if we might actually have the strings in one of our files already and just missed to correct the URL, actually.
Actually suite/locales/en-US/chrome/common/quitDialog.properties file was missing, so string changes required :(
Assignee: nobody → misak
Status: NEW → ASSIGNED
Keywords: helpwanted
Attachment #398595 - Flags: ui-review?(neil)
Attachment #398595 - Flags: superreview?(neil)
Attachment #398595 - Flags: review?(neil)
Flags: wanted-seamonkey2.0?
Flags: blocking-seamonkey2.0b2?
also we might want to port Bug 354894 too, I'll do it after beta 2
Attachment #398595 - Flags: ui-review?(neil)
Attachment #398595 - Flags: ui-review+
Attachment #398595 - Flags: superreview?(neil)
Attachment #398595 - Flags: superreview+
Attachment #398595 - Flags: review?(neil)
Attachment #398595 - Flags: review+
Attachment #398595 - Flags: approval-seamonkey2.0+
Keywords: checkin-needed
You can't block 2.0b2 any more, it has been cut, but yes, we want this for 2.0
Flags: wanted-seamonkey2.0?
Flags: wanted-seamonkey2.0+
Flags: blocking-seamonkey2.0b2?
Flags: blocking-seamonkey2.0b2-
Comment on attachment 398595 [details] [diff] [review]
fix
[Checkin: Comment 6]


http://hg.mozilla.org/comm-central/rev/f5f47aae6455
Attachment #398595 - Attachment description: fix → fix [Checkin: Comment 6]
Keywords: checkin-needed
Target Milestone: --- → seamonkey2.0
This fix was working for me at the moment of submitting, but somehow not now :( Current behavior is on quit SM prompts tab close warning for each window and then quit prompt. Can't figure out why.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.4pre) Gecko/20090907 NOT Firefox/2.0.0.20 Lightning/1.0pre SeaMonkey/2.0pre ID:20090907094702


Sorry, forgot my Build iD
It's random, unfortunately; it just depends on whether nsSuiteGlue or nsTryToClose has been registered first. (nsTryToClose is the component that calls the individual prompt for each window.)
So, according to gavin, Firefox doesn't set window.tryToClose in its browsers, so that only session restore prompts when you're trying to quit.
Yes, figured that out too, fix is in patch for bug 515006
It seems this one liner is fixing this bug. No need to wait for bug 515006
Attachment #399397 - Flags: superreview?(neil)
Attachment #399397 - Flags: review?(neil)
Attachment #399397 - Flags: approval-seamonkey2.0?
Attachment #399397 - Flags: superreview?(neil)
Attachment #399397 - Flags: superreview-
Attachment #399397 - Flags: review?(neil)
Attachment #399397 - Flags: approval-seamonkey2.0?
Comment on attachment 399397 [details] [diff] [review]
don't set window.tryToClose in browser

This isn't quite right, you need to change BrowserTryToCloseWindow too.
Sorry, this is the right one.
Attachment #399397 - Attachment is obsolete: true
Attachment #399425 - Flags: superreview?(neil)
Attachment #399425 - Flags: review?(neil)
Attachment #399425 - Flags: approval-seamonkey2.0?
Attachment #399425 - Flags: superreview?(neil)
Attachment #399425 - Flags: superreview+
Attachment #399425 - Flags: review?(neil)
Attachment #399425 - Flags: review+
Attachment #399425 - Flags: approval-seamonkey2.0?
Attachment #399425 - Flags: approval-seamonkey2.0+
Keywords: checkin-needed
Comment on attachment 399425 [details] [diff] [review]
right fix
[Checkin: Comment 15]


http://hg.mozilla.org/comm-central/rev/d45144dc165c
Attachment #399425 - Attachment description: right fix → right fix [Checkin: Comment 15]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Hello,

Do I take it that the old feature to give a warning dialog box before quitting when multiple windows or tabs are open is supposed to have been restored? I am running 
Build identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100105 SeaMonkey/2.0.2

... and keep accidentally quitting with no dialog when hitting Command-Q by mistake (intending Command-W).
(In reply to comment #16)
> Do I take it that the old feature to give a warning dialog box before quitting
> when multiple windows or tabs are open is supposed to have been restored?
Yes, unless your startup preference is set to restore previous session.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: