Closed Bug 944559 Opened 12 years ago Closed 11 years ago

[Session Restore] Just say no to sessionstore.js spam

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Yoric, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

Attachments

(1 file)

Here's another idea: add (pref-controlled) limits after which we simply decide that we should not store anything meaningful about a site. e.g. - if DOM storage + postdata + formdata exceeds 1Mb; or - if the tab has more than 100 frames; - etc. In this case, just give up about that tab and store only a set of URLs.
Maybe also a LRU policy for (sub-)ressources? So if this exceeds a threshold (maybe 10), drop the oldest data (not containing forms) etc.
Attached patch First draftSplinter Review
Let's start with a simple patch that should act as countermeasure for bug 934935 (now solved by the webdevs), bug 942601.
Attachment #8340323 - Flags: feedback?(ttaubert)
Comment on attachment 8340323 [details] [diff] [review] First draft Review of attachment 8340323 [details] [diff] [review]: ----------------------------------------------------------------- It seems like this would be better covered by broadcasting scroll and form data separately. With that we're just able to discard session history for any dynamic frames.
Attachment #8340323 - Flags: feedback?(ttaubert)
Flags: firefox-backlog?
David, now that we only store DOMSessionStorage and form data for the tab's current history entry, and discard dynamic frames, do we still need this bug? I'd be inclined to close it.
Flags: needinfo?(dteller)
Ok, let's close it. We'll reopen it if necessary.
Flags: needinfo?(dteller)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Flags: firefox-backlog? → firefox-backlog-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: