Commit Graph

1469 Commits

Author SHA1 Message Date
jhugman
2b36ca75bf Add defaults to FML, add control behaviour 2022-04-01 16:13:39 +00:00
Alexandru2909
480ab3dca7 For #24454 - Remove Event.wrapper for SyncAccount metrics 2022-04-01 12:40:06 +00:00
Alexandru2909
54e17f4e2d For #24512 - Remove Event.wrapper for RecentlyClosedTabs metrics 2022-04-01 11:13:56 +00:00
Alexandru2909
623bfd0a03 For #24452 - Remove MetricController checks from BackgroundServicesTest 2022-04-01 09:45:00 +00:00
Alexandru2909
258f329046 For #24452 - Remove Event.wrapper for SyncAuth metrics 2022-04-01 09:45:00 +00:00
Alexandru2909
82901297cb For #24214 - Move bookmark removal events to BookmarkController 2022-04-01 07:41:45 +00:00
Alexandru2909
0a5b8c49a0 For #24214 - Remove Event.wrapper for BookmarksManagement metrics 2022-04-01 07:41:45 +00:00
Alexandru2909
740566992a For #24099 - Remove Event.wrapper for Collections telemetry 2022-04-01 06:59:55 +00:00
Alexandru2909
0e5f75bfe2 For #24147 - Remove Event.wrapper for Search widget telemetry 2022-03-31 12:00:27 +00:00
Alexandru2909
a1243a8e9f For #24450 - Remove Event.wrapper for ErrorPage metrics 2022-03-30 10:01:51 +00:00
Alexandru2909
7cedc8b440 For #24208 - Remove Event.wrapper for LoginDialogFacts telemetry 2022-03-30 08:15:34 +00:00
Arturo Mejia
4389da7811 For #24222: Persist user interactions with nimbus messages 2022-03-30 00:18:51 +00:00
Gabriel Luong
e950ec3f4d For #24319 - Migrate PrivateBrowsingDescriptionViewHolder to Compose 2022-03-29 22:54:22 +00:00
Noah Bond
ccd8084dd4 For #24467 - Enable Contile setting telemetry 2022-03-29 16:42:10 +00:00
Alexandru2909
df702a2694 For #24204 - Remove Event.wrapper for Search_shortcuts telemetry 2022-03-29 15:20:14 +00:00
Mugurell
46d757ab54 For #16952 - Https-only mode support.
Default will be disabled with users having the possibility to enable this from
a new setting in the `Privacy and security` section.
If enabled then by default this force https for all tabs with the option for
users to switch to forcing https only on private tabs.
2022-03-29 14:54:01 +00:00
Alexandru2909
28db4caa8c For #24212 - Remove Event.wrapper for Preferences metrics 2022-03-29 13:17:23 +00:00
mike a
386c4da765 Closes #24276: moved getHistory() to suspend 2022-03-29 07:00:09 +00:00
mike a
019e244f0d Closes #24276: updated tests 2022-03-29 07:00:09 +00:00
Alexandru2909
ffbcaa82de For #24203 - Remove Event.wrapper for Onboarding telemetry 2022-03-29 05:53:29 +00:00
sarah541
3b39b4668f For #23968 - Migrate homescreen recent tabs to compose
For #23968 - Migrate homescreen recent tabs to compose
2022-03-29 01:07:04 +00:00
sarah541
ce7d2d1962 For #23969 - Migrate homescreen recent bookmarks to compose 2022-03-29 01:07:04 +00:00
sarah541
e11c9b2e8f For #23970 - Migrate homescreen recent visits header to compose 2022-03-29 01:07:04 +00:00
Brais Gabín
1f633edd7d For #23046 - Align detekt config between Fenix and Android Components
Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2022-03-29 00:03:06 +00:00
Arturo Mejia
bfeceb562d For #24224: Send telemetry events related to the messaging framework 2022-03-28 15:49:13 +00:00
mcarare
1b00141d78 For #24148: Update tests for tracking protection metrics. 2022-03-28 13:08:30 +00:00
mcarare
cb14837bc6 For #24098: Update tests for tabs tray metrics. 2022-03-28 12:30:30 +00:00
Sebastian Kaspari
834d0ee12d Issue #22489: Remove "Fennec to Fenix" migration code 2022-03-28 06:16:55 +00:00
Jonathan Almeida
f953c5ec94 For #24220 and #24223: Connect GleanPlumb messages with the new tab ui card.
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
2022-03-26 22:14:49 +00:00
Elise Richards
0b981dde5f
For #23503: Respect studies and telemetry prefs when manually opting in to studies (#23955)
* For #23503: Respect studies pref and telemetry enabled pref when manually opting in to studies

