Closed Bug 1612725 Opened 4 years ago Closed 4 years ago

download manager backend not initilaized if SeaMonkey is not started as normal browser (non private navigator) first

Categories

(SeaMonkey :: Session Restore, defect)

defect
Not set
normal

Tracking

(seamonkey2.49esr wontfix, seamonkey2.53 fixed, seamonkey2.57esr fixed)

RESOLVED FIXED
seamonkey 2.72
Tracking Status
seamonkey2.49esr --- wontfix
seamonkey2.53 --- fixed
seamonkey2.57esr --- fixed

People

(Reporter: frg, Assigned: frg)

References

(Regression)

Details

(Whiteboard: SM2.53.1)

Attachments

(1 file, 1 obsolete file)

The sessionstore-windows-restored notification is not send if you start SeaMonkey with the private flag or with another component like mail/news. This means that the code in this._onBrowserStartup(subject) in nsSuiteGlue.js is not run initially. This wasn't much of a problem previously but now the jsdownloads backend is initialised here among other things. Currently this results in the download names not shown if you open it. Also the progress dialog is not shown. The taskbar is also not intialised.

Workaround: As soon as you open a normal browser window the notification is send and the init code executed.

Not sure what the best solution is. Firefox sends the notification if only a private window is opened but our seession store is more or less different and outdated. Send it with a null window like in Fx also results in the notfication not shown (see Bug 573384) and if we have only a address book or mailnews window the startup code will like fail to show a notification too.

So probably best do move some components out of _onBrowserStartup and into a delayed startup like in Firefox after final-ui-startup is received.

I am not sure if we can fix it for 2.53.1 but if not the workaround should be put into the release notes.

Summary: sessionstore-windows-restored not send if SeaMonkey is started with -private flag → sessionstore-windows-restored not sent if SeaMonkey is started with -private flag

Works for me but needs some cleanups. Not asking for r+ yet.

[Approval Request Comment]
Regression caused by (bug #): 888915
User impact if declined: downloads backend not initialized if starting with private window or mail.
Testing completed (on m-c, etc.): 2.53
Risk to taking this patch (and alternatives if risky): just some reshuffle. Current start beween first window shown and previous session restore notification. Just a bit earlier and for mail too.

This fixes most of the common use cases. There are still edge cases when you start with the address book. In any case it will work as soon as the first mailpane or a browser window is shown.

Follow up fixes for disabling the download manager till then can come later.

Starting the download manager with non-private is not really needed but makes it clearer.
String changes made by this patch: none

Attachment #9125234 - Attachment is obsolete: true
Attachment #9125341 - Flags: review?(iann_bugzilla)
Attachment #9125341 - Flags: approval-comm-release?
Attachment #9125341 - Flags: approval-comm-esr60?
Summary: sessionstore-windows-restored not sent if SeaMonkey is started with -private flag → download manager backend not initilaized if SeaMonkey is not started as normal browser (non private navigator) first
Regressed by: 888915
Comment on attachment 9125341 [details] [diff] [review]
1612725-downloadmanager-253-V2.patch

[Triage Comment]
Tested on 2.53.x, works fine for -private and -mail
It doesn't on -addressbook or -edit(or) but I don't think there are currently hooks for them. Either way that can be a followup.
r/a=me
Attachment #9125341 - Flags: review?(iann_bugzilla)
Attachment #9125341 - Flags: review+
Attachment #9125341 - Flags: approval-comm-release?
Attachment #9125341 - Flags: approval-comm-release+
Attachment #9125341 - Flags: approval-comm-esr60?
Attachment #9125341 - Flags: approval-comm-esr60+

Pushed by frgrahl@gmx.net:
https://hg.mozilla.org/comm-central/rev/fc4e61149091
Download Manager should always show the complete downloads list even in private mode. r=IanN

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Whiteboard: SM2.53.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: