Commit Graph

6844 Commits

Author SHA1 Message Date
Alexandru2909
a34711c444 For #20524 - Remove redundant coroutine dispatchers from tests 2022-01-14 08:53:46 +00:00
Alexandru2909
cf83b3050b For #8108 - Add BrowserToolbar option to remove url from TopSites 2022-01-14 07:37:19 +00:00
Mozilla L10n Automation Bot
16d9866024 Import l10n. 2022-01-14 00:32:56 +00:00
Matthew Tighe
ce1c4093fa
closes #22831: add wallpaper settings screen (#23145)
* closes #22831: add wallpaper settings screen

* address PR and UX feedback

* rebase upstream and adjust settings correctly
2022-01-13 23:30:13 +00:00
Arturo Mejia
d1ace92e64 Revert "For #22851: Add logo animation for wallpapers."
This reverts commit d089f007
2022-01-13 22:17:55 +00:00
Arturo Mejia
d089f00793 For #22851: Add logo animation for wallpapers. 2022-01-13 20:11:37 +00:00
Arturo Mejia
2bba66fb58 For #23144 Address regression in COLD start 2022-01-13 19:43:41 +00:00
Gabriel Luong
29127f9690 For #16152 - Add a dark theme for the tabs tray grid view 2022-01-13 19:13:22 +00:00
mcarare
afd13fec85 For #21744: Replace InputMethodManager's deprecated toggleSoftInput. 2022-01-13 11:23:45 +00:00
mcarare
58a6fafabc For #22383: Propagate ViewTreeLifecycleOwner to composable view holders. 2022-01-13 10:53:28 +00:00
Roger Yang
047ec890b2 Closes #22550: Refactor search term tab grouping logic to rely on middleware 2022-01-13 03:32:12 +00:00
Grigory Kruglov
d161e46383 Adjust logins diffing logic for recyclerview 2022-01-12 12:45:53 -08:00
Grigory Kruglov
e67753fb4b Scroll to top of logins screen after list changes 2022-01-12 12:45:53 -08:00
Grigory Kruglov
1b305c1398 For #22795: Stop trimming login origins on sorting
Due to the async nature (??) of the trimming code, this is causing severe performance issues
during search.

Looking back through commits, doesn't seem like there's a particularly good reason we were trimming here. All I could find is #9986 (comment) which is lacking explanation of why this is actually useful.

And currently, we're dealing with an origin (not a full url when this was initially written, I think), i.e. https://accounts.firefox.com vs https://accounts.firefox.com/signin. So, the suffix stripping isn't even doing much beyond removing com in vast majority of cases.