* Add button to snackbar in nimbus secret settings that allows user to go directly to their data collection prefs

* Remove refactoring

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-03-25 21:54:43 +00:00
mike a
61d1ec2eff Closes #23517: add a check to handleDeleteAbnormal() test to also verify
removal of items inside abnormal list
2022-03-24 22:27:51 +00:00
mike a
ee79ad629e Closes #23517: updated the tests 2022-03-24 22:27:51 +00:00
mike a
9aa613c443 Closes #23517: history items are not being removed after deletion 2022-03-24 22:27:51 +00:00
Christian Sadilek
8b595fa30c Closes #24407: Allow query parameters in AMO installation URLs 2022-03-24 16:43:35 -04:00
Gabriel Luong
48635fb031 For #24114 - Check feature settings to show and hide home screen sections 2022-03-21 20:13:17 +00:00
Gabriel Luong
4f3e891484 For #24114 - Refactor ext/HomeFragmentStateTest to ext/AppStateTest 2022-03-21 20:13:17 +00:00
Gabriel Luong
15d6d34a01 For #24114 - Change all HomeFragment[Store|State|Action] usage to App[Store|State|Action] in existing tests 2022-03-21 20:13:17 +00:00
Gabriel Luong
6ae4f9b4c5 For #24114 - Refactor HomeFragmenStoreTest to AppStoreTest 2022-03-21 20:13:17 +00:00
Arturo Mejia
55c707a412 Closes #24305: Remove false wallpaper NPE Sentry report 2022-03-18 01:45:24 +00:00
Grigory Kruglov
fc39c187cd For #23697: Treat text/x-moz-url mime type clipboard text as url
It seems like this is the MIME type we're getting from the clipboard in
certain scenarios, e.g. after copying a link from Chrome or Gmail on
some devices.
2022-03-16 22:10:52 +00:00
Noah Bond
161b971aa6 For #24286 - Create new test for synced tabs error mapping 2022-03-16 21:13:24 +00:00
mcarare
a9bb913653 For #19929: Use AC extension functions for window insets compat. 2022-03-16 14:58:29 +00:00
Roger Yang
ed71b8a92c Close #12717: Add bookmark search 2022-03-16 01:24:57 +00:00
Gabriel Luong
221ce814ef For #24235 - Remove Tip from HomeFragmentStore 2022-03-15 23:29:58 +00:00
Gabriel Luong
788b83bfaa For #24229 - Remove unused MigrationTipProvider 2022-03-15 23:29:58 +00:00
Gabriel Luong
a6c8f8b313 For #24252 - Rename destructive attribute to textWarning 2022-03-14 22:08:08 +00:00
Gabriel Luong
779660f615 For #24246 - Refactor Tab from HomeFragmentStore 2022-03-14 18:59:59 +00:00
Roger Yang
d45543ec40 Close #14313: Always add copy to clipboard action in share actions 2022-03-12 16:24:15 +00:00
Gabriel Luong
c9a47d08a8 For #24130 - Change Shortcuts setting to toggle the display of Top Sites 2022-03-11 19:48:08 +00:00
Alexandru2909
c1431c5c12 For #22189 - Replace app name with 'Firefox' for Sync strings 2022-03-09 18:01:17 +00:00
Grigory Kruglov
7ca7190199 Bump Android-Components version to 100.0.20220309001717 2022-03-08 22:05:32 -08:00
Gabriel Luong
56022546f2 For #23893 - Add telemetry for Contile services 2022-03-03 20:56:44 +00:00
mcarare
597cc84a76 For #23399: Add tabs tray multi-select telemetry. 2022-03-03 09:32:38 +00:00
Arturo Mejia
1c66804c0b Add remote wallpapers 2022-03-01 22:16:52 +00:00
Alexandru2909
19d1e227ed For #23936 - Show dialog on credit card delete 2022-03-01 09:29:07 +00:00
mcarare
47077fe2ec For #21743: Use isNumericAddress to validate Ipv4 and Ipv6 for SDK>=29. 2022-03-01 07:57:19 +00:00
Gabriel Luong
a6b5ab6726 For #24006 - Return a null change payload if the new top sites list is larger than the old 2022-02-28 18:41:20 +00:00
MatthewTighe
9b4a85942d fixes #23981: open download function and override for test 2022-02-25 18:34:22 +00:00
Sarah541
a222ea521d
For #23821 - Add telemtry for RecentlyVisted Homepage (#23909)
Add test

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Co-authored-by: Ryan VanderMeulen <rvandermeulen@mozilla.com>
2022-02-25 09:03:25 -05:00
Roger Yang
77c2ad90b4 Close #13336: Open bookmark in current tab if browsing mode is not private or previous fragment is not home 2022-02-24 00:40:18 +00:00
Gabriel Luong
d71e31188f For #23888 - Replace @color/white_color with @color/fx_mobile_[icon|text]_color_oncolor
@color/white_color and @color/fx_mobile_[icon|text]_color_oncolor are equivalent
2022-02-23 20:14:22 +00:00
Roger Yang
d1c0e9bf9b Revert "For #13336: Open bookmarks in current tab (#23169)"
This reverts commit e73deb23ac.
2022-02-23 01:17:47 +00:00
MatthewTighe
2cc9ca3773 for #23069: add blocklist middleware for home 2022-02-22 22:25:04 +00:00
Noah Bond
15c58b7261 For #23808 - Add secret setting for enabling Task Continuity feature 2022-02-18 17:37:19 +00:00
Alexandru2909
5153cee0e0 For #22189 - Replace the 'Firefox' word in all strings with placeholder 2022-02-18 15:59:03 +00:00
Gabriel Luong
f47a428f44
For #23771 - Set correct destructive text color for card editor error messages (#23803)
Co-authored-by: tristan-jea <>
Co-authored-by: Tristan <99796140+tristan-jea@users.noreply.github.com>
2022-02-17 23:44:53 -05:00
Noah Bond
bd4742004c For #19942 - Add support for sticky headers to the synced tabs list 2022-02-17 20:12:47 +00:00
Roger Yang
7dc969103b No issue: Renew/remove metrics set to expire in March 2022 2022-02-16 19:43:36 -05:00
Gabriel Luong
37683531e7 For #23456 ⁃ Use lifecycleScope in TopSiteItemViewHolder 2022-02-16 15:02:08 +00:00
Roger Yang
7d8bad05cd Close #23694: Add telemetry for history search 2022-02-15 20:08:54 +00:00
Mugurell
efc57762f6 For #22722 - Rename CrashReporterFragment to CrashContentView
Rename in a separate patch for git to not merge this to previous changes and in
such think that the the old file was deleted and a new one was created.
2022-02-15 08:46:41 +00:00
Mugurell
bc59ede073 For #22722 - Reacting to the crashed flag
Whenever the ".crashed" property of the currently displayed
TabSessionState -> EngineState is true we will show an in-app crash reporter
with the usual close tab / restore tab options and also the option to report
all current non-fatal crashes to Mozilla if the setting for sending the crash
reports is enabled in app settings.
This closely mimics the previous crash reporter UI but there might be some
subtle differences stemming from migrating to using a ComposeView.

