saved firefox resumes as if crashed

Bug #60147 reported by sardion
22
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Invalid
Medium
firefox (Ubuntu)
Fix Released
Medium
Mozilla Team

Bug Description

Binary package hint: xfce4-session

In edgy (xfce4-session 4.3.90.2svn+r22852-0ubuntu2), using firefox beta 1, if I logout with firefox running and save session then when I log in next and the session resumes, firefox reopens as if it crashed (prompts me to restore crashed session or open new session). Ideally should gracefully resume, though in dapper firefox simply failed to relaunch which is preferably to current.

Revision history for this message
In , Johannes Wienke (languitar) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20060918 Firefox/2.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1) Gecko/20060918 Firefox/2.0

FF2 seems to run really stable, but there's just one annoying little thing: I use Linux wit KDE an normally my desktop programms are left running when I shut down the system. Native KDE programms seem to get a special call or something like that, so that they save their session properly but that never really worked with the mozilla products (I noticed that, because bookmark synchronzier didn't sync when shutting down the system). So now the problem with FF 2: Everytime I start my computer, FF notices, that the session wasn't shutdown correctly and asks what to do.

Reproducible: Always

Steps to Reproduce:
1. Launch Firefox and leave it open
2. close your KDE-session or shutdown / restart your computer with the KDE-dialog
3. restore your KDE-Session
Actual Results:
FF is started but notices, that it wasn't shut down properly.

Expected Results:
Session starts without any problems or notices.

Revision history for this message
In , Steve-england (steve-england) wrote :

Sounds like bug 346802 (which was for windows)

Revision history for this message
In , Johannes Wienke (languitar) wrote :

Well, seems to be connected to that problem, but I think the mechanism for closing a session an restoring it in KDE is different to the one from windows. Windows doesn't restart the programms, if they are left running while shutting windows whereas KDE's attempt is to restore the whole desktop exactly as it was before. And that never worked correctly with Mozilla software.

Revision history for this message
In , Adam Guthrie (ispiked) wrote :

Right. It has something to do with how KDE is killing of the process when it shuts down.

I haven't tested this on GNOME, but it wouldn't surprise me if the same thing happened. (We should really try and tie into the GNOME "session saving" spec. now that we can sort of actually save a session.)

Revision history for this message
In , Zeniko (zeniko) wrote :

This corresponds to bug 333907 (its Windows counterpart) and is less of a SessionStore issue and more of a XRE one: XRE doesn't correctly notify at OS shutdown. You'll thus rather have to CC KDE/Linux XRE devs to get this rolling.

As for GNOME "session saving" integration, please file a new bug (and add an URL to the spec) since that's a different issue (enhancement rather than bug).

Revision history for this message
Cliff Wade (hawkwind) wrote :

This also happens in KDE 3.5.4 and 3.5.5 in Edgy as well. No matter what you do if you logout/shutdown with firefox running, it remembers it as a 'crashed session'

Furthermore, this also happens on Dapper if you are using the tabmix plus plugin, which I gather is similar to what the 2.x branch of firefox uses by default. I've had this happen in Dapper with 1.5.0.5 - 1.5.0.7. So it seems like it's something to do with the extension and whatever it is they use by default in Edgy now in firefox.

Changed in xfce4-session:
status: Unconfirmed → Confirmed
Revision history for this message
unggnu (unggnu) wrote :

Maybe we should change the "Affects" section to firefox because it seems to be more a problem of the new Firefox then of the kde and xfce session manager imho.

Revision history for this message
sardion (ubuntu-sardion) wrote :

Changed package to firefox (was xfce4-session) following others comments that it affects non-xfce as well.

Revision history for this message
unggnu (unggnu) wrote :
Changed in firefox:
status: Unknown → Unconfirmed
Revision history for this message
In , Thanos Kyritsis (djart) wrote :

Ok, I filled a bug in KDE's bugzilla as well. (Of course, I also do confirm the existence of this bug).

Here it is: https://bugs.kde.org/show_bug.cgi?id=136350

Let's see what happens now.

Revision history for this message
In , Johannes Wienke (languitar) wrote :

Well, the KDE-developers say that it is a Mozilla-problem? Is there any possibility to find a solution?

Revision history for this message
In , jetpeach (jetster) wrote :

Copied from the KDE bug. Is there any plan to implement XSMP protocol support?

"Mozilla doesn't support the XSMP protocol, only the primitive and old WM_SAVE_YOURSELF protocol. Which means that during session save it gets a message to save yourself and then it simply gets killed during X shutdown.

The only thing KDE could do would be removing hacks working around Mozilla bugs in their session handling and disabling session support for it altogether."

Revision history for this message
Andrew Ash (ash211) wrote :

Is this still a problem? I haven't noticed this occurring personally, using Kubuntu Edgy and KDE 3.5.5

Changed in firefox:
status: Confirmed → Needs Info
Revision history for this message
sardion (ubuntu-sardion) wrote :

This seems to have been fixed as part of the 2.0.1 release in ubuntu, cannot comment if it an upstream fix or not. So, for me, this is fixed. If no one else has this anymore, we can close it.

Revision history for this message
Andrew Ash (ash211) wrote :

Glad to hear it's fixed. If anyone else is having trouble still, let us know. Thanks for your contributions to Ubuntu!

Changed in firefox:
status: Needs Info → Fix Released
David Farning (dfarning)
Changed in firefox:
assignee: nobody → mozillateam
importance: Undecided → Medium
Revision history for this message
unggnu (unggnu) wrote :

I got still the same message after restart with KDE. I am using Ubuntu Firefox 2.0.0.1.

Revision history for this message
unggnu (unggnu) wrote :

I have the same problem with Ubuntu Feisty and Firefox 2.0.0.3.

Revision history for this message
In , Mwu-mozilla (mwu-mozilla) wrote :

*** This bug has been marked as a duplicate of bug 93789 ***

Changed in firefox:
status: New → Invalid
Revision history for this message
In , Zeniko (zeniko) wrote :

*** Bug 394099 has been marked as a duplicate of this bug. ***

Changed in firefox:
importance: Unknown → Medium
status: Invalid → Unknown
Changed in firefox:
status: Unknown → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.