So, seems like all of this trimming stuff can be cleaned up.
2022-01-12 12:45:53 -08:00
Mozilla L10n Automation Bot
375837c977 Import l10n. 2022-01-12 01:30:02 +00:00
mcarare
2577e07aff For #22559: Update leak canary version to 2.8.1 2022-01-11 23:38:04 +00:00
Gabriel Luong
e668c5afc1 For #23128 - Remove @color/mozac_widget_favicon_border_dark_theme redirection 2022-01-11 20:04:49 +00:00
Gabriel Luong
6fbca6de91 For #23128 - Remove @color/mozac_widget_favicon_background_dark_theme redirection 2022-01-11 20:04:49 +00:00
Gabriel Luong
4fcdc46d2a For #23128 - Remove @color/mozac_widget_favicon_border_light_theme redirection 2022-01-11 20:04:49 +00:00
Gabriel Luong
52edfeed8a For #23128 - Remove @color/mozac_widget_favicon_background_light_theme redirection 2022-01-11 20:04:49 +00:00
Gabriel Luong
9d0307cad6 For #23128 - Remove @color/mozac_widget_favicon_[background|border]_private_theme redirection 2022-01-11 20:04:49 +00:00
Gabriel Luong
df2e8c885e For #23156 - Remove all unused strings marked moz:removedIn <= 95 2022-01-11 19:38:52 +00:00
Brais Gabín
7ec31a25c4 For #23142 - Fix license formatting in tests 2022-01-11 18:32:06 +00:00
Mozilla L10n Automation Bot
622a4f57d0 Import l10n. 2022-01-11 00:43:09 +00:00
Elise Richards
703e8c6558 For #22869: Data review for renewing january metrics 2022-01-10 17:05:49 +00:00
Elise Richards
08087abaf1 For #22869: Renew metrics expiring in January 2022-01-10 17:05:49 +00:00
Mozilla L10n Automation Bot
39a211c1cd Import l10n. 2022-01-10 00:33:03 +00:00
Arturo Mejia
28928e4bdd For #23104: Don't adjust the theme for the default wallpaper. 2022-01-09 20:21:11 +00:00
Mozilla L10n Automation Bot
0563bf38b2 Import l10n. 2022-01-08 00:45:48 +00:00
Gabriel Luong
9fea89ca19 For #22675 - Replace collection color icon variables with the icon design color tokens 2022-01-07 19:14:49 +00:00
Alexandru2909
7b04eba324 For #19567 - Change SavedLogins and LoginDetail fragments to extend SecureFragment 2022-01-07 09:42:21 +00:00
Gabriel Luong
873d8257d1 For #23086 - Add Border Inverted design token 2022-01-07 09:18:24 +00:00
Gabriel Luong
a39224e44b For #23086 - Change design token name from Border Selected to Border Accent 2022-01-07 09:18:24 +00:00
Gabriel Luong
2ad2691724 For #23086 - Update Border Divider to Border Default 2022-01-07 09:18:24 +00:00
Gabriel Luong
fc9310dc83 For #23086 - Rename design token name from Border Default to Border Form Default 2022-01-07 09:18:24 +00:00
Gabriel Luong
11e0df20df For #23086 - Update the dark theme colors of Action Primary to Violet60
- Updates the description of Action Primary to include "Chip selected"
2022-01-07 09:18:24 +00:00
Gabriel Luong
65b84c10bc For #23086 - Update the dark theme Action Secondary color to DarkGrey10 2022-01-07 09:18:24 +00:00
Gabriel Luong
1b7918f6d0 For #23086 - Change the light theme color for Form Selected, Form On, Icon Button, Layer Accent, Border Selected to Ink20 2022-01-07 09:18:24 +00:00
mcarare
5d1e2f0099 For #22577: Update work manager version to 2.7.1 2022-01-07 08:09:06 +00:00
Mozilla L10n Automation Bot
d727206255 Import l10n. 2022-01-07 07:06:24 +00:00
Gabriel Luong
27336c2368 For #22975 - Replace aboutLink attribute with Text Accent color token 2022-01-06 18:43:35 +00:00
Gabriel Luong
76fb147ed8 For #23076 - Clean up unneeded FeatureFlags 2022-01-06 06:53:17 +00:00
Mozilla L10n Automation Bot
c335adcfb6 Import l10n. 2022-01-06 00:35:56 +00:00
Gabriel Luong
44e1cb4b60 For #23071 - Replace @color/tab_tray_selected_mask_normal_theme with @color/fx_mobile_layer_color_accent_nonopaque 2022-01-05 23:49:43 +00:00
MickeyMoz
96b96fbfdb Update Android Components version to 97.0.20220104190053. 2022-01-05 19:02:55 +00:00
Arturo Mejia
09fdee6510 For #22851: Adjust theme based on the selected wallpaper. 2022-01-05 17:55:02 +00:00
Mozilla L10n Automation Bot
32bf020b7c Import l10n. 2022-01-05 01:23:18 +00:00
Gabriel Luong
ddc806e8bc For #22978 - Replace @color/foundation_normal_theme with @color/fx_mobile_layer_color_1 2022-01-05 00:39:36 +00:00
Gabriel Luong
7c12e9c970 For #23049 - Update the color for @color/fx_mobile_layer_color_accent_nonopaque 2022-01-05 00:04:18 +00:00
Gabriel Luong
f863864c50 For #23049 - Update the colors of @color/fx_mobile_action_color_primary 2022-01-05 00:04:18 +00:00
Gabriel Luong
986a57d40b For #23049 - Consolidate @color/fx_mobile_text_color_accent with @color/fx_mobile_text_color_action
- Removes @color/fx_mobile_text_color_action
- Use the colors from @color/fx_mobile_text_color_action in @color/fx_mobile_text_color_accent
2022-01-05 00:04:18 +00:00
Arturo Mejia
277e94881b For #22995: Address crash when switching languages. 2022-01-04 21:13:00 +00:00
Aaron Train
8edd3f9fa1
No issue: Try out RetryTestRule in SmokeTest UI test class (#22868)
* Add RetryTestRule to SmokeTest UI tests

* fix: newline in RetryTestRule.kt

fix: switch off generic Throwable

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-04 20:17:02 +00:00
mcarare
cdbe7983f5 For #22879: Filter default engines when sending telemetry.
Filter out custom engines that are not well known search domains.
2022-01-04 10:29:16 +00:00
Gabriel Luong
8a5020123f For #23017 - Ignore ExtraTranslation in our lint-baseline 2022-01-04 01:28:30 +00:00
Mozilla L10n Automation Bot
d9711497dc Import l10n. 2022-01-04 00:37:13 +00:00
Mozilla L10n Automation Bot
9c10f7abb6 Import l10n. 2022-01-03 00:49:41 +00:00
Mozilla L10n Automation Bot
c91be63240 Import l10n. 2022-01-02 00:36:35 +00:00
Mozilla L10n Automation Bot
4d0203c60c Import l10n. 2022-01-01 00:34:53 +00:00
Mozilla L10n Automation Bot
e7d64d886e Import l10n. 2021-12-31 00:40:16 +00:00
mike a
46b5dd2706 Closes #10737: Searching a language/saved password displays a misplaced "x".
Setting max width for the search view in language settings and saved logins screens. Removed SyncAuthClosed event from LocaleSettingsFragment, an apparent copy-paste.
2021-12-30 05:37:58 +00:00
Mozilla L10n Automation Bot
acc21f9f7f Import l10n. 2021-12-30 00:38:58 +00:00
Gabriel Luong
c8e2fd3847 For #22973 - Remove @color/contrast_text_light_theme redirection 2021-12-28 20:06:05 +00:00
Gabriel Luong
794823c5ec For #22983 - Remove @color/destructive_button_text_color redirection 2021-12-28 19:37:21 +00:00
TasosB
05e6ba40b4 For #21483 - Remove light theme tinting of folder icon in the Bookmark view 2021-12-28 18:56:36 +00:00
TasosB
54ffe7db03 For #21483 - Use primaryText attribute for download icons fill color 2021-12-28 18:56:36 +00:00
Gabriel Luong
4078bf7863 For #22971 - Remove @color/above_dark_theme redirection 2021-12-28 16:47:59 +00:00
Mozilla L10n Automation Bot
716e1194a0 Import l10n. 2021-12-28 00:35:39 +00:00
Mozilla L10n Automation Bot
fa377bf0d6 Import l10n. 2021-12-27 00:35:38 +00:00
Mozilla L10n Automation Bot
ec9cf0338e Import l10n. 2021-12-25 00:37:17 +00:00
rxu
2203ebf923 Pass distribution_id to Socorro crash report 2021-12-24 01:50:32 +00:00
Mozilla L10n Automation Bot
00d18125b2 Import l10n. 2021-12-24 00:44:51 +00:00
Gabriel Luong
c50073f7e4 For #22965 - Add Form On, Form Off, Indicator Active, Indicator Inactive color tokens 2021-12-23 21:46:57 +00:00
Gabriel Luong
3ffece2b87 For #22965 - Remove Control Active color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
38c55dbbc0 For #22965 - Update description of Layer Accent color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
a7e78a19d0 For #22965 - Update description of Text Inverted color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
c9cb55cf3f For #22965 - Remove Control Dark design color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
945dde72e3 For #22965 - Rename Action Disabled to Form Disabled for the design color tokens 2021-12-23 21:46:57 +00:00
Gabriel Luong
97c42ca84e For #22965 - Update Control to Form Surface design colors 2021-12-23 21:46:57 +00:00
Gabriel Luong
5bea4554ad For #22965 - Add Form Selected design color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
c9bc38d67c For #22965 - Update Action Teritary to Form Default design colors 2021-12-23 21:46:57 +00:00
Gabriel Luong
1cf91a2ef4 For #22965 - Change Pill button to Chip for Action Secondary design color token description 2021-12-23 21:46:57 +00:00
Gabriel Luong
16bf150fb9 For #22965 - Remove Toolbar background from the description of Layer 3 design color token 2021-12-23 21:46:57 +00:00
Roger Yang
0b0f69ab4e Closes #22754: Customize home button should work on fresh install 2021-12-23 20:34:10 +00:00
Arturo Mejia
27def6fd0c For #22851: Optimize wallpaper testing images. 2021-12-23 10:24:32 +00:00
Roger Yang
b9b2bc3c7d Issue #22561: Fix tab group titles colour when in private mode 2021-12-22 22:48:57 +00:00
mcarare
03f1aa3d8b For #22415: Remove element type from content descriptions.
Adding the type to content description is not advised according to a11y guidelines.
2021-12-22 22:23:37 +00:00
Gabriel Luong
dc576a2ad7 Revert "For #22777 - Replace about_link_normal_theme with fx_mobile_text_color_action"
This reverts commit 986a48b1db.
2021-12-22 14:43:10 -05:00
mavduevskiy
89f5e96d73
For #18160: Show a prompt when trying to leave private browsing with active downloads (#22912)
Co-authored-by: mike a <mavduevskiy@gmail.com>
2021-12-22 00:12:44 -08:00
Mozilla L10n Automation Bot
105a2e5fc6 Import l10n. 2021-12-22 00:34:24 +00:00
Grisha Kruglov
5bbfd49e1d Refactor History types to eliminate nullability
This introduces a separate HistoryDB type at the PagedHistoryProvider
layer, that doesn't need to deal with positions. Positioning logic in
HistoryDataSource becomes a type conversion between the new type and an
existing History type that UI and ItemKeyedDataSource API is written against.

With this refactor, we entirely eliminate nullability from these types.
2021-12-21 19:54:18 +00:00
Grisha Kruglov
836ff1151b Closes #22764: Convert History.id to an Int position
We were converting Long timestamps into Ints (and getting negative
numbers back), and treating that as, basically, a position for the
paging API; the paging API would pass us back the obscure negative
number back as an offset, and we'll mishandle it resulting in an
infinite loop.

This patch removes all of the Long -> Int conversions, and introduces an
explicit 'position' that is calculated once we have a full page of
results completed.
2021-12-21 19:54:18 +00:00
Mugurell
34c0a17b4d For #22852 - Add a new "Storage access" permission 2021-12-21 17:45:19 +00:00
Arturo Mejia
cf31bc408a For #22931 Only enable wallpapers on normal mode 2021-12-21 09:49:12 -05:00
mcarare
00280d3b65 For #20513: Use UrlMetricType for search engine submission url. 2021-12-21 11:25:00 +00:00
Roger Yang
22bcdeafe0 Closes #22736: Do not remove focus from toolbar when scrolling 2021-12-20 20:38:04 +00:00
Arturo Mejia
7a44412619 For #22851 toggle wallpapers when tap on the Firefox logo 2021-12-20 15:53:44 +00:00
rxu
073fd89390 Add default topsite MeiTuan for MozillaOnline builds 2021-12-20 01:42:41 +00:00
Mozilla L10n Automation Bot
ee34b07ecc Import l10n. 2021-12-20 00:39:20 +00:00
Mozilla L10n Automation Bot
606f2eb100 Import l10n. 2021-12-19 00:32:51 +00:00
Mozilla L10n Automation Bot
dd64d92b12 Import l10n. 2021-12-18 00:36:17 +00:00
Matt Tighe
db71d8dfe7 fixes #22889: add bottom spacer to onboarding adapter 2021-12-17 22:31:18 +00:00
Mugurell
eb2ec677ca For #22508 - Increase menu height to avoid it become scrollable
Compose enforces a DropdownMenuItem having at least a 64dp height
(48 dp height + 8dp vertical padding) so we need to ensure the parent
doesn't hardcode a smaller height.
2021-12-17 17:38:22 +00:00
Roger Yang
26198330e9 Closes #22671: Show correct time groups header in history 2021-12-17 16:32:56 +00:00
mcarare
bbf0ccca54 For #22450: Replace quit icon with AC one. 2021-12-16 09:00:25 +00:00
Mozilla L10n Automation Bot
1c34db22f4 Import l10n. 2021-12-16 00:46:56 +00:00
Grisha Kruglov
33af7d8729 Fix breaking change in KeyProvider
`key` was renamed to `getOrGenerateKey` and is now a `suspend`.
2021-12-15 22:57:06 +00:00
Grisha Kruglov
8de4c0b4db For #22569: Remove allopen plugin and Mockable annotations 2021-12-15 12:59:57 +00:00
rxu
b41542dc5e Modify strings for Privacy notice for MozillaOnline builds 2021-12-15 02:54:14 +00:00
Mozilla L10n Automation Bot
b96dda5c89 Import l10n. 2021-12-15 00:42:58 +00:00
Gabriel Luong
9e647fd821 For #22858 - Set all @color/tab_tray_item_media_stroke usages to @color/photonWhite 2021-12-14 23:38:53 +00:00
Matt Tighe
edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 2021-12-14 22:31:05 +00:00
Gabriel Luong
59a17894f2 For #22842 - Use gradient color tokens for Reader mode gradient 2021-12-14 21:53:28 +00:00
Gabriel Luong
2c22622edb For #22836 - Replace primary_text_private_theme with fx_mobile_private_text_color_primary color token 2021-12-14 19:30:00 +00:00
Noah Bond
8ca1a7e271 For #22832 - Added parameters to base Text composables 2021-12-14 18:59:09 +00:00
Arturo Mejia
0ac2899570 For #22851 add wallpapers feature flag 2021-12-14 18:20:43 +00:00
Gabriel Luong
cd83cfdda7 For #22839 - Remove unused tabTrayHeadingIcon and tabTrayHeadingIconInactive attributes 2021-12-14 17:07:43 +00:00
Gabriel Luong
07828aa979 For #22839 - Remove @color/tab_tray_heading_icon_inactive_dark_theme redirection 2021-12-14 17:07:43 +00:00
Gabriel Luong
d45c092f11 For #22839 - Remove @color/tab_tray_heading_icon_dark_theme redirection 2021-12-14 17:07:43 +00:00
Mozilla L10n Automation Bot
6669363ed9 Import l10n. 2021-12-14 10:23:24 +00:00
Gabriel Luong
b8bc14c0ff For #22808 - Add private theme design tokens 2021-12-13 20:05:38 +00:00
Gabriel Luong
da0cb197ac For #22809 - Use the design tokens for the Scrim Start/End colors 2021-12-13 17:13:24 +00:00
Gabriel Luong
d457050da2 For #22812 - Remove unused shadow attribute 2021-12-13 16:46:07 +00:00
Gabriel Luong
9dd3f58241 For #22800 - Remove unused tabTrayToolbarBackground attribute 2021-12-13 16:12:23 +00:00
Gabriel Luong
8fee873d40 For #22800 - Remove unused tabTrayItemSelectedBackground attribute 2021-12-13 16:12:23 +00:00
Gabriel Luong
0a9590cb23 For #22800 - Remove unused tabTrayItemBackground attribute 2021-12-13 16:12:23 +00:00
Mozilla L10n Automation Bot
f7d0c2831a Import l10n. 2021-12-13 00:35:55 +00:00
Mozilla L10n Automation Bot
6cfe332e18 Import l10n. 2021-12-12 00:33:02 +00:00
Gabriel Luong
41fd47fc06 For #22793 - Update the colors for Scrim Start/End design tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
35454ec674 For #22793 - Swap the colors for Gradient Start/End design tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
29fc9c4ea5 For #22793 - Add Icon Gradient Start/End color tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
543f2000af For #22793 - Rename fx_mobile_icon_color_notice color token to fx_mobile_icon_color_information 2021-12-11 01:51:26 +00:00
Matt Tighe
fee26e62a8 Fixes #22688: remove inactive_tabs_recently_closed probe 2021-12-10 23:20:26 +00:00
Gabriel Luong
986a48b1db For #22777 - Replace about_link_normal_theme with fx_mobile_text_color_action 2021-12-10 17:31:52 +00:00
Gabriel Luong
d6091c9ea4 For #22779 - Remove @color/inset_light_theme redirection 2021-12-10 15:53:50 +00:00
mcarare
b4bf7abfb3 For #22784: Show collection snackbar only if fragment is still attached. 2021-12-10 15:09:04 +00:00
mcarare
0cb4059b12 For #17130: Replace hardcoded strings with string resources. 2021-12-10 14:44:39 +00:00
Mozilla L10n Automation Bot
3058f52578 Import l10n. 2021-12-10 02:12:25 +00:00
aime Soriano Pastor
9bfc94b793 For #9294: Add option to clear current site data in quick settings dialog. 2021-12-09 23:08:08 +00:00
Gabriel Luong
e150f6118b For #22694 - Remove primary_text_dark_theme usage 2021-12-09 21:13:35 +00:00
MickeyMoz
07d43971c0 Update Android Components version to 97.0.20211208143435. 2021-12-09 11:41:37 +00:00
Mozilla L10n Automation Bot
c3cf4ae9e0 Import l10n. 2021-12-09 00:36:22 +00:00
Jonathan Almeida
01ba8959ce Issue #22757: Check the parent cast to AbstractBrowserTrayList first
We re-use the same ViewHolders in search term groups, so when we need to
cast to a AbstractBrowserTrayList for tab reordering, we need to check
our parent correctly first.
2021-12-08 23:54:46 +00:00
Christian Sadilek
6637f61088
Support tab movement/reordering (#22751)
* Adds basic support for tab reordering via drag-and-drop selected tabs

* ktlint/detekt formatting

* Use defaultTabsFilter (now not private) instead of getter

* Convert from position+filter API to target+placeAfter
Unfortunately I still need the filter passed around a bit

* Handle inactive tabs' holder being children of the RecyclerView of the normal tabs
Don't go through LayoutManager needlessly

* Non-working use tabID the whole way. Does not compile.

* Fix to do direct tab ID and use grid setting directly

* Remove non-null assertion. Now fully works for "other" tabs.

* Prevent grouped tabs from being dragged

* Remove unused import

* Add/fix comments

* Do API version check and use deprecated startDrag if too old.

* Build process fails: both outdated and too new, so reverting to just too new

* Use deprecated function and suppress warning

* fix space

* Suppress "TooManyFunctions" on DefaultTabsTrayController

* Repeatedly update tab movement during drag

* Remove multi-tab movement, only allow dragging if tab groups disabled, fix tab positioning during movement
I'm forced to suppress LongParameterList to get the settings information where it needs to go though

* Remove settings argument and corresponding long args suppression: instead get settings from parent AbstractBrowserTrayList's context

* New UI: Select a tab and then, while holding down, start dragging

* Revert to using before/after boolean to accomodate delays
Move drag transparency to start of drag

* Use new BlankDragShadowBuilder and DraggableItemAnimator to handle tab movement

* Replace Pair<>s with data classes

* Only drag if exactly 1 tab selected, don't consume drag event if not used

* Auto-scroll tab tray while dragging near top/bottom edge

* Remove unexpected scrolling on tab bind (triggered when tab is selected)

* Fix broken scroll behavior during dragging

* Cleanup for ktlint/detekt

* Constantly set elevation during drag in case of update
Clean code at drag start

* Add custom drag start behavior

* Add drag distance constant, do all touch-drag behavior in OnTouchListener

* Disable parent vertical scrolling on drag start, fix detekt ComplexCondition

* Minor cleanup/comments

* Revert removal of scroll on bind, this was related to something different

* Correction to prepareForDrop to match documentation- doesn't seem to have any effect

* Simplify via unchecked typecast, use ViewCompat

* Use ViewConfiguration.scaledTouchSlop instead of arbitrary 30px

* Added tabReorderingFeature flag, split drag interactor to separate function to satisfy complexity requirement

Co-authored-by: Steven Knipe <ssk97@case.edu>
Co-authored-by: ssk97 <knipesteven@gmail.com>
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2021-12-08 16:36:49 +00:00
Christian Sadilek
f919e97445 Closes #21759: Do not render home fragment when launching to tab
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2021-12-08 10:51:06 +00:00
Mozilla L10n Automation Bot
910a425cc3 Import l10n. 2021-12-08 01:36:35 +00:00
Gabriel Luong
378f19eb59 For #22741 - Remove all unused strings marked moz:removedIn <= 94 2021-12-07 23:02:57 +00:00
Christian Sadilek
229c410437 Introduce timeout for capturing thumbnail in BrowserAnimator 2021-12-07 22:28:44 +00:00
Christian Sadilek
ae0dba29b1 Prevent flash when navigating to home 2021-12-07 22:28:44 +00:00
Christian Sadilek
28222df29c Fix BrowserRobot.goToHomescreen to wait for home screen to be rendered
It was previously just waiting for the application to be idle, which
is not a reliable check in case the navigation to home is triggered
on completion of an async operation i.e., the app / main thread may
be idle, but the navigation to home hasn't completed yet.

goToHomeScreen further needs to wait for the browser fragment's
home button to exist before clicking it.
2021-12-07 22:28:44 +00:00
Mugurell
604f188970 For #22445 - Improve the scrolling behavior for Recently visited
One important issue was that the items are smaller that the width of the
screen and so a bit of the next column would be showing also and user could
interact with this only peaking items and a long press would open a dropdown
menu with no place to anchor it.
To mitigate this:
- the items will now snap to the next position when scrolling so that we'll
always show at least one column in it's entirety.
- menus are enabled only if more than half of the item is visible effectively
disabling clicks on that peaking area of neighbour columns.

This patch also updates the divider for history groups which previously wasn't
showing.
2021-12-07 16:23:55 +00:00
Gabriel Luong
67fb033f1b For #22729 - Tag unused strings for removal 2021-12-07 15:38:15 +00:00
Andrei Joltan
ee9eab0d8c
[UI Smoke Tests] New undoDeleteBookmarkFolderTest UI test and Improve coverage for deleteNonEmptyBookmarkFolderTest UI test (#22587)
* New undoDeleteBookmarkFolderTest smoke UI test

* Improve coverage for deleteNonEmptyBookmarkFolderTest UI smoke test

Co-authored-by: AndiAJ <andiaj@users.noreply.github.com>
2021-12-07 13:54:05 +00:00
Mozilla L10n Automation Bot
e6d1c9a564 Import l10n. 2021-12-07 01:04:32 +00:00
Gabriel Luong
6a28296be7 For #22702 - Replace home_show_all_button_text with fx_mobile_text_color_action color token 2021-12-07 00:36:29 +00:00
Gabriel Luong
bf96e2ae60 For #22725 - Regenerate lint-baselint.xml 2021-12-06 23:53:08 +00:00
Gabriel Luong
596072729d For #22701 - Replace whats_new_notification_color with fx_mobile_icon_color_notice color token 2021-12-06 21:46:44 +00:00
Gabriel Luong
a4894256f9 For #22712 - Remove unused menuCategoryText attribute 2021-12-06 20:56:43 +00:00
Gabriel Luong
81c42ca7ee For #22696 - Remove unused tab_header.xml resource 2021-12-06 20:16:43 +00:00
Gabriel Luong
83fdf78da1 For #22708 - Remove unused syncedTabsSeparator attribute 2021-12-06 19:37:52 +00:00
Sarah Khan
e18cf36117 For #22495 - Disable inactive tabs survey 2021-12-06 18:43:28 +00:00
Gabriel Luong
2c5cfb2447 For #22698 - Remove unused mozac_browser_menu_item_switch.xml resource 2021-12-06 13:37:32 +00:00
Mozilla L10n Automation Bot
c27714a314 Import l10n. 2021-12-06 00:43:07 +00:00
Mozilla L10n Automation Bot
2a5a2d7b6e Import l10n. 2021-12-05 00:38:09 +00:00
Mozilla L10n Automation Bot
1d5f7db7c7 Import l10n. 2021-12-04 00:31:57 +00:00
Noah Bond
73cfd0b145 For #22691 - Add Composables for Primary and Secondary text 2021-12-03 23:46:51 +00:00
Gabriel Luong
0078d7fe01 For #22676 - Replace top_site_title_text with fx_mobile_text_color_primary color token 2021-12-03 18:33:48 +00:00
Oana Horvath
b1dab8170c For #21002: Add testETPOffGlobally UI smoke test 2021-12-03 15:17:47 +00:00
Gabriel Luong
4fe3d6db02 For #22654 - Add new color tokens provided by the design systems to colors.xml 2021-12-03 03:34:11 +00:00
Gabriel Luong
e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 2021-12-03 03:34:11 +00:00
Mozilla L10n Automation Bot
caea82864d Import l10n. 2021-12-03 00:35:55 +00:00
Noah Bond
31e86842dd
For #22516 - Fixed alignment of "Show all" buttons on the homescreen (#22650)
* For #22516 - Fixed show all button alignment with section headers on the Homepage

* For #22516 - Added correct content description back in for recently visited show all button

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-02 23:00:33 +00:00
Christian Sadilek
26713a58c8 Refactor: Move historymetadata classes in separate package 2021-12-02 22:28:58 +00:00
AndiAJ
cb48ff7882 Refactor recently closed tabs UI smoke tests 2021-12-02 19:44:16 +00:00
AndiAJ
f6caf507fd Move verifyRecentlyClosedTabsListTest UI test from SmokeTest class 2021-12-02 19:44:16 +00:00
AndiAJ
0ac7bc80ab Disable failing verifyUndoSnackBarTest UI test 2021-12-02 16:15:20 +00:00
Sebastian Kaspari
b04eeccf14 Android Autofill: Enable keyboard inline autofill suggestions 2021-12-02 11:43:52 +00:00
Roger Yang
3d33a9422c Close #20701: Dismiss keyboard when scrolling home screen 2021-12-01 23:56:46 +00:00
Mozilla L10n Automation Bot
9fa9ae3375 Import l10n. 2021-12-01 03:35:53 +00:00
rxu
4d9a58c156 Add distribution_id into first session ping 2021-12-01 03:05:57 +00:00
Mozilla L10n Automation Bot
514f41fe67 Import l10n. 2021-11-30 23:21:51 +00:00
Gabriel Luong
3c82a34aa1 For #22592 - Refactor hideOnboardingIfNeeded() calls when the home menu items are tapped 2021-11-30 22:48:25 +00:00
Mugurell
5c3fedd707
For #22534 - Show history highlights and groups in "Recently visited" (#22535)
* For #22534 - Update homescreen section name to "Recently visited"

* For #22534 - Show both history highlights and groups in Recently visited

For now the metadata groups don't support scoring so as an interim solution we
will show up to 9 items, evenly distributes, first favoring groups sorted by
date then history highlights pre-sorted by default.

Tapping a history highlight will switch to it's already open tab if available
or create a new one in which to load it if needed.

A "Remove" option will also be available for history highlights to remove it
from the screen and also from history.
Currently removing a group / highlight will not query new ones to again show up
to 9 items, this will be implemented separately.

* For #22534 - Rename and refactor historymetadata to recentvisits

The updated feature supports more than history metadata so updating the overall
naming scheme seems needed.
To signal that this is a homescreen feature the entire package is moved to home

* For #22534 - Update UI tests to account for the new items space on the screen

Saw failures about not finding the collection section on screen.
This is probably happening because w are now adding the recent visits to
homescreen above the collections section pushing it off screen.

Since the collections might be obstructed by the toolbar shown on top as a
quick solution we'll scroll to the next homescreen section so that the
collections will be shown above in their entirety.

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-29 20:12:52 +00:00
Noah Bond
de1c6b0dae
Tab group count telemetry (#22479)
* For #22410 - Refactored tab sorter metrics into a middleware

* For #22410 - Created distribution metric for tab group sizes

* For #22410 - Created tests for tabs tray middleware

* For #22410 - Merge fixes

* For #22410 - Added PR number to metric

* For #22410 - Fixed unit tests post merge. Added waitUntilIdle to new tests.

* For #22410 - Added missing line to middleware to have the Store process actions

* For #22410 - Updated metric expiration to December

* For #22410 - PR Feedback

* For #22410 - Removed else from middleware when
2021-11-29 18:16:57 +00:00
Mozilla L10n Automation Bot
6003e16076 Import l10n. 2021-11-29 00:45:55 +00:00
Mozilla L10n Automation Bot
cfac710754 Import l10n. 2021-11-27 00:46:13 +00:00
Gabriel Luong
7c2d9bd8a8 For #22595 - Remove unused OnboardingAutomaticSignInViewHolder 2021-11-26 20:44:07 +00:00
Sebastian Kaspari
1bcf37ba7c Closes #22552: Optimize PNGs with ImageOptim 2021-11-26 12:44:54 +00:00
Gabriel Luong
91da5318e3 For #22211 - Use Hero images for Recent Bookmarks 2021-11-25 20:35:55 +00:00
Arturo Mejia
a49f80d5e8 Update Android Components version to 96.0.20211125162700. 2021-11-25 14:26:21 -05:00
Arturo Mejia
3f86a5d6f9 Improve loading URLs 2021-11-25 14:26:21 -05:00
Sebastian Kaspari
a6d5d21e0b Issue #22580: Track APK size in perfherder 2021-11-25 16:48:49 +00:00
Sebastian Kaspari
e341109ced Issue #12731: Disable suspending of engine sessions under memory pressure in Nightly 2021-11-25 14:44:04 +00:00
Mugurell
548efefcbb For #22442 - Don't display individual tab if part of the Jump back in tabs group
We'll show as a recent tab the next most recent tab not part of the last active
search group.
2021-11-25 09:16:15 +00:00
Mugurell
685da115c9 For #22442 - Don't display history group if already in Jump back in 2021-11-25 09:16:15 +00:00
AndiAJ
45f1666c6f New text search UI smoke tests 2021-11-25 08:38:27 +00:00
Mugurell
779f4fc704 For #22502 - Keep the previous string resource until safe to remove
See https://github.com/mozilla-mobile/fenix/issues/20871
2021-11-25 08:07:12 +00:00
Matt Tighe
5003c14e7e Closes #22321: Add temporary protoc version workaround for M1 Macbooks 2021-11-25 00:59:13 +00:00
Gabriel Luong
dc15ee2415 For #22488 - Fix intermittent test failure with InactiveTabsControllerTest 2021-11-24 19:49:45 +00:00
Gabriel Luong
749da13516 For #22250 - Convert Recent Bookmarks to Jetpack Compose 2021-11-24 19:10:48 +00:00
AndiAJ
c9303f44b4 Improve expand/collapse collection UI test coverage 2021-11-24 18:37:25 +00:00
AndiAJ
5934c7d6b2 Improve collection deletion UI coverage 2021-11-24 18:37:25 +00:00
Grisha Kruglov
413ff7cd85 Closes #22499: Emit search group disband action on history group removal
This is needed to prevent removed search groups from coming back after
user interacts with the tab. E.g. if we don't fire this action, upon
interaction with the tab after a corresponding search group was removed
we will end up creating metadat with the deleted 'searchTerms' (they'll
be read from the 'historyMetadata' state on the tab).

At this point we probably want to start encapsulating all of this in a
use case - let's do that separately in
https://github.com/mozilla-mobile/android-components/issues/11309, and
just fix the bug for now.
2021-11-24 17:52:59 +00:00
Oana Horvath
aff3e4b9dd For #21002: improves the share tabs smoke tests coverage 2021-11-24 15:01:54 +00:00
Mozilla L10n Automation Bot
de30610aa6 Import l10n. 2021-11-23 22:32:50 +00:00
Arturo Mejia
7b7ef2e661 For issue #22537 crash: BookmarkFragment is attached to a context 2021-11-23 21:53:47 +00:00
Arturo Mejia
74406bef59 For issue #5298 the same page appears in the History section multiple times 2021-11-22 14:18:42 -05:00
Mugurell
888bbc770e For #22502 - Update "Jump back in" group's subtitle format 2021-11-22 07:50:35 +00:00
Mozilla L10n Automation Bot
396c51d569 Import l10n. 2021-11-21 00:37:05 +00:00
Mozilla L10n Automation Bot
708b78d3a0 Import l10n. 2021-11-20 15:35:23 +00:00
AndiAJ
378ac03e30 Improve privateTabsTrayWithOpenedTabTest UI test coverage 2021-11-19 16:34:21 +00:00
AndiAJ
ec31faef7a Improve verifyOpenTabDetails UI test coverage 2021-11-19 16:34:21 +00:00
AndiAJ
4261ca7ea6 Refactor and improve coverage for empty tabs tray UI tests 2021-11-19 16:34:21 +00:00
Mozilla L10n Automation Bot
f0a3653d7b Import l10n. 2021-11-19 00:51:12 +00:00
Grisha Kruglov
63154a18f9 Closes #22484 - Track direct loads per tab; fix search term lookup
This patch fixes two problems:
1) We were treating "direct tab load" as an event which applies
   uniformally to all tabs, even though it's actually an event which
   happens for a specific tab. This lead to background tabs (pages opened as new tab)
   setting the direct load flag, and then a simultaneously loading
   parent tab would incorrectly interpret that flag for itself.

   The patch switches this tracking from a simple boolean (are we direct
   loading?) to a set of tab IDs that are currently direct loading.

2) In a case when a background tab was loading with a parent who's
   search terms were cleared by a direct load, we were not trying to
   lookup search terms on the background tab's historyMetadata key,
   which exists to capture search terms for this exact scenario.

   The patch adds an additional fallback lookup for that path.
2021-11-18 15:52:01 +00:00
Oana Horvath
4892f0ddbe For #21002: add missing steps to selectSearchEnginesShortcutTest, addPredefinedSearchEngineTest 2021-11-18 15:08:00 +00:00
Grisha Kruglov
77672dfa15 Post: move group removal logic into PagedHistoryProvider
This moves the group removal logic to the place where the groups are
actually formed. This helps clean-up the fragment code a bit, and
removes the awkward 'allow mutate some random internal state' API from
the provider.
2021-11-17 16:48:25 -05:00
Grisha Kruglov
45d4807bfe Closes #22472: Filter out redirects from History search groups 2021-11-17 16:48:25 -05:00
AndiAJ
2c9efac286 Improve mainMenuAddToHomeScreenTest UI test coverage 2021-11-17 18:29:02 +00:00
AndiAJ
e265da0cb4 startOnLastTab UI smoke test 2021-11-17 15:33:31 +00:00
AndiAJ
4ff64ad7ca recentBookmarksOption UI smoke test 2021-11-17 15:33:31 +00:00
AndiAJ
eee83c9cbd jumpBackInOption UI smoke test 2021-11-17 15:33:31 +00:00
AndiAJ
7460461e16 startOnHomepageTest refactoring work 2021-11-17 15:33:31 +00:00
Mozilla L10n Automation Bot
364fecf9d4 Import l10n. 2021-11-17 02:12:26 +00:00
Christian Sadilek
8c88561d4b Update lastAccess timestamp of selected tab when launching to home 2021-11-17 01:04:22 +00:00
Roger Yang
24e4452cb5 Close #22402: Add top placeholder for home 2021-11-16 23:05:45 +00:00
Noah Bond
dde916038d
MR2 Telemetry: Homescreen view count (#22377)
* For #22146 - Added counter for home screen views

* For #22146 - Added PR number to metrics

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-16 22:30:48 +00:00
Mugurell
d4a6facd81 For #22155 - Store inactive tabs count telemetry when user opens tabs tray
Setting this value in FenixApplication.onCreate was buggy because of a race
with restoring BrowserState.
Setting it here would ensure a better granularity of the events and so to more
accurate reporting.
2021-11-16 21:04:16 +00:00
Mugurell
17865bdf66 For #22147 - New search term groups telemetry 2021-11-16 16:40:07 +00:00
AndiAJ
f91285881d Improve homeThreeDotMenuItemsTest UI test coverage 2021-11-16 13:44:32 +00:00
Mozilla L10n Automation Bot
f466d65256 Import l10n. 2021-11-16 01:33:06 +00:00
Arturo Mejia
94a543a403 For #22271 Improve URL accessing from the clipboard for Android 12 and above. 2021-11-15 15:24:52 +00:00
Mugurell
c42ccb4966 For #22388 - Update content description of the delete button 2021-11-15 08:00:20 +00:00
Mozilla L10n Automation Bot
abcafa55f0 Import l10n. 2021-11-14 00:44:24 +00:00
Mozilla L10n Automation Bot
d29fd55c8b Import l10n. 2021-11-12 00:31:53 +00:00
Oana Horvath
ba91180e85 No issue: creates new SmokeTest annotation.
Updates smoke tests list according to the ones in TestRail.
2021-11-11 09:30:50 +00:00
Mozilla L10n Automation Bot
b0ad98a204 Import l10n. 2021-11-11 00:48:58 +00:00
Noah Bond
811f255b71
MR2 Telemetry: Opening screen preference (#22333)
* For #22145 - Added telemetry to the opening screen preference.

* For #22145 - Added PR number to metric

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-10 20:13:40 +00:00
Noah Bond
2e5555d034
MR2 telemetry - Inactive tabs CFR (#22301)
* For #22298 - Added telemetry to inactive tabs CFR

* For #22298 - added PR issue number to metrics

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-10 19:47:21 +00:00
Jonathan Almeida
e3b6e00331 Close #22223: Move to the selected page when switching modes 2021-11-10 18:25:44 +00:00
Mozilla L10n Automation Bot
210587b735 Import l10n. 2021-11-10 00:32:32 +00:00
Grisha Kruglov
9a4a4713ac No issue: clean up code duplication in PagedHistoryProvider 2021-11-09 23:41:54 +00:00
AndiAJ
1ade096145 For #22256 re-enable editCustomSearchEngineTest UI test 2021-11-09 17:23:31 +00:00
Ben Dean-Kawamura
df953b0021 Make findDuplicate() suspend
findLoginToUpdate() should be suspend, but I didn't get mark it that way
on the initial logins work.  Let's make this one suspend, then I can
update findLoginToUpdate() in a-c.
2021-11-09 15:59:33 +00:00
Mozilla L10n Automation Bot
e52000bb20 Import l10n. 2021-11-09 00:41:29 +00:00
Jonathan Almeida
8ced675817 No issue: Correct TabsTrayAction naming 2021-11-08 22:28:31 +00:00
Jonathan Almeida
08b15689b1 Close #22305: Use TabsTrayStore for populating adapters 2021-11-08 22:28:31 +00:00
Jonathan Almeida
f16300392d Close #22305: Add tab state into the TabsTrayStore 2021-11-08 22:28:31 +00:00
Michael Comella
c026d8b28a For #21084: put git hash on About screen in release builds. 2021-11-08 19:15:16 +00:00
AndiAJ
f4e7547190 Improve verifyEmptyTabTray Ui test coverage 2021-11-08 16:08:28 +00:00