-
Notifications
You must be signed in to change notification settings - Fork 1.3k
4780 switch off private mode #5614
4780 switch off private mode #5614
Conversation
5962096
to
f8e50c1
Compare
Codecov Report
@@ Coverage Diff @@
## master #5614 +/- ##
============================================
+ Coverage 14.46% 14.46% +<.01%
- Complexity 322 325 +3
============================================
Files 255 255
Lines 10490 10517 +27
Branches 1526 1536 +10
============================================
+ Hits 1517 1521 +4
- Misses 8851 8873 +22
- Partials 122 123 +1
Continue to review full report at Codecov.
|
d2b8481
to
a8246e5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun maybeClearPrivateMode(settings: Settings = settings()) { | ||
// This needs to be called before the theme is set. No BrowsingModeManager is available | ||
// at this point, which is why this is set directly | ||
if (!settings.alwaysOpenInPrivateMode) settings.usePrivateMode = false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alwaysOpenInPrivateMode
is actually a misleading variable name. I'm submitting a patch right now to change it, but currently it controls "launch links in a private tab."
I don't think we actually want to stop the user from opening in normal mode because of this pref.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To clarify, there are two flows here. Flow 1 (working as expected)STR:
Expected:
Actual:
Flow 2 (failing)STR:
Expected:
Actual:
I'm working on a fix |
It looks like the application is not being destroyed if the app is force killed while a private tab is opened. Checked by running Seems to be related to the private tab notification. I commented out this notification, and the app was killed as expected. |
When the app launches do not launch in Private Mode in order to prevent usage leaks to other users of the device.
a8246e5
to
b3ba7b3
Compare
b3ba7b3
to
112410e
Compare
@sblatz: @ boek suggested storing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now 😄
Pull Request checklist
Doesn't change the UI
After merge
To download an APK when reviewing a PR: