Commit Graph

4440 Commits

Author SHA1 Message Date
Sarah Khan 26c7562e62 For #23596 and #23309 - Add deeplink to wallpaper settings 2022-02-07 17:02:46 -05:00
Matt Tighe b7b601eee1 closes #23616: add final path separator to reote path 2022-02-07 19:59:59 +00:00
Arturo Mejia c90dcaa314 For #23577: Make description text on the wallpapers settings page align with the start of the switch 2022-02-07 15:01:28 +00:00
Roger Yang 1e90235dcc Close #10046: Add history search 2022-02-05 21:35:30 +00:00
Geordan Neukum 23036680c2 For #16395 - Use Secondary Text for the Site Permissions subtext 2022-02-05 20:10:25 +00:00
Arturo Mejia dc3a44d4f9 For #23574: Remove stale partial bitmaps created while downloading wallpapers 2022-02-04 23:47:48 +00:00
Gabriel Luong 1484f77bdb For #23575 - Use design system colors for the Pocket filter and Customize homepage buttons 2022-02-04 21:47:42 +00:00
Matt Tighe 9b9d08c7d1 closes #23565: expire remote wallpapers but let users keep selected 2022-02-04 17:31:40 +00:00
Arturo Mejia e290bc1bd6 For #23563: Address time out crash when downloading wallpaper 2022-02-04 02:08:11 +00:00
Gabriel Luong 6f2af25a60 For #23558 - Update menu copy for What's new and Customize homepage 2022-02-04 00:28:18 +00:00
Mugurell 0be470a104 For #21009 - New Recently closed tabs telemetry
This adds a new `recently_closed_tabs` category with then events for all user
interactions on the screen.

The already existent `events.recently_closed_tabs_opened` is still kept for a
bit more time to still have this data available while the new telemetry ride
the trains but can later be removed in favor of this newly added events.
2022-02-03 15:19:46 +00:00
Lucius C e73deb23ac
For #13336: Open bookmarks in current tab (#23169)
* For #13336: Open bookmarks in current tab

* For #13336: Fix tests to verify bookmark opening in current tab

* Change test name for handleBookmarkTapped
2022-02-03 04:58:41 +00:00
Matt Tighe 0837197d84 closes #23514: add firefox wallpapers 2022-02-02 19:27:09 +00:00
Arturo Mejia fdb2006c85 For #23498 add content description for wallpapers 2022-02-01 23:55:15 +00:00
Christian Sadilek 892e65f8e8 Issue #12731: Disable TrimMemoryMiddleware on all channels
This was already disabled in Nightly over two months ago
and seems to work much better combined with latest fixes
in GV (see links inline for details.)
2022-02-01 23:21:05 +00:00
Gabriel Luong 39c6067b03
For #23350 - Revert changes from removing duplicate icons that already exists in ui-icons (#23527)
* Revert "For #23121 - Override @color/mozac_ui_icons_fill with ?primaryText attribute"

This reverts commit 12347c9999.

* Revert "For #23121 - Replace @drawble/ic_share with @drawable/mozac_ic_share"

This reverts commit bbf6ce3f0c.

* Revert "For #23121 - Replace @drawble/ic_storage_enabled with @drawable/mozac_ic_storage"

This reverts commit 930c7bf3b3.

* Revert "For #23121 - Replace @drawble/ic_notifications_enabled with @drawable/mozac_ic_notification"

This reverts commit 9069b57c24.

* Revert "For #23121 - Replace @drawble/ic_microphone_enabled with @drawable/mozac_ic_microphone"

This reverts commit 53216f3f4a.

* Revert "For #23121 - Replace @drawble/ic_location_enabled with @drawable/mozac_ic_location"

This reverts commit 9ee9aafd87.

* Revert "For #23121 - Replace @drawble/ic_autoplay_disabled with @drawable/mozac_ic_autoplay_blocked"

This reverts commit b045a5e203.

