Commit Graph

788 Commits

Author SHA1 Message Date
Sebastian Kaspari 170fa9705e Update Kotlin and Jetpack Compose versions. 2021-10-25 17:59:17 +02:00
Mugurell d3df7369e0
CI for 21827 (#22004)
* Remove redundant calls to setHasOptionsMenu(false)

Fix memory leaks for credit card and login fragments

* Fixes:

Add link to issue tracker
Use activity?.invalidateOptionsMenu() instead of setHasOptionsMenu(false)
Move it inside of 'if' statement to avoid unintended issues when called improperly
Revert changes to AddLoginFragment.kt

* Fix call invocation to redirectToReAuth() from AddLoginFragment.kt
Fix 'when' statement in redirectToReAuth() to use AddLoginFragment

Co-authored-by: Vitaly V. Pinchuk <vetal.978@gmail.com>
2021-10-19 10:52:01 +00:00
Arturo Mejia 846aefc0f4 For #21723 Align the default value of the custom cookie setting with the UI 2021-10-19 00:40:55 +00:00
Grisha Kruglov 0b5b1a738a Do less work while navigating Logins views
Fetching a set of logins from the store is quite expensive. This commit
avoids doing that while navigating back and forth between the list and
detail views:

- retain processes logins state when navigating into detail view
- use the `get` storage api to obtain specific login, instead of
  `list().filter {...}`
- avoid re-sorting retained logins when navigating back into the list
  view
2021-10-14 17:34:20 +00:00
Grisha Kruglov 97d93eb564 Make linters happy 2021-10-14 17:34:20 +00:00
Ben Dean-Kawamura 34ec442961 Updating Fenix to work with the new logins API
Switched to always using `Login` instead of the `SavedPassword` alias.

Made `MasterPasswordTipProvider.saveLogins()` call
`importLoginsAsync()`.  This is needed because it's the only method that
inputs a `Login` rather than a `LoginEntry`.

Moved the `SavedLoginsStorageController.kt.syncAndUpdateList` call
to inside `add()` and `update()`.  This simplifies the error handling a
bit.

Refactored dupe-checking code to use findLoginToUpdate()

Refactored `AddLoginFragment` / `EditLoginFragment` to put the username
error handling code all in 1 method.  I think it's easier to follow the
logic of showing/hiding the error labels when it's all in one place.
This fixes issues #24103 and #24104.  I would love to address #24102,
but I'm not sure what the correct behavior is there so I just kept that
the same.
2021-10-14 17:34:20 +00:00
Arturo Mejia 9439a65e1e For #21838 wait until experiments have been completely opt-out on the nimbus SDK. 2021-10-12 19:31:35 -04:00
Noah Bond 1f97ca6ce6
For #21437 - Relocated Home-related settings to its dedicated sub screen (#21722)
* For #21437 - Relocated Home-related settings to its dedicated sub screen

* For #21437 - Updated show top sites toggle text

* PR: Fixed lint warning. Reverted preference keys

* PR: added ignore for UI test

* PR: Added ignore for UI test
2021-10-06 21:01:16 +00:00
Sebastian Kaspari 099e463b4f Issue #21102: Set compileSdkVersion to 31. 2021-10-06 17:30:08 +00:00
Arturo Mejia 2b363b9868 For #21618: Integrate Nimbus with MR2 Home Page to enable experimentation 2021-10-04 00:39:59 +00:00
Noah Bond aa28b6f142
For #21360 - Added toggle for search term tab groups (#21615)
* For #21360  - Added toggle for search term tab groups

* For #21360 - Lint cleanup

* PR: Added missing licenses and possibly fixed UI test

* PR: Added a "scrollTo" to potentially fix a UI test

* PR: Added potential fix for alwaysStartOnHomeTest

* PR: Added temporary ignore to alwaysStartOnHomeTest

* PR: added missing ignore comment

* For #21360 - Added missing feature flag driven visibility logic

Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-02 00:25:12 +00:00
Roger Yang 920376ee5b Close #21610: Update Strings for Tab Settings 2021-10-01 06:31:50 +00:00
Noah Bond 25d0696101
Inactive tabs changes (#21524)
* Issue mozilla-mobile#21319 - Moved inactive tabs to the top of the normal tabs tray.

* Issue mozilla-mobile#21319 - Added a delete icon to delete ALL inactive tabs.

* Issue mozilla-mobile#21319 - Changed default inactive time period to 14 days

* Issue mozilla-mobile#21319 - Hooked inactive tabs setting to UI code

Inactive tabs setting is also disabled when the user has selected the one day or week auto-close tab setting.

* Issue mozilla-mobile#21319 - File and Lint cleanup

* PR: Fixed bug causing grouped tabs to also show in "Other" when marked as inactive but inactive is OFF in Settings

* PR: Fixed lint warnings

* PR: Removed redundant feature check

* PR - Ignore test until search term tab groups switch is done
2021-09-30 19:01:31 +00:00
Mugurell e72b7f7cc8 For #21561 - Enable/Disable the feature from the customization menu 2021-09-29 19:55:26 +00:00
Arturo Mejia 3272de1364 For #21239 add telemetry for Allow users to customize their home screen 2021-09-21 15:55:03 -04:00
rxu e6395bff97 Add default topsite 58 for MozillaOnline builds 2021-09-16 19:42:54 +00:00
Arturo Mejia cbb8f808c1 For #18629: add support for SmartBlock exceptions 2021-09-13 21:26:47 +00:00
mcarare 70247e9456 For #6968: Use close instead of read to close the response stream. 2021-09-09 22:10:28 +00:00
Arturo Mejia d4a212f235 For #21095 allow users to configure their home screen. 2021-09-09 14:38:26 -04:00
Elise Richards 7d481a7836
For #19947: manually add login (#21199)
* [WIP] New Layout for adding login and 'add login' button in 'SavedLoginsListView' to launch it.
Fixed bindings.

* [WIP] Removed "reveal password" button

* [WIP] Added interactor for the add login screen

* [WIP] Trying to check for duplicates

* [WIP] Renaming "addNew..." with "add..."

* [WIP] Check for duplicates

* [WIP] Fixes after merge

* Cleaning up the layout and making edit text for hostname selectable

* Error handling on add login screen. Tests for interactors and controllers

Co-authored-by: Vitaly V. Pinchuk <vetal.978@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-09 16:30:33 +00:00
Arturo Mejia d288502840 For #20892 update connection panel strings 2021-09-08 22:20:00 +00:00
Roger Yang 5d22bb4707 Issue #18711: Telemetry for credit card autofill 2021-09-07 19:16:04 +00:00
Arturo Mejia 4357ebb8aa For 20892 Update connection icons in address bar 2021-09-02 23:52:55 +00:00
Gabriel Luong 9bd6d298f1 For #21078 - Remove unused creditCardsFeature feature flag 2021-08-31 20:10:53 +00:00
Elise Richards 19d8f58b47 Remove user specified search engine telemetry 2021-08-31 18:28:05 +00:00
Elise Richards 7653691d30 Remove private browsing shortcut telemetry 2021-08-31 18:28:05 +00:00
Elise Richards 87530ab9a4 Remove about page telemetry 2021-08-31 18:28:05 +00:00
Sebastian Kaspari 846274b7cd Enable Android Autofill support in all build types. 2021-08-30 18:20:22 +00:00
Arturo Mejia 37c26976ac For #20919 add confirm dialog when turning on/off experiments 2021-08-24 23:47:14 +00:00
Mugurell cb32b1437e For #17917 - Remove the `kotlin-android-extensions` plugin
This means no code will be generated by Kotlin Android Extensions for caching
views and also for @Parcelize annotated classes.

As recommended in the official documentation
https://developer.android.com/topic/libraries/view-binding/migration#gradle
we need to switch on using `kotlinx.parcelize.Parcelize` instead of
`import kotlinx.android.parcel.Parcelize`

For #17917 - Remove the `kotlin-android-extensions` plugin

This means no code will be generated by Kotlin Android Extensions for caching
views and also for @Parcelize annotated classes.

As recommended in the official documentation
https://developer.android.com/topic/libraries/view-binding/migration#gradle
we need to switch on using `kotlinx.parcelize.Parcelize` instead of
`import kotlinx.android.parcel.Parcelize`
2021-08-24 10:26:36 +00:00
Mugurell 621c388c12 For #17917 - Finish migrating all synthetics usages 2021-08-24 10:26:36 +00:00
Mugurell 6ae8c90f41 For #20586 - Basic Jetpack Compose implementation.
This is just the basic skeleton for the feature.
2021-08-23 14:38:06 +00:00
Arturo Mejia 4f163e18e7 For #20892 update connection icons in quick settings 2021-08-23 13:35:45 +00:00
Arturo Mejia ffad73d646 For #20919 quite the app when turning on/off experiments 2021-08-23 03:39:55 +00:00
Arturo Mejia d3019986a4 For #20919 quit the after removing a study. 2021-08-20 15:07:00 +00:00
codrut.topliceanu 34e063669a For #17917: Use View binding in Login Exceptions 2021-08-20 09:44:12 +00:00
Grisha Kruglov fc7a92bf10 Enable recording of history metadata for all builds
This allows recording part of history metadata to ride the trains.
The UI features are still guarded by the secret settings flag (or,
enabled on debug builds).
2021-08-19 23:07:06 +00:00
Arturo Mejia 8b4190a429 For #20890 when TP is off globally hide TP section on quick settings. 2021-08-19 22:36:25 +00:00
Arturo Mejia 512475df9e For #19886 integrate view binding. 2021-08-16 16:42:39 -04:00
Gabriel Luong d1b9744069 For #19886 - Add a back navigation to the Global Quick Settings from the Tracking Protection dialog 2021-08-16 16:42:39 -04:00
Arturo Mejia 34d99f89ac For #19886 - Improve quick setting dialogs navigation 2021-08-16 16:42:39 -04:00
Arturo Mejia 07bb1113f8 For #19886 - Add connection sub-menu. 2021-08-16 16:42:39 -04:00
Gabriel Luong 63368779df For #19886 - Add favicon to website info view
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2021-08-16 16:42:39 -04:00
Gabriel Luong 61dfb40339 For #19886 - Handle toggling tracking protection in quick settings 2021-08-16 16:42:39 -04:00
Gabriel Luong cad0e110dd For #19886 - Add navigation from quick settings to tracking protection panel 2021-08-16 16:42:39 -04:00
Arturo Mejia 22e9e067a1 For #20764 separate learn more string 2021-08-16 11:24:42 -04:00
Arturo Mejia eb490a898c Remove duplicated line in TabsSettingsFragment 2021-08-16 07:29:52 +00:00
Sebastian Kaspari 2b53df2ed4 Use theming in debug screen. 2021-08-16 07:03:29 +00:00
Jonathan Almeida 545a59ac97 Close #20792: Fix intermittent test failures in QuickSettingsFragmentReducerTest 2021-08-14 01:52:52 -04:00
Arturo Mejia 463728e007 For #20764 add screen for opting out of experiments 2021-08-11 16:14:13 -04:00