Open jeffgca opened 8 years ago
Dated now, but https://github.com/mozilla/tofino/pull/28 has code to surface this to the main process.
Would it be possible to save all open pages to disk on shutdown (or at least a screenshot of them), so that some version of it is available on startup regardless of network connection?
I just ran into an interesting micro-optimizaton that FF doesn't do and chrome handles badly:
If you do the following:
...you get yourself into a situation where the browser launches, tries to restore your session but can't, and shows the 'you have no network' errors.
Next, turn wifi back on.
In Firefox, nothing happens and the best thing to do is just re-start the browser, the other more painful option would be to reload each site opened individually.
In chrome, weirdness happens - the foreground tab doesn't reload but after a while chrome's lazy tab loading feature starts loading all of the other tabs.
What tofino could do is be smarter about network state transitions, eg get the wifi status of the laptop when it changes and try to lazy load the session again if we move from offline to online.