Move PrivateBrowsingLockFeature initialization to the HomeActivity
Categories
(Firefox for Android :: Privacy, task)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: jonalmeida, Assigned: jonalmeida)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
The PrivateBrowsingLockFeature is meant to live the lifetime of the host activity (HomeActivity) which is where it is also initialized, but we keep it in Components.kt which makes the feature live the lifetime of the application.
Lets move the initialization code to where it currently happens to avoid side-effects of instances living longer than they should.
| Assignee | ||
Comment 1•11 months ago
|
||
The PrivateBrowsingLockFeature lives longer that the activity it is
attached too, so lets keep the scope the same.
Added a PrivateBrowsingLockUseCases to follow our use case patterns
that replaces the onSuccessfulAuthentication which doesn't need to be
coupled together since it only dispatches to the AppStore.
| Assignee | ||
Comment 2•11 months ago
|
||
The PrivateBrowsingLockFeature lives longer that the activity it is
attached too, so lets keep the scope the same.
Added a PrivateBrowsingLockUseCases to follow our use case patterns
that replaces the onSuccessfulAuthentication which doesn't need to be
coupled together since it only dispatches to the AppStore.
| Assignee | ||
Comment 3•11 months ago
|
||
Updated•11 months ago
|
| Assignee | ||
Comment 4•11 months ago
|
||
Now that we aren't using the application instance of the feature to hold
our state, we should read the AppStore value during init similar to our
persisted feature enabled flag.
We don't really need to check whether there are private tabs AND
isPrivateScreenLocked because private tabs are never persisted, but I
left that original logic in there because it doesn't seem to hurt to
have it.
Comment 6•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/7f6b6ba39c8e
https://hg.mozilla.org/mozilla-central/rev/e3e1d1b06d94
https://hg.mozilla.org/mozilla-central/rev/5d50e131c5a8
Description
•