Commit Graph

6162 Commits

Author SHA1 Message Date
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
Gabriel Luong
d0bb77fc2b For #21809 - Adjust the padding between the Pocket section 2021-10-08 20:37:56 +00:00
Jonathan Almeida
bcc40e8e46 Issue #21794: Reverse chevron for inactive tabs 2021-10-08 20:04:40 +00:00
MickeyMoz
1cbdb6e684 Update Android Components version to 95.0.20211008105820. 2021-10-08 14:17:27 +00:00
AndiAJ
2eae152beb Remove openNewTabAndEnterToBrowser() and replace it with enterURLAndEnterToBrowser() in the UI tests 2021-10-08 11:16:54 +00:00
AndiAJ
19c4186f0a Remove closeTabViaXButton() and replace it with closeTab() in the UI tests 2021-10-08 11:16:54 +00:00
AndiAJ
c9ca6f01b5 Fix for ambiguous mozac_browser_tabstray_close and with content description 2021-10-08 11:16:54 +00:00
AndiAJ
66ac309d40 Fix for ambiguous tabstray_title and with text 2021-10-08 11:16:54 +00:00
AndiAJ
8d7e5dd4b7 Fix for ambiguous tabstray_close 2021-10-08 11:16:54 +00:00
AndiAJ
681fc216ac Fix for ambiguous tab_item 2021-10-08 11:16:54 +00:00
codrut.topliceanu
6edd989152 For #20992 - Speculative fix for TopSitesPagerAdapter crash 2021-10-08 07:59:42 +00:00
Jonathan Almeida
74fd043290 Issue #21686: Move submitList calls into TabsAdapter
Co-authored-by: Roger Yang <royang@mozilla.com>
2021-10-08 05:36:48 +00:00
Noah Bond
8c1a64a5e8 For #21773 - Updated "customize homepage" button to go to the new Homepage submenu in Settings 2021-10-07 23:45:43 +00:00
Christian Sadilek
1b463a5c17 Enable pocket stories in CA 2021-10-07 21:57:56 +00:00
Arturo Mejia
3f9d277566 Prepare nimbus features default values for release 95 2021-10-07 20:44:44 +00:00