History wiped out if disk full when firefox exits

Bug #40610 reported by Lee Revell
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
Invalid
Critical
firefox (Ubuntu)
Fix Released
Medium
Unassigned
firefox-3.0 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

If the disk is full when Firefox is closed (or crashes, or is OOM-killed by the kernel) the history will be completely wiped out. This is a grave bug as it leads to data loss.

Of course it can't save the new history if the disk is full but it should fall back to the last saved history rather than losing data.

Revision history for this message
Gary Coady (garycoady) wrote :

I'm confirming this because multiple people upstream have confirmed the same issue.

The upstream bug at https://bugzilla.mozilla.org/show_bug.cgi?id=242207 has 50 votes, and has been open for two years. If it's okay, I won't add another comment to the already long thread, as it won't make fixing the bug any faster.

The probable way that this will be fixed is through the implementation of a new history/bookmark backend: in the release notes for the first alpha release of FireFox 2.0, a new feature was:
New data storage layer for bookmarks and history (using SQLlite)

I would expect that when Ubuntu moves to FF2.0, this bug will be fixed.

Changed in firefox:
status: Unconfirmed → Confirmed
Revision history for this message
Lee Revell (rlrevell) wrote :

FWIW the upstream bug seems to be at least 2 separate bugs

1) shift-delete with a single tab (comment #51)
2) disk-full at FF exit (comment #77)

#1 may only affect Windows, #2 affects Linux. #2 is much more serious IMHO as it seems to be easier to trigger

Revision history for this message
Lee Revell (rlrevell) wrote :

Would it be acceptable to work around this by having the wrapper script save a copy of the history file so the user at least has the option to restore the last known good history if FF decides to blow it away?

Revision history for this message
In , Lee Revell (rlrevell) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060608 Ubuntu/dapper-security Firefox/1.5.0.4

If Firefox is closed or crashes when the disk is full, history will be lost.

Reproducible: Always

Steps to Reproduce:
1. Launch firefox
2. Generate a disk full condition
3. Exit Firefox

Actual Results:
Next time Firefox is started the history is blank

Expected Results:
History should not be lost. It's not possible to save the new history with a full disk, but the previous history should not be lost.

Related to bug #242207

Revision history for this message
In , Geoffrey G Wright (geoffreygwright) wrote :

I just submitted a disk-full-related bug concerning context menus.

Regarding the history, I think a 'feature' should be added where the oldest entries in the history are removed to accomodate the new ones when the disk is full.

These disk full issues are more important as more people run Firefox from USB devices and (like me) from encrypted volumes.

Revision history for this message
In , Lee Revell (rlrevell) wrote :

Well, it would be a huge improvement if it simply didn't unlink the old history file until the new one was safely created. Better to lose the new entries than lose everything. It could also give the user a chance to free up some disk space rather than silently discarding the history (currently a transient disk-full condition causes the history can be lost in mid-session, without having to restart FF)

Revision history for this message
In , Imbaczek-poczta (imbaczek-poczta) wrote :

A lot of bad things happen when the disk is full. I had to basically delete my profile since all extensions just disappeared and none were able to install (no matter how many times I restarted the browser, they just kept asking for restart.)

IMHO firefox should refuse to start (or start in some kind of read-only mode) when the device that stores current profile is full.

Revision history for this message
In , Malcolm-smith (malcolm-smith) wrote :

I have also experienced this.

Changed in firefox:
status: Unknown → Unconfirmed
Revision history for this message
Alexander Sack (asac) wrote :

needs upstream confirm ... tagging accordingly

Changed in firefox:
assignee: nobody → mozillateam
David Farning (dfarning)
Changed in firefox:
assignee: mozillateam → mozilla-bugs
Revision history for this message
In , Jakub-januszkiewicz (jakub-januszkiewicz) wrote :

I confirm that.
In addition, all remembered form data is lost (but the stored passwords remain, thankfully) and the toolbars are reset to default. At least that happened to me yesterday when I run out of disk space.
I've also lost the whole Adblock Plus filter list, though I'm not sure if it's a Adblock or Firefox bug.

Revision history for this message
In , Alexander Sack (asac) wrote :

looks like a resurrection of bug 86501

Revision history for this message
Alexander Sack (asac) wrote :

confirmed bug upstream

Changed in firefox:
status: Confirmed → In Progress
Changed in firefox:
status: Unconfirmed → Confirmed
Alexander Sack (asac)
Changed in firefox:
assignee: mozilla-bugs → nobody
status: In Progress → Triaged
Changed in firefox-3.0:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Micah Gersten (micahg) wrote :

Firefox 2 is EOL. Is anyone having a problem with this on Firefox 3.5?

Changed in firefox (Ubuntu):
status: Triaged → Won't Fix
Revision history for this message
John Vivirito (gnomefreak) wrote :

Sorry but Firefox-3.0 has reached EOL and will no longer receive updates.
This is an old bug, can anyone confirm that this is still happening on firefox-3.5 from our repos?

affects: firefox-3.0 (Ubuntu) → firefox-3.5 (Ubuntu)
Revision history for this message
John Vivirito (gnomefreak) wrote :

Can anyone confirm this happens on 3.0.17

affects: firefox (Ubuntu) → firefox-3.0 (Ubuntu)
Changed in firefox-3.0 (Ubuntu):
status: Won't Fix → Triaged
Changed in firefox:
importance: Unknown → Critical
Revision history for this message
In , Vseerror (vseerror) wrote :

is this issue still seen in current firefox?

bug was filed when history was in mork so perhaps this can be closed.

xref bug 286988

Revision history for this message
In , Mak77 (mak77) wrote :

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

Revision history for this message
Tromer (1-launchpad2eran-tromer-org) wrote :

Confirmed (the hard way) with Firefox 8.0.

Revision history for this message
In , Mozilla-bugs-micahscomputing (mozilla-bugs-micahscomputing) wrote :

We (Ubuntu) just had a confirmation on Linux that this was still happening with Firefox 8. (See linked Launchpad bug)

Changed in firefox-3.0 (Ubuntu):
status: Triaged → Invalid
affects: firefox-3.5 (Ubuntu) → firefox (Ubuntu)
Revision history for this message
In , Samuel Bronson (naesten) wrote :

Lots of bad things do happen when the disk is full. (Session Restore doesn't save the session, visited links don't turn purple, etc.) It would be *really* helpful if Firefox would alert users about the problem so they can remedy it ASAP, preferably before Firefox crashes/power goes out/etc. and they lose their session.

Revision history for this message
In , Nikhiljohny (nikhiljohny) wrote :

Hi, I don't know i am the right person to take up this bug as i am still new to open source. But i would still like to take it up with help provided.
Thanks

Revision history for this message
Lee Revell (rlrevell-k) wrote :

This bug no longer appears to be present in Firefox 38.0 on Ubuntu 14.04. Better late than never!

Changed in firefox:
status: Confirmed → Invalid
Revision history for this message
Paul White (paulw2u) wrote :

Upstream bug showing "RESOLVED WORKSFORME" since 2015-05-28
Reporter has said not an issue since Firefox 38
No further comments for nearly 4 years so closing.

Changed in firefox (Ubuntu):
status: Triaged → Fix Released
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.