-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
1020: SR max_undo* & 1022: SR after crash : make inactive or remove #575
Comments
OK, I did some playing around. In my main FF rather than a new profile, so it was a bit messy. And the combinations of prefs can quickly escalate. Additionally, it often took two or three open/closes to get things consistent, due to when things get triggered. one: You control the persistent local storage of SR thru the above pref. If this is set to true, then ALL data in Doing it manually ( Notes : Once you have SR working (don't clear history on close, and in my case my startup was to resume sessions), you end up with a two: Disabling history does not stop recovery files. They are still recorded and SR as startup still works. The first time my FF just opened as normal (on a blank page), but after opening a couple of websites etc, it then seemed to behave. Like I said in the top paragraph, it might take several goes to get consistency. three: Not tested and I don't think it really matters. But max history |
It seems @earthlng was the one who initially suggested adding
It is true that this is not related to privacy or security, but it is useful (for that, at least). How about moving it to |
my mistake for typing |
and my mistake for not paying more attention. But mine is justified because I'm a foreign cat. (yeah, right) |
something that's not stored cannot be restored. The 2 prefs control the number of closed tabs/windows to STORE.
AFAIK open tabs/windows are always stored (at least temporarily) except in PB-only mode. If you set the 2 prefs to 0 then the recorded info gets removed when you close a tab/window.
|
good idea to add it to 0103. |
I can't wrap my head around this right now "The 2 prefs control the number of closed tabs/windows to STORE" - well that's clear, because it's an undo function.
Yup, got that
OK, that's starting to make more sense to me. In which case it won't impact SR at all (not the restoring open tabs/windows). Maybe it cleans up some history. I will do a test. If it does exactly that, then the prefs are useful, even for those who use session restore, against some persistent local data.
Jesus Christ I need a break. More fucking typos, in OP and elsewhere .. it's 2803 (my bad) Good thinking, also In the PR open at the moment I also did a change to 2805
|
actually it's a bit different for windows, it will always keep the info for the last closed window. That's why you can restore the last closed 2nd window even if the pref is set to 0 |
OK, so I've been having a play. Never been interested in SR. Something twigged when E said closed, and TBH, it's right in the godamn pref names (undo). By playing around, I getting to know this little beast a bit better. It seems like all "undo history" is kept in recovery.jsonlz4 (seems like a logical place to keep it). This is not the same as history itself. And as discussed earlier, sanitizing history & downloads includes the whole SR: (recovery, backup recovery, old files). That makes sense. Tests for FF: nilla 65.0b2 test tabs (single window)
now change max_tabs_undo to 0
test tabs (two windows)
I did not bother to test this by setting max_tabs_undo to zero. It would clearly just not record a So...
|
I am beginning to think that these prefs belong under section 0800>history. These are history items, they just happen to be kept in SR. |
I had a really good play with this setting. And I am 99.99% sure that the trigger to write to the recovery file is tab activity only. It just happens that each tab is assigned a window as a parent, and split into open and closed. Setting max_windows_undo to 0 doesn't affect the entries written to in the recovery file at all. note the [SETUP-CHROME] part of 1020: when tested a long time ago, these could NOT affect the recently closed windows, which now makes sense given that only tab activity dictates what is recorded. schema is something like this
This means Recently Closed Windows history is fully available (as long as there was an open tab in the window when closed - that sounds naff, but see my point on how I managed to kill a zombie window), There's some logic going on, that if the tab is the homepage or newtab, then it doesn't consider it session recoverable. Something like that. The pref only controls how many windows to restore. I don't know what the code does exactly (eg 1=1 window, 2=2 windows, and 0 is treated as 1 because 1 is the bare minimum). So to me, these prefs are different
If you want to confirm it. Open a zilla profile etc, enable SR on start, etc. Set max_windows_undo to 0, open 3 windows, with a website in each. Close two windows. Recovery will still have all three windows info in there.
It just depends on how we want to categorize it. Disabling history does not affect session restore. History (places sqlite?) is your actual history, whereas SR is being used for restoring and a set number of undo actions. But SR by its very definition is full of parts of your history (hence why it also gets cleansed when sanitizing). |
0800 is already pretty long. We could just change the header of 1000 to |
I'm not fussed on where it goes TBH, but I think we could remove max_windows. This allows us to properly explain max_tabs edit: and just like the naming convention they used, it really is part of "restoring" shit (and MRU stuff has to have a record). It's a different "history" thing altogether. History in 800 (is it places sqlite?) is more about number of visits, frecency, dates/times, top sites, etc. So yeah, it can stay where it is. Good thinking 馃憤 |
modified OP on what to do |
IDK WTF is wrong with me the last few days. Why did I reference adding info to 0103 when it's 0102. That's the third one I've done in this issue - grabbing the subsequent number for some reason. |
I don't think we need to add any extra info to resume from crash. Big E said it can be handy if resume from crash keeps crashing (eg a non-lazy-loaded tab is the cause and you're stuck in groundhog day). So rather than remove it, I'll just make it inactive. |
馃敽 Suggestions
1020
- remove max_windows1020
- fix up the remaining pref, max_tabs to properly say what it does1022
resume from cash inactive or remove it0102
2803/2804
(that clearing history clears SR)0102
馃敽 ToDo:
recovery.jasonlz4
- done, it has no effect AFAICTThe text was updated successfully, but these errors were encountered: