- POST data of navigation history
RationaleWhen restarting Chrome, depending on the reason for the restart (e.g. for an update), the user might not expect to lose his or her session state (e.g. login cookies). We could do better by recording more session state. However, we will always just record a subset of the full state. It’s e.g. not feasible to persist the complete JavaScript state of a running renderer.When to persist session stateThe main focus here is to make the forced restarts (for applying critical security updates) and crashes less annoying. However, we could also do this when the user checked the option to reopen the pages that were open last on start.What new stuff to persistI propose to persist the following session state (in addition to what is already persisted now):
- Session cookies
- Don’t apply “delete on shutdown” rules on restarts for updates
- window.sessionStorage
- POST data of navigation history
Similar to what Firefox does, I propose to apply this to http and https sites. I propose to implement this by a number of new SessionCommands.IncognitoFor now, we won’t persist any state about incognito windows. Rationale: Incognito mode wasn’t incongito anymore, if we’d write enough state to disk to restore it after a restart.There’s a certain tradeoff between privacy and usability here. Users might be outraged if after a forced restart their incognito windows are lost. On the other hand, we don’t want to persist any information about incognito sessions.
NotificationsSince the restore won’t work in 100% of all possible cases, we might want to show a notification to the user about what happened and why, maybe pointing them at a help center article.
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
--
Very nice-- I'd love to see session restore handle more types of state.On Wed, Nov 9, 2011 at 12:24 PM, Jochen Eisinger <joc...@chromium.org> wrote:
RationaleWhen restarting Chrome, depending on the reason for the restart (e.g. for an update), the user might not expect to lose his or her session state (e.g. login cookies). We could do better by recording more session state. However, we will always just record a subset of the full state. It’s e.g. not feasible to persist the complete JavaScript state of a running renderer.When to persist session stateThe main focus here is to make the forced restarts (for applying critical security updates) and crashes less annoying. However, we could also do this when the user checked the option to reopen the pages that were open last on start.What new stuff to persistI propose to persist the following session state (in addition to what is already persisted now):
- Session cookies
- Don’t apply “delete on shutdown” rules on restarts for updates
- window.sessionStorage
- POST data of navigation history
Similar to what Firefox does, I propose to apply this to http and https sites. I propose to implement this by a number of new SessionCommands.IncognitoFor now, we won’t persist any state about incognito windows. Rationale: Incognito mode wasn’t incongito anymore, if we’d write enough state to disk to restore it after a restart.There’s a certain tradeoff between privacy and usability here. Users might be outraged if after a forced restart their incognito windows are lost. On the other hand, we don’t want to persist any information about incognito sessions.Would it be worthwhile to try to store the incognito state in another process while Chrome restarts? That would keep it in memory and not persistent state, but it would require some format that is reasonably stable across Chrome versions. (I suppose it also wouldn't work for ChromeOS restarts, which restart the whole machine.)
We should make sure we're targeting the biggest problem that people are having with session restore before we make it more complicated by persisting more stuff: it's too slow.
However, we could also do this when the user checked the option to reopen the pages that were open last on start.
On Wed, Nov 9, 2011 at 9:56 PM, Ben Goodger (Google) <b...@chromium.org> wrote:We should make sure we're targeting the biggest problem that people are having with session restore before we make it more complicated by persisting more stuff: it's too slow.
However, we plan to force restart chrome for critical updates, and e.g. deleting browsing data on shutdown during such a forced restart will gives us a bunch of very unhappy users, so I'd argue that it's also important to tackle this problem.
What about webkit data, e.g. filled in form information, scroll position, etc.?
What about webkit data, e.g. filled in form information, scroll position, etc.?A lot of this stuff is already persisted in the case where you "undo close tab". I don't know if it's dropped for session restore. If so, this would be a good candidate to not drop (but my random guess would be that we already restore as much as we can).
Indeeed. And there are limits to what it can store.
-Scott
No please :) A browser restart is an immediate thing, but there could
be an arbitrarily long time between closing the browser and starting
it again, so users could be very surprised to see that their sessions
from X (hours, days) ago are still active. Also, how does this
interact with the "clear cookies and site data at browser exit"
checkbox? Are we just going to ignore it if reopen tabs is checked?
Bernhard.
>> On Wed, Nov 9, 2011 at 9:56 PM, Ben Goodger (Google) <b...@chromium.org>
>> wrote:
>>>
>>> We should make sure we're targeting the biggest problem that people are
>>> having with session restore before we make it more complicated by persisting
>>> more stuff: it's too slow.
>
> Indeed, we get dinged on this in public reviews sometimes. This is
> something worth spending time on (dunno what bugs are already on file).
> On Wed, Nov 9, 2011 at 1:09 PM, Jochen Eisinger <joc...@chromium.org> wrote:
>>
>> However, we plan to force restart chrome for critical updates, and e.g.
>> deleting browsing data on shutdown during such a forced restart will gives
>> us a bunch of very unhappy users, so I'd argue that it's also important to
>> tackle this problem.
>
> I agree that if we are going to force-restart Chrome, we should implement
> your proposed session restore changes first, even if we do it before
> improving the speed of session restore, as dataloss problems > slowdown
> problems.
> On Wed, Nov 9, 2011 at 3:00 PM, Nicolas Zea <z...@chromium.org> wrote:
>>
>> What about webkit data, e.g. filled in form information, scroll position,
>> etc.?
>
> A lot of this stuff is already persisted in the case where you "undo close
> tab". I don't know if it's dropped for session restore. If so, this would
> be a good candidate to not drop (but my random guess would be that we
> already restore as much as we can).
> PK
>
On Thu, Nov 10, 2011 at 00:07, Peter Kasting <pkas...@chromium.org> wrote:No please :) A browser restart is an immediate thing, but there could
> On Wed, Nov 9, 2011 at 12:24 PM, Jochen
> Eisinger <joc...@chromium.org> wrote:
>>
>> However, we could also do this when the user checked the option to reopen
>> the pages that were open last on start.
>
> Yes please!
be an arbitrarily long time between closing the browser and starting
it again, so users could be very surprised to see that their sessions
from X (hours, days) ago are still active.
Also, how does this
interact with the "clear cookies and site data at browser exit"
checkbox? Are we just going to ignore it if reopen tabs is checked?
A number of users have been surprised to find that Chrom{e,ium} no longer adheres to the longstanding convention that closing all browser windows clears session cookies when "Continue where I left off" is enabled.Any comments on the suggestion that restart-to-update be treated as a distinct case from closing all windows explicitly?
You just write an arrogant comment and then close the bug so nobody can say anything more.
I know this is an old discussion, but I just tripped over this feature for the first time today. Wasted one hour of my work day researching the "problem" with the client's website and left an upset Account Executive and I'm not sure the client is pleased in the end, either.
--
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Having read through all the posts and not seeing it mentioned anywhere, I wondered anybody has considered, and would it not be better design for "Continue where I left off", to only keep the session cookies that belong to the open tabs and not the session cookies for every site that has been visited which has set a session cookie? Is this not what the whole thing is about - only restoring the tabs that are open?
Is there anything that would prevent restoring only the open tabs' session cookies and not all session cookies being a better solution?