Whenever the ".crashed" property of the currently displayed
TabSessionState -> EngineState is false we will set the in-app crash reporter
to have a View.GONE visibility effectively removing it from the layout.

The functionality for receiving the non-fatal crashes from the AC CrashReporter
through an Intent is still kept and these crashes will be persisted in memory
until the user closes / restores a tab and so also makes a decision about
sending or not these crashes.

Currently more tabs can crash following just one since more share the same
process and as such there is no way to differentiate between them or link a
certain Crash to a certain tab.
They will all be acted upon at once from any tab the user chooses to close or
restore.
2022-02-15 08:46:41 +00:00
Grigory Kruglov
a42018f124 Convert recently closed tabs code to use light-weight TabState
To lighten-up our memory usage and startup performance, all of the RecentlyClosed
machinery was converted to use a light-weight TabState - specifically, it's missing
EngineSessionState, which is expensive to obtain during startup, and potentially
very costly to keep in-memory.

When we actually need EngineSessionState (at the point of restoration of a tab), we
read and rehydrate it using provided storage implementation.
2022-02-15 01:45:35 +00:00
Noah Bond
48141b25a9 For #21900 - Delete files from Synced Tabs XML implementation 2022-02-15 00:01:57 +00:00
Noah Bond
584b2cd83c For #21900 - Delete files from Synced Tabs XML implementation 2022-02-15 00:01:57 +00:00
Rohan Maity
df0d196759 For #20634 remove some lint issues from baseline 2022-02-14 11:52:37 +00:00
Gabriel Luong
37a0edceb6 For #23431 - Display the order of Contile Top Sites correctly 2022-02-10 00:54:24 +00:00
Mugurell
5bd6f1cb8c For #21854 - Split the big ComposeView in 3 smaller ones
This would shorten the time needed to layout all Pocket recommended stories
content in one go, though it may lead to shorten hiccups over a bigger period
of time.
2022-02-09 15:56:27 +00:00
Noah Bond
c0942eadb2 For #23526 - Add telemetry for Contile interactions 2022-02-08 21:45:16 +00:00
Matt Tighe
24d2abd2b2 fixes #23619: use well-defined name for fetching remote wallpaper assets 2022-02-07 23:26:45 +00:00
Sarah Khan
26c7562e62 For #23596 and #23309 - Add deeplink to wallpaper settings 2022-02-07 17:02:46 -05:00
Roger Yang
1e90235dcc Close #10046: Add history search 2022-02-05 21:35:30 +00:00
mcarare
de6e2e763e Add VisitInfo.isRemote parameter. 2022-02-04 19:02:18 +00:00
Matt Tighe
9b9d08c7d1 closes #23565: expire remote wallpapers but let users keep selected 2022-02-04 17:31:40 +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
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
42ac6feb0c For #23424 - Part 2: Add context menu for contile top sites 2022-01-31 22:14:34 +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
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
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
Mugurell
5c1953d792 For #22314 - Reuse existing tab for search group items 2022-01-25 14:23:36 +00:00
Grigory Kruglov
9ceb06e55c Account for Int->UInt changes in bookmarks API 2022-01-20 23:57:50 -08: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
ae38410106 For #23121 - Replace @drawable/ic_new with @drawable/mozac_ic_new 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
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
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
Matt Tighe
0b99c2e67d fixes #22943: update androidx.lifecycle to 2.4.0 2022-01-14 17:04:44 -05:00
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
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
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
Brais Gabín
7ec31a25c4 For #23142 - Fix license formatting in tests 2022-01-11 18:32:06 +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
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
mcarare
00280d3b65 For #20513: Use UrlMetricType for search engine submission url. 2021-12-21 11:25:00 +00:00
Roger Yang
26198330e9 Closes #22671: Show correct time groups header in history 2021-12-17 16:32: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
Matt Tighe
edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 2021-12-14 22:31:05 +00:00
Matt Tighe
fee26e62a8 Fixes #22688: remove inactive_tabs_recently_closed probe 2021-12-10 23:20:26 +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
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
26713a58c8 Refactor: Move historymetadata classes in separate package 2021-12-02 22:28:58 +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
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
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
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
Arturo Mejia
74406bef59 For issue #5298 the same page appears in the History section multiple times 2021-11-22 14:18:42 -05: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
45d4807bfe Closes #22472: Filter out redirects from History search groups 2021-11-17 16:48:25 -05:00
Roger Yang
24e4452cb5 Close #22402: Add top placeholder for home 2021-11-16 23:05:45 +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
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
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
Mugurell
953f6feb17 For #22155 - The inactiveTabsCount probe reports actualInactiveTabs number 2021-11-08 12:32:39 +00:00
Mugurell
f9b67091c6 For #22155 - New BrowserState.actualInactiveTabs public method
This allows querying from all throughout the app which of the current tabs are
inactive while taking into consideration whether the feature is enabled or not
such that when the feature is disabled it will always return an empty result.
2021-11-08 12:32:39 +00:00
Sebastian Kaspari
8c9f0c835a Closes #21695: ThreadPenaltyDeathWithIgnoresListener: Ignore stack traces containing InstrumentationHooks class 2021-11-05 18:21:34 +00:00
Roger Yang
04618983aa Close #22299: Add history search term group telemetry 2021-11-04 22:08:56 +00:00
Grisha Kruglov
294997e559 No issue: history view search group missing
Our boundary conditions for matching search groups to visits was wrong.

