-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix session being persisted even when disabled #17211
Conversation
Can you make sure this works properly in the multi-window case? 2 windows 2 tabs cases:
|
Closes this PR? haha |
@DHowett When you say "this works" what do you mean: That it persists or that it doesn't persist? If it's the latter, then yes this will work, because |
I expect the top two cases to NOT persist, and the bottom case to persist two windows. |
Oh I get what you mean now. So, the difference is
I'll test it but I think this should be helpful for understanding how it works. 😅 |
Alright, I hope I tested it properly, but it seemed to work correctly. |
This fixes 2 bugs: * `PersistState` being called when the window is closed (as opposed to closing the tab). The settings check was missing. * Session cleanup running depending on whether the feature is currently enabled as opposed to whether it was enabled on launch. Closes #17206 Closes #17207 ## Validation Steps Performed * Create a bunch of leftover buffer_*.txt files by running the current Dev version off of main * Build this branch, then open and close a window * All buffer_*.txt are gone and state.json is cleaned up ✅ (cherry picked from commit dbac3a1) Service-Card-Id: 92515454 Service-Version: 1.21
This fixes 2 bugs:
PersistState
being called when the window is closed(as opposed to closing the tab). The settings check was missing.
currently enabled as opposed to whether it was enabled on launch.
Closes #17206
Closes #17207
Validation Steps Performed
the current Dev version off of main