Commit Graph

6176 Commits

Author SHA1 Message Date
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
Mozilla L10n Automation Bot
4743146ac4 Import l10n. 2021-10-19 01:25:27 +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
AndiAJ
9a3e94eb31 Improve tabsSettingsMenuItemsTest UI test coverage 2021-10-18 14:45:27 +00:00
Mozilla L10n Automation Bot
c56214453a Import l10n. 2021-10-18 00:37:31 +00:00
Mozilla L10n Automation Bot
91b719ed75 Import l10n. 2021-10-17 00:36:57 +00:00
Mozilla L10n Automation Bot
1c73fc8e20 Import l10n. 2021-10-16 00:34:46 +00:00
Roger Yang
60f7f766da Issue #21893: Keep search group when second to last search term tab is removed 2021-10-15 17:48:23 +00:00
Mozilla L10n Automation Bot
31a0d676ee Import l10n. 2021-10-15 00:35:47 +00:00
Christian Sadilek
c3ef16de61 Closes #21944: Top sites rendered slowly on first load of HomeFragment 2021-10-14 18:04:17 -04:00
Marc Leclair
8d5c6f6082 For #21700: linting fixes
For #21700: nit fixes
2021-10-14 21:03:05 +00:00
Marc Leclair
27cd609d0f For #21700: Added option to open in browser instead of automatically doing it 2021-10-14 21:03:05 +00:00
Marc Leclair
c5accf6b32 For #21700: fixed comments 2021-10-14 21:03:05 +00:00
Marc Leclair
c527decda1 For #21700: Created benchmark script runner and edited benchmark gradle file 2021-10-14 21:03:05 +00:00
Jonathan Almeida
625233f664 Close #21910: Fix intermittent failures in SelectTabUseCaseWrapperTest 2021-10-14 18:52:47 +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
cc247c407f Register the logins key provider
This is required for sync to work
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
25c784b684 For #21906 ⁃ Remove old copy form inactive tabs section 2021-10-14 16:01:59 +00:00
AndiAJ
db2946c78a Fix for ambiguous tabstray_title and with text matcher for audio page 2021-10-14 14:21:08 +00:00
AndiAJ
198f407dd2 For #21769 fix flaky tabMediaControlButtonTest Ui test 2021-10-14 14:21:08 +00:00
Jonathan Almeida
9780dac846 No issue: Always show Make inactive for debug builds 2021-10-14 07:52:39 +00:00
Gabriel Luong
e0991f0fe6 For #21887 - Update Home background color to LightGrey20 2021-10-14 03:40:40 +00:00
Roger Yang
4a8f01beea Close #21573: Add shadow to recent bookmarks section 2021-10-14 02:53:35 +00:00
Mozilla L10n Automation Bot
f4d026d906 Import l10n. 2021-10-14 00:38:56 +00:00
Roger Yang
2b92860966 Close #21917: Update pocket stories card elevation to match other cards 2021-10-13 22:53:56 +00:00
Jonathan Almeida
c554152fba Issue #21707: Correct search grouping logic in extensions
At this moment, we have two extension methods that have duplicate
functionality to construct search term groupings. One on `List<Tab>` and
one on `List<TabSessionState>`. The former is used for everything
related to tabs piped through the `TabsFeature` and the latter is for
consumers of `BrowserState` directly.

The bug occurs because our implementation of search groupings was
updated only on the former extension, but the `HeaderBinding`, that
observes the BrowserState and updates the title visibility, was using
the latter.

Ideally, we remove this duplication when we no longer have separate data
classes for consumers of `TabsFeature`, but this intermediary fix should
suffice.
2021-10-13 22:01:07 +00:00
Gabriel Luong
0b17b443dc For #21760 - Remove some unused resources 2021-10-13 20:42:49 +00:00
Grisha Kruglov
2967513083 Fix up HistoryMetadataController tests 2021-10-13 15:45:00 -04:00
Grisha Kruglov
233f0a8a1d Closes #21871 - Eagerly update UI state after search group removal
Before this patch, this was the behavior - 'remove' button is clicked, we'd ask
the storage to remove metadata (on its IO thread), then navigate to Home
Screen.

This resulted in a race we could end-up on the Home Screen before delete
finishes, so the search groups do not appear to be removed (but,
refreshing the Home Screen again shows that they are removed).

This also resulted in an unnecessary navigation which felt very janky
(screen will "scroll" to the top) and was way more work than necessary.

After this patch, we:
 - dispatch two actions (on browserstore, on homefragmentstore) which
   remove the search groups from any relevant in-memory state; any UI bound to
   this state will be automatically "refreshed"
 - no longer navigate as part of the remove action, so the UI doesn't
   move and removal happens "in-place"
2021-10-13 15:45:00 -04:00
Christian Sadilek
88fbcc05b7 Handle new OptimizedLoadUrlAction in history metadata middleware
Upgrades to A-C 95.0.20211013154351
2021-10-13 15:45:00 -04:00
Jonathan Almeida
722ab9f3ca Issue #21794: Remove rotation; rely on state activated
It seems like we no longer need to use rotation for the chevron, since
we are now using two different icons within the `ic_chevon` that change
depending on the `state_activated`.
2021-10-13 19:27:49 +00:00
sunil9211
05d0bca6a3 For #17393: Dead code removed around Delete downloads 2021-10-13 15:08:07 +00:00
AndiAJ
671dfa59c2 For #21540 fix and re-enable editCustomSearchEngineTest 2021-10-13 14:01:02 +00:00
Arturo Mejia
08256ac68c For #21791 Adds tab auto-close prompt 2021-10-13 12:08:59 +00:00
AndiAJ
58e12b18e6 Disable editCustomSearchEngineTest UI test 2021-10-13 06:37:00 +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
AndiAJ
979d99342b For #21620 fix for disabled toggleSearchSuggestions UI test 2021-10-12 16:06:09 +00:00
AndiAJ
64d010dcc8 For #19016 re-enable changeThemeSetting Ui test 2021-10-12 15:14:19 +00:00
Mugurell
e578226f7f For #21861 - Ignore the UnusedResources lint check for localized strings 2021-10-12 14:48:47 +00:00
AndiAJ
c3fdf35c6d For #21540 fix disabled editCustomSearchEngineTest 2021-10-12 14:23:33 +00:00
Oana Horvath
e3266ca6e0 For #21006 & #21005: fixed ETP status info display 2021-10-12 06:26:44 +00:00
Elise Richards
4bd140a0f5 For #21522: Wrap section titles on home 2021-10-09 04:16:40 +00:00
Elise Richards
7e12bd3238 For #21313: Renew fission metrics expiring in December 2021-10-09 03:42:00 +00:00
Roger Yang
4ad494075a Issue #21686: Stop using internally stored tabs list in adapters 2021-10-09 02:43:26 +00:00
Mugurell
abcc9dfc67 For #21806 - Set 1dp elevation for ListItemTabLarge
To get smaller shadows.
2021-10-08 23:22:44 +00:00
Mugurell
79a4873843 For #21733 - Simplify test to not depend on store updates. 2021-10-08 18:45:30 -04:00
Mugurell
4d5bd9eca4 For #21733 - Replace mock of an interface with mock of a fake. 2021-10-08 18:45:30 -04:00
Christian Sadilek
4cd67eaef5 Issue #21437: Fix default of start_on_home setting in UI 2021-10-08 18:33:55 -04:00