This change switches the boundary buffer to only be applied to history
items, not the metadata items.

In other words, when checking if any of the metadata items match the
current "page" of history, we'll be looking to see if the item falls
within this time window:
buffer - oldest history item <= metadata item <= newest history item +
buffer

There's a separate problem with buffer though: it's reset to 0 when requested
offset is >0, but that requires a larger refactor of this code, for a
separate PR.
2021-11-04 16:02:18 +00:00
Elise Richards
4f55f16bd7
For #21313: Remove expiring/unused metrics for December (#21789)
* Remove crash reporter metrics

* Remove tab counter menu item probe

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-04 03:54:18 +00:00
Christian Sadilek
76bb0c3b37 Closes #21659: Add SERPs to history search groups 2021-11-03 23:19:46 -04:00
Noah Bond
8caefbe2d5
Recent bookmark count telemetry (#22293)
* For #22075 - Added event to track the count of recent bookmarks

* For #22075 - Added data review issue number

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-04 00:14:21 +00:00
Arturo Mejia
cff78afe27 For #22078 Selecting search group in Jump back in switches active tab 2021-11-03 22:02:22 +00:00
Arturo Mejia
5a11985d22 No issue: Address tracking protection exceptions breaking changes 2021-11-03 13:01:05 -04:00
Noah Bond
a06b04ec6d
MR2 Telemetry: Recent tabs section probe (#22166)
* For #22107 - Added probe to track if the Recent tabs / jump back in section is visible

* For #22107 - Fixed lint errors

* For #22107 - added data review number to metric

* For #22166 - fixed expiration date

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-02 23:08:30 +00:00
Jonathan Almeida
9bb49585ea No issue: Merge our inactive tab interactor/controllers 2021-11-02 17:12:45 +00:00
Mugurell
207e85e59d For #22155 - Inactive tabs count telemetry
A quantity probe in the metrics ping means we'll loose the granularity events
provided but it will be easier to extract the values.

For reporting whether the inactive tabs feature is enabled or not we already
have the "preferences.inactive_tabs_enabled" probe so I didn't duplicate this.
2021-11-02 16:32:00 +00:00
Roger Yang
a46905b5e7 Issue #22057: Add search term groups telemetry 2021-11-02 15:46:29 +00:00
Christian Sadilek
687209fee8 Introduce test rule to work around intermittent mockk failures 2021-11-02 15:14:18 +00:00
Mugurell
018fe15072 For #22138 - Install source metrics probe 2021-11-02 09:12:34 +00:00
Roger Yang
4e5c9a3440 Close #22172: Add Recent searches telemetry 2021-11-02 04:17:10 +00:00
Roger Yang
9c970a5276 Close #22103: Add recent bookmarks telemetry 2021-11-02 01:35:36 +00:00
Elise Richards
e4cc22fb71 For #22175: Telemetry event for deleting a search term group from the recent searches section on home 2021-11-01 20:40:05 +00:00
Jonathan Almeida
9cef9357b1 Close #20704: Add AppStore to Components 2021-11-01 19:23:42 +00:00
Arturo Mejia
940af156eb For #22192 add telemetry for studies 2021-11-01 14:08:52 +00:00
Christian Sadilek
3e6cd7d821 Closes #21355: Fix intermittent test failures in BookmarkItemMenuTest 2021-10-28 18:15:55 -04:00
Christian Sadilek
75c70ff814 Closes #21952: Ignore intermittently failing FenixSnackbarKtTest 2021-10-28 18:15:55 -04:00
Christian Sadilek
f4be38dafc Closes #21438: Ignore intermittently failing ExceptionsListItemViewHolderTest 2021-10-28 18:15:55 -04:00
Christian Sadilek
5d7bb70f55 Closes #22081: Ignore intermittently failing DefaultBrowsingModeManagerTest 2021-10-28 18:15:55 -04:00
Christian Sadilek
99f0aaa834 Closes #21332: Ignore intermittently failing WebPushEngineIntegrationTest 2021-10-28 18:15:55 -04:00
Christian Sadilek
3ffb11fd3b Closes #21952: Ignore intermittently failing FenixSnackbarDelegateTest 2021-10-28 18:15:55 -04:00
Arturo Mejia
a2c7dfb26e For #22170: Add telemetry for the auto-close prompt 2021-10-27 13:17:35 +00:00
Grisha Kruglov
04a35c81b8 Closes #22083 - Match history groups to history pages by all items within the group
When deciding if we should include a history group within the "page of
history" results on the History View UI, we used to look at the most
recent timestamp of the metadata items within the group, and see if that
falls within the range of the timestamps of the history page, +/- some
buffer.

This assumes that each metadata entry will have a corresponding history
item. However, that's not true - when restarting the app, the selected
tab will be restored, and when opening History View right after we'll
record some metadata for it. However, we won't record a history visit
during the app restore for the selected tab.

That's all correct, but the assumption around group matching to history is now incorrect.

This patch changes the logic to instead look at every item within the
group, and see if any of them match the time window of the current
history page. This has a side-effect of also displaying search groups
multiple times on diffenent pages of history, if it makes sense to do so chronologically.
I think that's fine, it reflects reality at least (e.g. items within the
group may have been visited at very different points in time).

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2021-10-26 16:10:58 -07:00
MickeyMoz
a4bcecf8c5 Update Android Components version to 95.0.20211026143215.
Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
2021-10-26 20:21:03 +00:00
Gabriel Luong
b04bf99b7d For #21776 - Remove unused symbols 2021-10-26 18:26:50 +00:00
Gabriel Luong
da395d1038 For #21776 - Local 'var' is never modified and can be declared as 'val' 2021-10-26 18:26:50 +00:00
Gabriel Luong
76c746b982 For #21776 - Remove unnecessary type argument 2021-10-26 18:26:50 +00:00
Gabriel Luong
272d31b2b4 For #21776 - Remove unnecessary parentheses from function call with lambda 2021-10-26 18:26:50 +00:00
Gabriel Luong
6d1d4bea93 For #21776 - Remove redundant qualifier name 2021-10-26 18:26:50 +00:00
Jonathan Almeida
7666f0e4c2 No issue: Replace TabsTray.Tab with TabSessionState
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2021-10-26 01:57:47 +00:00
Jonathan Almeida
b2a7877c83 No issue: Disable FenixSnackbarDelegateTest intermittents 2021-10-26 00:21:00 +00:00
Sebastian Kaspari
170fa9705e Update Kotlin and Jetpack Compose versions. 2021-10-25 17:59:17 +02:00
Mugurell
acdde511d3 For #22070 - Prevent crash for when a selected topic does not exist anymore
The list of selected topics overwrites old data whenever user selects or
deselects another so the old selections will not leak for long.
2021-10-22 10:53:55 -04:00
Roger Yang
70fc6fc20f Close #22061: Let TabSorter decide if title header should be shown in tabs tray 2021-10-22 14:34:41 +00:00
Michael Comella
a1ace964de No issue - post: fix ProfilerMarkerFactProcessor tests. 2021-10-21 21:21:21 +00:00
Gabriel Luong
64ca94b8fa For #22022 - Composify Customize Home Button and update the background color 2021-10-21 00:15:19 +00:00
Gabriel Luong
07a6a386f8 For #21753 - Refactor Pocket out of sessioncontrol 2021-10-20 23:08:14 +00:00
Noah Bond
826249497a
MR2 Inactive tabs telemetry (#21908)
* For #21903 - Added telemetry for interacting with inactive tabs

* For #21903 - Added missing inactive tab delete count event to delete all event

* For #21903 - Added PR numbers to metrics

* For #21903 - Updated broken unit tests. Resolved critical lint warning.

* For #21903 - Fixed inactive tabs setting toggle metric

* For #21903 - Updated FenixApp unit test

* For #21903 - Updated newline character in Metrics. Set inactive tab metrics' lifetime to default. Updated expiration to Nov 2022. Refactored inactive tabs metric to be a single metric.

* PR: addendum for last commit that missed a file

* For #21903 - Changed logic check for reporting inactive tab count

* PR: fixed merge conflict

* For #21903 - Removed tab close tracking when the user closes ALL inactive tabs

* For #21903 - Removed individual tab close metric verify from CLOSE ALL test

* For #21903 - Updated inactive tabs toggle setting expiration to match the expiration of the other events

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-20 22:30:59 +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
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
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