Bug 1807545 - Add new "Open in regular tab" feature.
commitb33b56a9cb8cb3fbbb1bacbb17580af343f58c11
authorMark Hammond <mhammond@skippinet.com.au>
Fri, 6 Oct 2023 13:50:40 +0000 (6 09:50 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 7 Nov 2023 20:06:10 +0000 (7 20:06 +0000)
tree785cbc6298e2dd26a44907104e95916d1da14b7c
parent3491ddceb1332d021bb7ef412de405a61afcafdb
Bug 1807545 - Add new "Open in regular tab" feature.

This feature allows a private tab to be reopened as a regular tab. The
feature is only enabled for users with the "Open links in a private tab"
option enabled - such users who follow links from external applications
will always have these tabs opened as private, so may wish to "opt-out"
of individual tabs being private.
Users without this option set will not have private tabs opened by
default, so have already opted-in to each private tab - thus, those users
are unlikely to benefit from this feature.

The feature is added to the main menu - however, as above, it will only
be visible when a private tab is open *and* "Open links in a private tab"
is enabled, so will only be seen by a minority of users.

The feature is also enabled only for Nightly while it is polished, but
the intention is that it eventually ride to release.
mobile/android/android-components/components/feature/tabs/src/main/java/mozilla/components/feature/tabs/TabsUseCases.kt
mobile/android/android-components/components/feature/tabs/src/test/java/mozilla/components/feature/tabs/TabsUseCasesTest.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarMenuController.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/DefaultToolbarMenu.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarMenu.kt
mobile/android/fenix/app/src/main/res/drawable/ic_open_in_regular_tab.xml [new file with mode: 0644]
mobile/android/fenix/app/src/main/res/values/strings.xml