Closed Bug 220864 Opened 21 years ago Closed 16 years ago

Mozilla doesn't exit gracefully upon termination signal

Categories

(SeaMonkey :: General, defect)

All
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alonzogariepy, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.2.1) Gecko/20030228
Build Identifier: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.2.1) Gecko/20030228

Logging out of KDE/Gnome forces all apps to exit.  Well behaved apps like Xchat
remember at least that they were open and window position/size.  Mozilla should
reopen in the right position (and if so configured show the last page visited).
Before it exits it should save bookmarks and whatever else it would normally do
on exiting.

Reproducible: Always

Steps to Reproduce:
1. Open Mozilla Browser
2. Bookmark a page
3. Logout of KDE or Gnome

Actual Results:  
Bookmarked page is not found in the bookmarks file.

Expected Results:  
It should have exited nicely, saving the bookmarks to disk.
I've found that Mozilla doesn't save bookmarks or the status of read messages
etc until exit. This implies that any new bookmarks etc are _LOST_ if Mozilla
crashes or is forced to exit for any reason (such as logging out of KDE with
Mozilla open). This is an instance of data loss, and as such IMHO should be
considered serious.

I'm running into this on v1.5

Is this really a widespread bug, or is there a problem with corruption of some
preference file? Did I miss a dupe?

This needs to be confirmed with a pristine install to rule out preference file
issues. Someone also should track down exactly what information is not being
saved. I'll see how much of this I can do, but I wanted to enter this comment first.

I'm changing the summary slightly.
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Mozilla doesn't save bookmarks when forced to exit on logout from KDE/Gnome → Mozilla doesn't save bookmarks etc until graceful exit

*** This bug has been marked as a duplicate of 131105 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
This is not the same as not saving bookmarks when mozilla crashes.  It should
exit gracefully when it receives a termination signal.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: Mozilla doesn't save bookmarks etc until graceful exit → Mozilla doesn't save bookmarks when it receives a termination signal
Ok, this bug would then be about remembering window placement and sizing (etc),
rather than bookmarks (which is bug 131105). Changing summary again.

Oddly enough, for me, the only time that Moz remembers the window positions is
when I logout of KDE _without_ first quitting Mozilla.
Summary: Mozilla doesn't save bookmarks when it receives a termination signal → Mozilla doesn't exit gracefully upon termination signal
With this in the netscape.public.mozilla.unix it seems to be a more generic
problem on unix...

Mike Fedyk wrote:
> I'm working on a Linux desktop with VNC, and one thing I've thought about is
that during server shutdown, it sends out signal 15 (TERM), and then later
signal 9 (KILL).
>
> I haven't done any testing, but I'd think that messages being composed would
be saved in drafts and similair actions performed to keep data from being lost.
>
> Is there any documentation on this?

Andrew Schultz <ajschult@eos.ncsu.edu>:
Not that I know of.  But the answer is "no".  On signal 15, Mozilla bails. 
Product: Browser → Seamonkey
Mozilla/5.0 (X11; U; Linux i686; rv:1.9pre) Gecko/2008040301 SeaMonkey/2.0a1pre
Works as expected. Reopen if i miss something. Fedora 9 beta, KDE 4
Status: REOPENED → RESOLVED
Closed: 21 years ago16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.