Skip to content
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

Private windows recreation fixes #1554

Merged
merged 6 commits into from
Aug 16, 2019
Merged

Conversation

keianhzo
Copy link
Collaborator

@keianhzo keianhzo commented Aug 9, 2019

Fixes #1544, Fixes #1545 and Fixes #1561 Also fixes the curved mode being activated after adding a second window if disabled and private sessions not being hidden after restoring and showing on top of the regular windows. Also cherry picked a SessionStack refactor from other of my PRs to get rid of an intermediate structure that can be avoided that also fixes some bugs when handling sessions inside the session stack.

Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabling curved mode with more than one window is intentional and and was PR #1541

@keianhzo
Copy link
Collaborator Author

@bluemarvin Totally missed that, I've reverted it although I have to say that without being aware it totally felt like a bug to me.

@bluemarvin
Copy link
Contributor

I only knew about because I reviewed it. 😅 It isn’t what would expect either.

@bluemarvin
Copy link
Contributor

This still isn't working for me. STR (easiest to repro with NoAPI):

  1. launch FxR
  2. switch to Private Browsing
  3. Press Overview button
  4. Swipe to kill FxR
  5. Relaunch FxR

Results:
Private browsing window is not present.

Expected:
Private browsing window should be visible.

@keianhzo
Copy link
Collaborator Author

keianhzo commented Aug 14, 2019

@bluemarvin Makes sense that happens in noapi killing the app. The recent apps button triggers the onPause state but not onStop. I've moved the save state call to onPause, that should solve the issue. I've also added a fix for the ButtonPrompt that was affecting the way actions where handled for the performance monitor dialog.

@bluemarvin
Copy link
Contributor

@keianhzo I can still recreate the issue where switching to private mode and then swipe closing FxR in NoAPI. To be clear I see this on headsets too, it's just easier to reproduce with NoAPI.

@bluemarvin
Copy link
Contributor

From an offline discussion it was noted that the private browsing session are being saved and restored and it was agreed this is probably not the desired behavior. It was agreed to wait to land this PR until that issue was addressed.

@keianhzo
Copy link
Collaborator Author

@bluemarvin should work as expected now.

Copy link
Contributor

@bluemarvin bluemarvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My only nit is that if you open two private browsing windows, when FxR restores, it restores two private windows, I think I would prefer it go back to one, but that is more a personal preference than anything. @jvonitter is this the expected behavior or should we address in a follow up?

@bluemarvin bluemarvin merged commit 0881c56 into master Aug 16, 2019
@bluemarvin bluemarvin deleted the private-browsing-recreate branch August 16, 2019 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants