by crazygringo · 5y ago · 0 comments
Sometimes I'd really like to close a ton of tabs, or just close my browser, or a whole window, and reopen tomorrow.
But I'm relying on scroll position to know where I am in 20 different documents, or login credentials that only last for 24 hours, or certain comment threads that have been expanded while others have been collapsed, or my position in a video, etc etc etc.
And all of that gets lost if I close a tab or even restart my browser to upgrade.
I just want to serialize the current DOM/source files and JavaScript/window state to unserialize it later. Sure, network connections will break but websites can usually handle that.
Because while the organization/usage of tabs/bookmarks is one thing, a HUGE roadblock to closing tabs is losing state.
I'm sure it wouldn't be even close to trivial for browsers to build, but it still would just be so helpful.
I sometimes need to restart my computer but don't want to lose all my Firefox windows and tabs, so I would force kill Firefox and have it restore the 'crashed' session after rebooting. That did work very well, but this is a much cleaner solution.
File > Exit (ctrl-shift-q)
Or when you just visit a link and then press the back-button.
I remember 20 years ago you would press the back-button and your previous page was IMMEDIATELY restored, no network request involved.
It feels like today the browser cache isn't used at all. This is especially disappointing with the new Firefox Mobil where they removed offline-mode among other features.
As a web developer I see having control over this rather than the web browser as a good thing.
As much as ensuring current data is sometimes relevant, having a tab show up empty, with a 404 (linkrot), or with some redirect to utterly unrelated content is ... not serenity-inducing.
Mozilla's operating premise is that the browser serves users, not publishers. That promise rings somewhat hollow these days, though I enthusiastically applaud the concept.
Clearly Chrome is keeping this info up-to-date in case it crashes (or someone kills it in task manager). So if its already doing this, they should add in a feature to to it manually, so I don't need to kill the task.
It absolutely does not remember scroll position, much less any of the remaining state of the page.
This does not appear to be available in your full history, though
Amna can do this (kind of). If you don't explicitly "close" a a browser window within Amna, it will just minimize the window. So it preserves the state (e.g scroll), while still giving you freedom to work on something else with a clean slate. It's not perfect, since the tabs aren't really closed, they'd be just out of sight. But it's a start in that direction. On the flip-side, in case your computer shuts down or whatever, the tabs are saved still.
One challenge I've run into state preservation is auth, a lot of websites actually log you out (e.g. AWS Console, Sendgrid), even if you have them open in the background.
Can you do something similar?
That’s where I want to get to. For now you can import Google or Microsoft Tasks.
I’ve been working on a integrations library for all of these services:
More specifically freeze-dry, code for page state saving: https://github.com/WebMemex/freeze-dry
I found it's good for organizing tabs and creating different sessions for different tasks. It works on most pages pretty well but every once and a while I still have to go into a standard chrome browser to make sure I'm still seeing the same page as other folks. Still pretty great overall. I save multiple different session types easily and don't have to worry about losing where I'm at.
This is next on the todo list for the browser I'm writing. I have a lot of ideas for it but I want to get some basic javascript working first.
> Future improvements: the tab serializer
> The tab serializer is a future piece of work we think may lead to significant improvements on our current approach to tab discarding. It takes the contents of a Chrome tab and serializes its current state into a binary blob. This binary blob can later be deserialized into a tab.
> The serializer would serialize almost everything Chrome, Blink and V8 need to properly preserve a tab (something Chrome extensions tackling this problem historically haven't been able to easily achieve). Serialization would include the usual suspects: the DOM (with a lot of WebGL and Canvas included), CSS and the state of the V8 JavaScript VM.
> If you use Android or ChromeOS, you may know that (similar to the tab discarding experiment covered in this post) we kill background tabs aggressively in order to ensure memory usage is low. The issue with the way we tackle this was that your tab would lose all of its state.
> When you showed interest in the tab again, we would have to reload it and all your interaction with it would be lost. The tab serializer just approaches this problem in a way that gets you back to almost exactly what you were without requiring going back to the network.
> We look forward to sharing more information about this work at a later date.
6 years later, we have... wait for iiiiiit... something called "freeze-dried tabs": https://www.xda-developers.com/google-chrome-89-freeze-dried...
It basically presents a pseudo-image of the current tab while the actual tab is loading in the background. The pseudo-picture contains text and image drawing commands so it can be zoomed in and out, and it's a snapshot of the entire webpage (probably subject to limitations I'm yet to identify). It's not interactive though beyond having a concept of "hit targets" for anchor elements, and AFAIK Android's only using it to speed up perceived browser startup at the moment (so not for tab switching).
To me, the fact that this silly feature has shipped on Android ("THE" platform), and for the most part very imperfectly filled the vacuum that would have been a canonically perfect match for tab serialization, is fairly concrete signal that tab serialization will never be implemented. D:
I can admittedly sorta appreciate that WebGL and DRM state would probably be tricky to perfectly save - the text says "a lot of", suggesting that the feature would sometimes fail and produce an inconsistent experience. Hmph. That would be better than nothing. And it's not like Google couldn't go look at how Firefox does it for ideas....
Sometimes I just wish a bunch of rich millionaires with no idea what to do with their money would make a giant big deal about _paying Google_ to implement specific obscure features into Chrome - like this one :D. It would cause all sorts of hilarious chaos in terms of processing the payment, which would itself make for excessively amusing headlines about feature prioritization and such.
Audio/video autoplay, adblock, tabs navigation and retrieval, user state generally, and more.
I still use Chrome on Android in two cases:
1. On an old device in which Firefox/Fennec performance is abysmal. (On a newer device, there's no contest, and Fennec wins out for general browsing.)
2. For print-to-PDF on the newer device (Fennec seems to have lost this functionality, along with a number of other highly useful features).
Otherwise, I avoid it like the plague. As well as Android in general.
Fennec is the least objectionable, generally. EinkBro is quite well-suited to e-ink devices.