[tbb-commits] [Git][tpo/applications/firefox-android][firefox-android-115.2.1-13.0-1] fixup! Disable features and functionality

Dan Ballard (@dan) git at gitlab.torproject.org
Thu Sep 28 16:44:06 UTC 2023



Dan Ballard pushed to branch firefox-android-115.2.1-13.0-1 at The Tor Project / Applications / firefox-android


Commits:
ed46ed61 by Dan Ballard at 2023-09-28T16:42:56+00:00
fixup! Disable features and functionality

Bug 42114: Disable Sharing URL from Recent Screen in Private Browsing mode

- - - - -


1 changed file:

- fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt


Changes:

=====================================
fenix/app/src/main/java/org/mozilla/fenix/HomeActivity.kt
=====================================
@@ -560,7 +560,9 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
     override fun onProvideAssistContent(outContent: AssistContent?) {
         super.onProvideAssistContent(outContent)
         val currentTabUrl = components.core.store.state.selectedTab?.content?.url
-        outContent?.webUri = currentTabUrl?.let { Uri.parse(it) }
+        if (components.core.store.state.selectedTab?.content?.private == false) {
+            outContent?.webUri = currentTabUrl?.let { Uri.parse(it) }
+        }
     }
 
     private fun getBookmarkCount(node: BookmarkNode): Int {



View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/ed46ed61eb7f715a518a45d90479fd928a56a196

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/firefox-android/-/commit/ed46ed61eb7f715a518a45d90479fd928a56a196
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230928/940ad81b/attachment.htm>


More information about the tbb-commits mailing list