News for hackers. Stuff that matters.
Re:Heavy SSD Writes from Firefox by blinkingled on Friday September 23, 2016 @11:16AM (#12565219)
Even better just disable session restore entirely - Browser.sessionstore.enabled - Since Firefox 3.5 this preference is superseded with setting browser.sessionstore.max_tabs_undo and browser.sessionstore.max_windows_undo to 0.

As I understand this feature is there so if the browser crashes it can restore your windows and tabs - I don't remember having a browser crash on me since the demise of Flash.

Re:Heavy SSD Writes from Firefox by oridecon on Friday September 23, 2016 @11:31AM (#12565342)
> I don't remember having a browser crash on me since the demise of Flash.

Just try browsing reddit with the RES extension or streaming heavy data for a few seconds (like a server side PDF processor that takes more than 30 seconds to finish, it's the same old behavior of blocking JS dialogs from years ago, white screen of death). When I'm using a iGPU (512MB) and I open some heavy images in sequence the browser crashes after a certain amount of time but this time it freezes the entire computer for a few seconds, so I suspect it's OOM (iGPU). I never bothered looking for a solution, nowadays I don't even care when my browser ocasionally crashes. My overall desktop (software) experience gets worse every year so I have gone used to it.

But Firefox still is my favorite browser and I wouldn't trade it for anything else!

Re:Heavy SSD Writes from Firefox by blinkingled on Friday September 23, 2016 @11:39AM (#12565414)
> RES extension or streaming heavy data

Yeah that's the difference - I only use few well known extensions like uBlock Origin, Self Destructing Cookies, Lastpass and Decentraleyes. No trouble with any PDFs either. Anyway this is getting off track with the crashes or not - my point was even if it crashes it is no big deal if you can't restore - just reopen will work in most cases.

Re:Heavy SSD Writes from Firefox by tyleraldrich on Friday September 23, 2016 @12:06PM (#12565609)
> I only use few well known extensions

RES is more well known (in terms of number of downloads/users) than 50% of your listed extensions, for the record.

Re:Heavy SSD Writes from Firefox by raverbashing on Friday September 23, 2016 @11:24AM (#12565284)
Replace Browser Crash with: Accidentally pressing Ctrl-w

And yes, there are browser crashes without Flash

Re:Heavy SSD Writes from Firefox by pawadu on Friday September 23, 2016 @11:33AM (#12565362)
Why should it save the whole page when it only needs to remember the URL? At most, maybe also any form data you have entered. Small enough to keep thousands of pages in memory.
Re:Heavy SSD Writes from Firefox by Yoric on Friday September 23, 2016 @12:51PM (#12566020)
It doesn't save the whole page. Just the url, scrolling position, form data and session cookies. If you're browsing with 500 tabs, most of which contain nested frames, including Facebook "Like" icons and the like, that's actually quite a lot.
Re:Heavy SSD Writes from Firefox by gcp on Friday September 23, 2016 @12:07PM (#12565623)
And what if the server sends something different back when you visit the URL again?

The internet allows it to do that.

Re:Heavy SSD Writes from Firefox by qznc on Friday September 23, 2016 @12:27PM (#12565815)
The job of a browser is to view the internet. Not to cache it.
Re:Heavy SSD Writes from Firefox by gcp on Friday September 23, 2016 @01:15PM (#12566244)
It needs to save enough state to give you the same view.
Re:Heavy SSD Writes from Firefox by tedmielczarek on Friday September 23, 2016 @01:56PM (#12566617)
Go disable your browser cache and try browsing the internet for a while and tell me if you really believe that.
Re:Heavy SSD Writes from Firefox by blinkingled on Friday September 23, 2016 @11:27AM (#12565309)
Hmm I really haven't had FF or Chrome crash on me since a long time - I do browse a lot. I can't be that lucky. I am not saying it doesn't happen - I am saying it's so infrequent that it's just better to deal with it when it happens instead of killing your SSD with constant writes of 15GB per day. Most people don't do anything that needs to be recovered by a crashed browser.
Re:Heavy SSD Writes from Firefox by witty_username on Friday September 23, 2016 @12:54PM (#12566046)
I don't remember the last time Chrome crashed. Rarely one tab crashes (usually due to Adobe Flash).
Re:Heavy SSD Writes from Firefox by garaetjjte on Friday September 23, 2016 @11:40AM (#12565426)
Ctrl-W is not that bad, but I sometimes want to close tab by Ctrl-W but instead hit Ctrl-Q...
Re:Heavy SSD Writes from Firefox by sdkmvx on Friday September 23, 2016 @12:03PM (#12565588)
I've been setting browser.showQuitWarning to true for years to stop ^Q from killing the browser and with it my state.
Re:Heavy SSD Writes from Firefox by digi_owl on Friday September 23, 2016 @05:44PM (#12568203)
Could have sworn that has crap all effect if you also have Firefox save your tabs on quit.
Re:Heavy SSD Writes from Firefox by jhasse on Friday September 23, 2016 @12:03PM (#12565593)
Re:Heavy SSD Writes from Firefox by Osmose on Friday September 23, 2016 @11:46AM (#12565468)
I use https://addons.mozilla.org/en-US/firefox/addon/cmd-q-catcher... to force me to hit it twice to actually quit. Dunno if it works on platforms besides Mac though.
Re:Heavy SSD Writes from Firefox by nathancahill on Friday September 23, 2016 @11:48AM (#12565488)
Thanks, I do that all the time. Installed.
Re:Heavy SSD Writes from Firefox by copperx on Friday September 23, 2016 @03:01PM (#12567113)
Or learn Dvorak. The Q and W are pretty far apart.
Re:Heavy SSD Writes from Firefox by nathancahill on Sunday September 25, 2016 @05:24PM (#12577532)
You're right. One second thought, learning Dvorak is the easier solution.
Re:Heavy SSD Writes from Firefox by raverbashing on Friday September 23, 2016 @11:57AM (#12565550)
Ah that's what I mean
Re:Heavy SSD Writes from Firefox by rayiner on Friday September 23, 2016 @11:29AM (#12565332)
Who really cares about restoring browser state? Maybe I lose part of an HN or Facebook post I'd been writing, but that's it. The feature should be opt-in, IMHO.
Re:Heavy SSD Writes from Firefox by MikeTV on Friday September 23, 2016 @11:48AM (#12565486)
Hadn't thought about it until now, but this feature may be why I don't see "I wrote you a long message but accidentally closed the tab / hit the back button / my computer crashed and I lost it, so here's the highlights I remember" emails from friends and family anymore. I would much rather discover this caveat and opt out than expect my grandmother to know it's even possible to opt in.
Re:Heavy SSD Writes from Firefox by finnh on Friday September 23, 2016 @12:27PM (#12565816)
At this point, isn't that responsiblity larged handled by server-based autosave? GMail / Google Docs being the big ones, I assume FB and other social networking sites do the same.
Re:Heavy SSD Writes from Firefox by mverwijs on Friday September 23, 2016 @03:53PM (#12567476)
Also, couldn't this session-restore feature be triggered for this specific tab _after_ I've started to type text in a box?
Re:Heavy SSD Writes from Firefox by pjc50 on Friday September 23, 2016 @11:37AM (#12565397)
I certainly care about it, although it's possible that my 50-odd browser tabs would be considered "clutter" by other people.

I stopped using Edge because it only saves your tab session if you turn off the PC, not if you quit the browser.

Mind you, for a while I ran Firefox using a RAMdisc for the profile simply because all that flushing makes a big negative impact on PC performance.

Re:Heavy SSD Writes from Firefox by copperx on Friday September 23, 2016 @03:06PM (#12567148)
I also keep 50-100 tabs open at all times. How do you manage your tabs?
Re:Heavy SSD Writes from Firefox by tofflos on Friday September 23, 2016 @12:00PM (#12565568)
You're in good shape. I'm at 337 tabs. ;-)
Re:Heavy SSD Writes from Firefox by weaksauce on Friday September 23, 2016 @12:15PM (#12565701)
I made a simple firefox/chrome extension for people like you and me that horde tabs. You might find it useful to find tabs and quickly navigate to them by clicking on the link in the list. It's free and open source. The github page has a gif showing usage.

Chrome Extension: https://chrome.google.com/webstore/detail/tabist/hdjegjggiog...

Firefox Extension: https://addons.mozilla.org/en-US/firefox/addon/tabist/

source code: https://github.com/fiveNinePlusR/tabist

Let me know if you find it useful or have any suggestions.

Re:Heavy SSD Writes from Firefox by Houshalter on Friday September 23, 2016 @12:22PM (#12565767)
Your chrome link is broken.

Anyway I used an extension like this for awhile, called session buddy. But now I just use control+D and bookmark all my tabs. Then you get bookmark syncing, and you can save your tabs when you export bookmarks, or wget them to have a local archive, etc. It's just more convenient, and one less extension I have to worry about stealing my personal information or bugging and corrupting my data.

Re:Heavy SSD Writes from Firefox by weaksauce on Friday September 23, 2016 @01:19PM (#12566281)
That's fair and the extension is not for everyone. It's not really meant for saving sessions or anything like that it's more for finding lost tabs in a sea of windows like I typically have. This is more for tabs that are not worth saving to bookmarks but that you have open for a long time as a transient bookmark.

FWIW, Mozilla looks at all extensions before fully approving them and the app is fully open source and fairly easily vetted if people are worried about that sort of thing.

Thanks for the feedback!

Re:Heavy SSD Writes from Firefox by sandGorgon on Friday September 23, 2016 @12:51PM (#12566023)
this is brilliant. P.S. your chrome link is broken.

On suggestion - please give a button to save all of this as a "session" or something. I'm a tab hoarder and sometimes I just want to dump it somewhere and start afresh.

Please help me !

Re:Heavy SSD Writes from Firefox by weaksauce on Friday September 23, 2016 @01:14PM (#12566232)
Thanks! the link is fixed now... I actually did just this thing the other day but didn't know if other people would want it. I will update the addon with it.
Re:Heavy SSD Writes from Firefox by sandGorgon on Friday September 23, 2016 @03:15PM (#12567202)
if you could do one more thing - allow me to search within the "sessions". that would be awesome (search should work both on domain and title)

thanks!

Re:Heavy SSD Writes from Firefox by tunichtgut on Friday September 23, 2016 @06:42PM (#12568468)
I had about ~250 tabs and i closed them now. Bookmarked before. This "feature" of FF is rly cucking. I have tons of GB written to my SSD without any benefit (i not a "safety critical user"). And the worst thing is, all of this data was written into 40 GB of SSD space.

this session restore feature, lets just save the urls in a list. that data structure cant be GB of GB right! ;) I think thats enough for the, lets say, typical FF user.

Now, that i know about this issue, i will bring down my tab usage to no more than 10 tabs.

Re:Heavy SSD Writes from Firefox by Houshalter on Friday September 23, 2016 @12:21PM (#12565757)
I really care about it. I take advantage of it everyday. I close tabs and use ctrl+shift+t to reopen them, I reopen my browsers previous state after closing it, and after computer crashes I don't have to worry about losing any of my precious tabs.
Re:Heavy SSD Writes from Firefox by raverbashing on Friday September 23, 2016 @11:57AM (#12565545)
Yeah, if you only write on Fb or HN I see why you're not missing nothing
Re:Heavy SSD Writes from Firefox by LukeShu on Friday September 23, 2016 @11:19AM (#12565238)
Other things than a browser crash can cause the browser to unexpectedly quit. For example, a battery dying, or the power going out.
Re:Heavy SSD Writes from Firefox by blinkingled on Friday September 23, 2016 @11:21AM (#12565258)
Right but that doesn't happen quite often either. Also if it does how important is restoring the tabs and windows? Probably not to a lot of people other than serious creators that use a web editor of some sort that'll lose work if the browser disappears. Even then it is flaky to rely on something like this. Much better to have periodic backups of whatever you're doing.
Re:Heavy SSD Writes from Firefox by froydnj on Friday September 23, 2016 @01:48PM (#12566533)
You say "doesn't happen quite often", which I'm assuming means something like "doesn't happen quite often to me". But if you consider hundreds of millions of users using Firefox every day, then even a relatively rare event is happening to multiple users every single day. It is absolutely worth it to them that Firefox does its best to preserve their data.
Re:Heavy SSD Writes from Firefox by Dylan16807 on Friday September 23, 2016 @02:33PM (#12566901)
You have a point, but power outages are very correlated.
Re:Heavy SSD Writes from Firefox by bjt2n3904 on Friday September 23, 2016 @11:41AM (#12565431)
Sad that the crash feature (which I don't particularly like or use) is directly tied to the undo close tab feature (which I do).

I don't like the anxiety of opening Firefox in front of someone, and wondering if my previous tabs will pop up.

Re:Heavy SSD Writes from Firefox by krylon on Friday September 23, 2016 @12:49PM (#12566007)
It happens rarely to me, but it sometimes does. Also, your machine can crash, someone can trip over a power line, ...

At work, I routinely have something like 30-40 tabs open, if my browser can restore the session after a crash, that is very valuable to me.

Re:Heavy SSD Writes from Firefox by Pxtl on Friday September 23, 2016 @12:24PM (#12565793)
I actually find that webGL-heavy sites like Google Maps are quite good at crashing FF.
Re:Heavy SSD Writes from Firefox by mrec on Friday September 23, 2016 @12:49PM (#12566004)
Yep, StreetView in particular. And don't get me started on Shadertoy, which seems to make "crashing FF" its mission statement.
Re:Heavy SSD Writes from Firefox by jacobsenscott on Friday September 23, 2016 @12:07PM (#12565621)
I need to regularly kill firefox. I just did in fact. It didn't technically crash, but it becomes totally non-responsive for seconds at a time. Maybe it is a misbehaving plugin and not ff, but the effect is the same.
Re:Heavy SSD Writes from Firefox by gcp on Friday September 23, 2016 @11:19AM (#12565236)
It'll also cover OS crashes or power failures. Agreed that those aren't very common either.
Re:Heavy SSD Writes from Firefox by sbierwagen on Friday September 23, 2016 @12:06PM (#12565612)
I haven't had a browser crash for a while, but fairly routinely Windows will reboot itself to apply an update. (Once every other month, at least)
Re:Heavy SSD Writes from Firefox by petecox on Friday September 23, 2016 @10:02PM (#12569104)
Thanks for the tip.

I'll see if it has any affect on my laptop's battery life and fan usage.

Re:Heavy SSD Writes from Firefox by SilasX on Friday September 23, 2016 @12:03PM (#12565590)
It happens relatively often for me, maybe 1-2 times a month. No crazy extensions.