* Revert "For #23121 - Replace @drawble/ic_camera_enabled with @drawable/mozac_ic_video"

This reverts commit 62842db131.

* Revert "For #23121 - Replace @drawble/mozac_ic_extensions_black with @drawable/mozac_ic_extensions"

This reverts commit c020a9da10.

* Revert "For #23121 - Replace @drawble/ic_top_sites with @drawable/mozac_ic_pin"

This reverts commit ca67b0a752.

* Revert "For #23121 - Replace @drawble/ic_search with @drawable/mozac_ic_search"

This reverts commit 02d9197945.

* Revert "For #23121 - Replace @drawble/ic_readermode with @drawable/mozac_ic_reader_mode"

This reverts commit cf8592c709.

* Revert "For #23121 - Replace @drawble/ic_menu with @drawable/mozac_ic_menu"

This reverts commit a1ac019024.

* Revert "For #23121 - Replace @drawble/ic_login with @drawable/mozac_ic_login"

This reverts commit 541c56b589.

* Revert "For #23121 - Replace @drawble/ic_internet with @drawable/mozac_ic_globe"

This reverts commit 4d8adce85e.

* Revert "For #23121 - Replace @drawble/ic_download with @drawable/mozac_ic_download"

This reverts commit ef026d3ec2.

* Revert "For #23121 - Replace @drawble/ic_lock with @drawable/mozac_ic_lock"

This reverts commit 18591d5dd8.

* Revert "For #23121 - Replace @drawble/ic_desktop with @drawable/mozac_ic_device_desktop"

This reverts commit ad33e3c1e1.

* Revert "For #23121 - Replace @drawble/ic_close with @drawable/mozac_ic_close"

This reverts commit a9f0fefac2.

* Revert "For #23121 - Replace @drawble/ic_delete with @drawable/mozac_ic_delete"

This reverts commit 33dc752ef2.

* Revert "For #23121 - Replace @drawble/ic_chevron_up with @drawable/mozac_ic_arrowhead_up"

This reverts commit 5bf937cfd3.

* Revert "For #23121 - Replace @drawble/ic_chevron_down with @drawable/mozac_ic_arrowhead_down"

This reverts commit 0fadd68112.

* Revert "For #23121 - Replace @drawble/ic_back_button with @drawable/mozac_ic_back"

This reverts commit bea766e785.

* Revert "For #23121 - Replace @drawable/ic_arrowhead_right with @drawable/mozac_ic_arrowhead_right"

This reverts commit 5a6f349ea8.

* Revert "For #23121 - Replace @drawable/ic_new with @drawable/mozac_ic_new"

This reverts commit ae38410106.

* Revert "For #23121 - Replace @drawable/ic_addons_extensions with @drawable/mozac_ic_extensions"

This reverts commit 9352946afc.
2022-02-01 22:15:31 +00:00
Matthew Tighe 9dc0506ec2
closes #23504: download focus wallpapers at runtime (#23505)
* closes #23504: download focus wallpapers at runtime

* address pr feedback

