Closed Bug 403837 Opened 17 years ago Closed 5 years ago

Using window close button does not invoke the shutdown service [but not Mac], so roaming service never sees the "quit-application-requested" notice.

Categories

(MailNews Core :: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 459376
Thunderbird 3.0rc1

People

(Reporter: nick.kreeger, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: platform-parity)

The shutdown service listens to "quit-application-requested" to determine when to run the shutdown tasks. This event works perfectly on the Mac platform. However, in Windows and Linux - it only works if a file->exit or cmd-q event is submitted to the application. Simply closing the last open window just shuts the app down and the roaming service never sees the "quit-application-requested" notice.
NOTE: Simple solution would be to add a window listener to the windows that are open...
Product: Core → MailNews Core
could this potentially lead to dataloss?
OS: Linux → All
Summary: Closing last window with the window close button does not invoke the shutdown service → Closing last window with the window close button does not invoke the shutdown service [but not Mac]
No longer depends on: 459376
I typically close via quit or just power off the PC.  But most business users I know, and casual users as well, are fanatics about using their big red X and nothing else.  So there surely bugs reported for things which should happen at shutdown but don't. Like expunge. It will be interesting to see what happens when this gets fixed.

Bug 345067 may be of interest - Issues with prompt service's confirmEx - confirmEx always returns 1 when user closes dialog window using the X button in titlebar
I wonder the same thing as Wayne; marking as blocking-thunderbird3?
Flags: blocking-thunderbird3?
blocking‑thunderbird3-, but wanted P1, as this blocks some neat extension work.
Flags: wanted-thunderbird3+
Flags: blocking-thunderbird3?
Flags: blocking-thunderbird3-
Keywords: pp
Priority: -- → P1
Hardware: PC → All
Target Milestone: --- → Thunderbird 3.0rc1
dmose, kreeger, this sorta got lost in the runup to 3.0.  Assuming this is still be true gecko 1.9.2 and higher, this probably deserves serious thought going into 3.next.

Magnus, what types of extension work this might block?


(In reply to comment #0)
> The shutdown service listens to "quit-application-requested" to determine when
> to run the shutdown tasks. This event works perfectly on the Mac platform.
> However, in Windows and Linux - it only works if a file->exit or cmd-q event is
> submitted to the application. Simply closing the last open window just shuts
> the app down and the roaming service never sees the
> "quit-application-requested" notice.
Keywords: qawanted
(In reply to comment #6)
> dmose, kreeger, this sorta got lost in the runup to 3.0.  Assuming this is
> still be true gecko 1.9.2 and higher, this probably deserves serious thought
> going into 3.next.

we probably shouldn't let this slip further, no??


> Magnus, what types of extension work this might block?

can someone elaborate on what "neat extension work" Magnus is hinting at?
It's a little hard to guess how severe this is in reality, but getting a fix would be a fine thing.  Adding Standard8 for his thoughts...
I believe i was referring to some sync extension Nick was doing at the time (which needed to sync stuff on shutdown).
(In reply to comment #8)
> It's a little hard to guess how severe this is in reality, but getting a fix
> would be a fine thing.  Adding Standard8 for his thoughts...
I think what Nick was working on, either didn't get mainstream or stayed as an extension.

The only thing we'd really want it for currently is send in background - which also the only thing that is using the shutdown service currently.

I'm not sure if we should dupe this to bug 459376 or leave it open, but in any case, bug 459376 would be the fix that's actually required.

(In reply to Mark Banner (:standard8) from comment #11)

I think what Nick was working on, either didn't get mainstream or stayed as
an extension.

The only thing we'd really want it for currently is send in background -
which also the only thing that is using the shutdown service currently.

Nick's project was Bug 377242 - [SoC] Enable Roaming Support in Thunderbird. So there is that

I'm not sure if we should dupe this to bug 459376 or leave it open, but in
any case, bug 459376 would be the fix that's actually required.

Magnus, do you agree we can just dup this to bug 459376? (and make that block bug 377242 )

Flags: needinfo?(mkmelin+mozilla)
Keywords: qawanted
Priority: P1 → --
See Also: → 377242
Summary: Closing last window with the window close button does not invoke the shutdown service [but not Mac] → Using window close button does not invoke the shutdown service [but not Mac], so roaming service never sees the "quit-application-requested" notice.

Let's dupe to bug 459376 yes.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(mkmelin+mozilla)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.