* only download wallpapers if feature flag is set
2022-02-01 21:45:55 +00:00
Gabriel Luong a14e6ddde3 For #23433 - Align the provided top sites to the design spec 2022-02-01 00:46:33 +00:00
Gabriel Luong 42ac6feb0c For #23424 - Part 2: Add context menu for contile top sites 2022-01-31 22:14:34 +00:00
Gabriel Luong 532bb9a38a For #23424 - Part 1: Refactor TopSiteItemMenu into its own file 2022-01-31 22:14:34 +00:00
Arturo Mejia 2533c91da5 For #23440,#23441,#23442 remove adapting themes after switching wallpapers 2022-01-31 21:06:06 +00:00
Gabriel Luong 62b10690f8 For #23450 - Add Text Accent Disabled design token 2022-01-28 20:23:17 +00:00
Gabriel Luong cc3c68c24b For #23450 - Rename design token Border Default to Border Primary 2022-01-28 20:23:17 +00:00
jhugman 82a6f8cae4
First use of Nimbus FML plugin (#23400)
* Consume Nimbus FML plugin

* Convert Homescreen to use FML

* Convert nimbusValidation to use FML

* Convert legacy experiments to use the feature API and FML

Remove dead helper code and documentation

* Fixup failing test

Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-28 12:48:05 +00:00
Gabriel Luong 6596f4c28b For #23432 - Use the imageUrl as the favicon for a provided top site 2022-01-27 20:58:30 +00:00
Arturo Mejia 393de99196 For #22851 Add logo animation for wallpapers 2022-01-27 00:28:12 +00:00
Matt Tighe d23fb30151 replace WallpaperFeatureDiscovered probe with WallpaperSettingsOpened 2022-01-26 23:50:56 +00:00
Matt Tighe a419a6963c add events based on feedback 2022-01-26 23:50:56 +00:00
Matt Tighe a5f540568e update based on PR feedback and data review 2022-01-26 23:50:56 +00:00
Matt Tighe eed42ee96b closes #23381: add telemetry for wallpapers feature 2022-01-26 23:50:56 +00:00
Gabriel Luong e5e7e6dbcf For #23409 - Specify fetchProvidedTopSites parameter for TopSitesConfig 2022-01-26 05:25:03 +00:00
Matt Tighe 670657b484 fixes #23404: add switch to wallpaper settings to disable tap-to-change 2022-01-25 23:34:25 +00:00
Gabriel Luong dff7c2813c For #23374 - Update Layer 1 and Layer 3 to match design system 2022-01-25 20:29:48 +00:00
Gabriel Luong 245fb03c6a For #23374 - Update description of Layer Accent 2022-01-25 20:29:48 +00:00
Gabriel Luong 0cc1346736 For #23374 - Add Text Action Primary, Secondary, Tertiary, Tertiary Active design tokens 2022-01-25 20:29:48 +00:00
Gabriel Luong ff2a65239e For #23374 - Update Text Inverted, Icon Inverted to Text On Color, Icon On Color 2022-01-25 20:29:48 +00:00
Gabriel Luong 5aa9daeede For #23374 - Add Action Quarternary design token 2022-01-25 20:29:48 +00:00
Gabriel Luong 3958b51685 For #23374 - Update Layer2 dark theme color to DarkGrey30 2022-01-25 20:29:48 +00:00
Gabriel Luong cc0515430b For #23374 - Add Dialog and Banner to Layer 2 description 2022-01-25 20:29:48 +00:00
Gabriel Luong b86c1fc5e7 For #23374 - Update Text Warning and Icon Warning colors to match design system 2022-01-25 20:29:48 +00:00
Gabriel Luong 169fc77256 For #23374 - Update Action Secondary colors and Add Action Tertiary 2022-01-25 20:29:48 +00:00
Gabriel Luong 27cec04f1a For #23374 - Update Border Disabled colors to match design system 2022-01-25 20:29:48 +00:00
Gabriel Luong bcc4d0bbc7 For #23374 - Update Icon Disabled colors to match design system 2022-01-25 20:29:48 +00:00
Gabriel Luong cf55261e13 For #23374 - Update Text Accent color to photonViolet20 2022-01-25 20:29:48 +00:00
Sarah541 ef5966cddd
For #22576 - Indicate mutability flag for PendingIntent
* For #22576 - Indicate mutability flag for PendingIntent

* Fix lint issues

* Make Analytics Pending Intent flag mutable

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-25 18:54:42 +00:00
Sammy Khamis 6f9e725ec5 add invalid URL error to show up when trying to save an invalid bookmark 2022-01-25 15:05:12 +00:00
Sammy Khamis 7d34fbb87d fix fenix crashing when trying to add an invalid bookmark 2022-01-25 15:05:12 +00:00
Mugurell 5c1953d792 For #22314 - Reuse existing tab for search group items 2022-01-25 14:23:36 +00:00
Arturo Mejia dc0f50b590 For #22851: Load wallpapers dynamically from the assets directory. 2022-01-23 23:03:07 +00:00
Sammy Khamis 088339c4de changes to fix up issues with places uniffication 2022-01-20 23:57:50 -08:00
Gabriel Luong bbf6ce3f0c For #23121 - Replace @drawble/ic_share with @drawable/mozac_ic_share 2022-01-21 00:29:08 +00:00
Gabriel Luong ca67b0a752 For #23121 - Replace @drawble/ic_top_sites with @drawable/mozac_ic_pin 2022-01-21 00:29:08 +00:00
Gabriel Luong 02d9197945 For #23121 - Replace @drawble/ic_search with @drawable/mozac_ic_search 2022-01-21 00:29:08 +00:00
Gabriel Luong cf8592c709 For #23121 - Replace @drawble/ic_readermode with @drawable/mozac_ic_reader_mode 2022-01-21 00:29:08 +00:00
Gabriel Luong 541c56b589 For #23121 - Replace @drawble/ic_login with @drawable/mozac_ic_login 2022-01-21 00:29:08 +00:00
Gabriel Luong ef026d3ec2 For #23121 - Replace @drawble/ic_download with @drawable/mozac_ic_download 2022-01-21 00:29:08 +00:00
Gabriel Luong 18591d5dd8 For #23121 - Replace @drawble/ic_lock with @drawable/mozac_ic_lock 2022-01-21 00:29:08 +00:00
Gabriel Luong ad33e3c1e1 For #23121 - Replace @drawble/ic_desktop with @drawable/mozac_ic_device_desktop 2022-01-21 00:29:08 +00:00
Gabriel Luong a9f0fefac2 For #23121 - Replace @drawble/ic_close with @drawable/mozac_ic_close 2022-01-21 00:29:08 +00:00
Gabriel Luong 33dc752ef2 For #23121 - Replace @drawble/ic_delete with @drawable/mozac_ic_delete 2022-01-21 00:29:08 +00:00
Gabriel Luong bea766e785 For #23121 - Replace @drawble/ic_back_button with @drawable/mozac_ic_back 2022-01-21 00:29:08 +00:00
Gabriel Luong ae38410106 For #23121 - Replace @drawable/ic_new with @drawable/mozac_ic_new 2022-01-21 00:29:08 +00:00
Gabriel Luong 9352946afc For #23121 - Replace @drawable/ic_addons_extensions with @drawable/mozac_ic_extensions 2022-01-21 00:29:08 +00:00
Roger Yang f8b0dd6e7e No issue: Remove showHistorySearchGroups feature flag 2022-01-20 18:39:14 +00:00
mcarare a6abaf7cf9 Set a minimum number of sites a search group should contain. 2022-01-20 07:38:42 +00:00
Gabriel Luong 70882179a0 For #23304 - Add a setting for enabling Contile 2022-01-20 00:18:11 +00:00
Noah Bond 157acdf7fc For #23159 - Created setting to turn off the Contile feature 2022-01-19 19:58:31 +00:00
Gabriel Luong ce6917a542 For #23293 - Add @color/fx_mobile_icon_color_primary_inactive and @color/fx_mobile_icon_color_active 2022-01-19 19:29:18 +00:00
mcarare 305b527b05 For #23256: Close quick settings sheet when displaying clear dialog. 2022-01-19 18:46:01 +00:00
mcarare 0496249fe4 For #23256: Pass navController instance instead of lambda. 2022-01-19 18:46:01 +00:00
Alexandru2909 811375275b For #23272 - AddLoginFragment use showKeyboard from Components 2022-01-19 14:46:09 +00:00
Gabriel Luong 268ba9b39d For #23266 - Update the tabs tray multi-select background color to @color/fx_mobile_layer_color_accent 2022-01-18 23:03:06 +00:00
Roger Yang 829c06ebe4 Close #23250: Remove duplicate sites within a time period in history 2022-01-18 22:17:10 +00:00
Gabriel Luong 26b65a2a23 For #22727 - Add Contile to Top Sites 2022-01-18 20:13:43 +00:00
mcarare 64a8932e3c For #22477: Ignore null and empty values for share data title. 2022-01-18 17:18:35 +00:00
Sarah Khan e9a4272e82 For #23138 - Close recently visited menu on orientation change 2022-01-18 16:43:31 +00:00
Matt Tighe dd4cf9164d closes #23220: show snackbar on wallpaper selection 2022-01-15 00:26:22 +00:00
Matt Tighe 0b99c2e67d fixes #22943: update androidx.lifecycle to 2.4.0 2022-01-14 17:04:44 -05:00
Gabriel Luong 2baa4efa8d For #23193 - Remove @color/toolbar_[start|center|end]-gradient_normal_theme redirection 2022-01-14 20:03:08 +00:00
Gabriel Luong 88ed50888d For #23187 - Replace @color/notification_accent_color_normal_theme with @color/fx_mobile_text_color_accent 2022-01-14 17:22:32 +00:00
Alexandru2909 cf83b3050b For #8108 - Add BrowserToolbar option to remove url from TopSites 2022-01-14 07:37:19 +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
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
Arturo Mejia 28928e4bdd For #23104: Don't adjust the theme for the default wallpaper. 2022-01-09 20:21:11 +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
Gabriel Luong 76fb147ed8 For #23076 - Clean up unneeded FeatureFlags 2022-01-06 06:53:17 +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
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
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
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
TasosB 05e6ba40b4 For #21483 - Remove light theme tinting of folder icon in the Bookmark view 2021-12-28 18:56:36 +00:00
rxu 2203ebf923 Pass distribution_id to Socorro crash report 2021-12-24 01:50:32 +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
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
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
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
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
Matt Tighe edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 2021-12-14 22:31:05 +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 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
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
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
MickeyMoz 07d43971c0 Update Android Components version to 97.0.20211208143435. 2021-12-09 11:41:37 +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
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
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 596072729d For #22701 - Replace whats_new_notification_color with fx_mobile_icon_color_notice color token 2021-12-06 21:46:44 +00:00
Sarah Khan e18cf36117 For #22495 - Disable inactive tabs survey 2021-12-06 18:43:28 +00:00
Noah Bond 73cfd0b145 For #22691 - Add Composables for Primary and Secondary text 2021-12-03 23:46:51 +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
Christian Sadilek 26713a58c8 Refactor: Move historymetadata classes in separate package 2021-12-02 22:28:58 +00:00
Roger Yang 3d33a9422c Close #20701: Dismiss keyboard when scrolling home screen 2021-12-01 23:56:46 +00:00
rxu 4d9a58c156 Add distribution_id into first session ping 2021-12-01 03:05:57 +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
Gabriel Luong 7c2d9bd8a8 For #22595 - Remove unused OnboardingAutomaticSignInViewHolder 2021-11-26 20:44:07 +00:00
Gabriel Luong 91da5318e3 For #22211 - Use Hero images for Recent Bookmarks 2021-11-25 20:35:55 +00:00
Arturo Mejia 3f86a5d6f9 Improve loading URLs 2021-11-25 14:26:21 -05: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
Gabriel Luong 749da13516 For #22250 - Convert Recent Bookmarks to Jetpack Compose 2021-11-24 19:10:48 +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
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
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
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
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
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
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
Grisha Kruglov 9a4a4713ac No issue: clean up code duplication in PagedHistoryProvider 2021-11-09 23:41:54 +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
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
Mugurell 953f6feb17 For #22155 - The inactiveTabsCount probe reports actualInactiveTabs number 2021-11-08 12:32:39 +00:00