Commit Graph

1295 Commits (1f633edd7d4436f20ead4ba657b1284b94cca0c6)

Author SHA1 Message Date
Noah Bond 48141b25a9 For #21900 - Delete files from Synced Tabs XML implementation 2 years ago
Noah Bond 584b2cd83c For #21900 - Delete files from Synced Tabs XML implementation 2 years ago
Rohan Maity df0d196759 For #20634 remove some lint issues from baseline 2 years ago
Gabriel Luong 37a0edceb6 For #23431 - Display the order of Contile Top Sites correctly 2 years ago
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.
2 years ago
Noah Bond c0942eadb2 For #23526 - Add telemetry for Contile interactions 2 years ago
Matt Tighe 24d2abd2b2 fixes #23619: use well-defined name for fetching remote wallpaper assets 2 years ago
Sarah Khan 26c7562e62 For #23596 and #23309 - Add deeplink to wallpaper settings 2 years ago
Roger Yang 1e90235dcc Close #10046: Add history search 2 years ago
mcarare de6e2e763e Add VisitInfo.isRemote parameter. 2 years ago
Matt Tighe 9b9d08c7d1 closes #23565: expire remote wallpapers but let users keep selected 2 years ago
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.
2 years ago
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
2 years ago
Matt Tighe 0837197d84 closes #23514: add firefox wallpapers 2 years ago
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.
2 years ago
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
2 years ago
Gabriel Luong 42ac6feb0c For #23424 - Part 2: Add context menu for contile top sites 2 years ago
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>
2 years ago
Matt Tighe a419a6963c add events based on feedback 2 years ago
Matt Tighe a5f540568e update based on PR feedback and data review 2 years ago
Matt Tighe eed42ee96b closes #23381: add telemetry for wallpapers feature 2 years ago
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>
2 years ago
Mugurell 5c1953d792 For #22314 - Reuse existing tab for search group items 2 years ago
Grigory Kruglov 9ceb06e55c Account for Int->UInt changes in bookmarks API 2 years ago
Gabriel Luong 02d9197945 For #23121 - Replace @drawble/ic_search with @drawable/mozac_ic_search 2 years ago
Gabriel Luong ae38410106 For #23121 - Replace @drawable/ic_new with @drawable/mozac_ic_new 2 years ago
Roger Yang f8b0dd6e7e No issue: Remove showHistorySearchGroups feature flag 2 years ago
mcarare a6abaf7cf9 Set a minimum number of sites a search group should contain. 2 years ago
mcarare 305b527b05 For #23256: Close quick settings sheet when displaying clear dialog. 2 years ago
mcarare 0496249fe4 For #23256: Pass navController instance instead of lambda. 2 years ago
Roger Yang 829c06ebe4 Close #23250: Remove duplicate sites within a time period in history 2 years ago
Gabriel Luong 26b65a2a23 For #22727 - Add Contile to Top Sites 2 years ago
mcarare 64a8932e3c For #22477: Ignore null and empty values for share data title. 2 years ago
Matt Tighe 0b99c2e67d fixes #22943: update androidx.lifecycle to 2.4.0 2 years ago
Alexandru2909 a34711c444 For #20524 - Remove redundant coroutine dispatchers from tests 2 years ago
Alexandru2909 cf83b3050b For #8108 - Add BrowserToolbar option to remove url from TopSites 2 years ago
Roger Yang 047ec890b2 Closes #22550: Refactor search term tab grouping logic to rely on middleware 2 years ago
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.
2 years ago
Brais Gabín 7ec31a25c4 For #23142 - Fix license formatting in tests 2 years ago
mcarare cdbe7983f5 For #22879: Filter default engines when sending telemetry.
Filter out custom engines that are not well known search domains.
2 years ago
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>
3 years ago
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.
3 years ago
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.
3 years ago
Mugurell 34c0a17b4d For #22852 - Add a new "Storage access" permission 3 years ago
mcarare 00280d3b65 For #20513: Use UrlMetricType for search engine submission url. 3 years ago
Roger Yang 26198330e9 Closes #22671: Show correct time groups header in history 3 years ago
Grisha Kruglov 33af7d8729 Fix breaking change in KeyProvider
`key` was renamed to `getOrGenerateKey` and is now a `suspend`.
3 years ago
Grisha Kruglov 8de4c0b4db For #22569: Remove allopen plugin and Mockable annotations 3 years ago
Matt Tighe edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 3 years ago
Matt Tighe fee26e62a8 Fixes #22688: remove inactive_tabs_recently_closed probe 3 years ago
mcarare 0cb4059b12 For #17130: Replace hardcoded strings with string resources. 3 years ago
aime Soriano Pastor 9bfc94b793 For #9294: Add option to clear current site data in quick settings dialog. 3 years ago
MickeyMoz 07d43971c0 Update Android Components version to 97.0.20211208143435. 3 years ago
Christian Sadilek 229c410437 Introduce timeout for capturing thumbnail in BrowserAnimator 3 years ago
Christian Sadilek ae0dba29b1 Prevent flash when navigating to home 3 years ago
Christian Sadilek 26713a58c8 Refactor: Move historymetadata classes in separate package 3 years ago
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>
3 years ago
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
3 years ago
Gabriel Luong 7c2d9bd8a8 For #22595 - Remove unused OnboardingAutomaticSignInViewHolder 3 years ago
Gabriel Luong 91da5318e3 For #22211 - Use Hero images for Recent Bookmarks 3 years ago
Arturo Mejia a49f80d5e8 Update Android Components version to 96.0.20211125162700. 3 years ago
Arturo Mejia 3f86a5d6f9 Improve loading URLs 3 years ago
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.
3 years ago
Mugurell 685da115c9 For #22442 - Don't display history group if already in Jump back in 3 years ago
Gabriel Luong dc15ee2415 For #22488 - Fix intermittent test failure with InactiveTabsControllerTest 3 years ago
Gabriel Luong 749da13516 For #22250 - Convert Recent Bookmarks to Jetpack Compose 3 years ago
Arturo Mejia 74406bef59 For issue #5298 the same page appears in the History section multiple times 3 years ago
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.
3 years ago
Grisha Kruglov 45d4807bfe Closes #22472: Filter out redirects from History search groups 3 years ago
Roger Yang 24e4452cb5 Close #22402: Add top placeholder for home 3 years ago
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.
3 years ago
Mugurell 17865bdf66 For #22147 - New search term groups telemetry 3 years ago
Arturo Mejia 94a543a403 For #22271 Improve URL accessing from the clipboard for Android 12 and above. 3 years ago
Jonathan Almeida e3b6e00331 Close #22223: Move to the selected page when switching modes 3 years ago
Grisha Kruglov 9a4a4713ac No issue: clean up code duplication in PagedHistoryProvider 3 years ago
Jonathan Almeida 8ced675817 No issue: Correct TabsTrayAction naming 3 years ago
Jonathan Almeida 08b15689b1 Close #22305: Use TabsTrayStore for populating adapters 3 years ago
Jonathan Almeida f16300392d Close #22305: Add tab state into the TabsTrayStore 3 years ago
Mugurell 953f6feb17 For #22155 - The inactiveTabsCount probe reports actualInactiveTabs number 3 years ago
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.
3 years ago
Sebastian Kaspari 8c9f0c835a Closes #21695: ThreadPenaltyDeathWithIgnoresListener: Ignore stack traces containing InstrumentationHooks class 3 years ago
Roger Yang 04618983aa Close #22299: Add history search term group telemetry 3 years ago
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.
3 years ago
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>
3 years ago
Christian Sadilek 76bb0c3b37 Closes #21659: Add SERPs to history search groups 3 years ago
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>
3 years ago
Arturo Mejia cff78afe27 For #22078 Selecting search group in Jump back in switches active tab 3 years ago
Arturo Mejia 5a11985d22 No issue: Address tracking protection exceptions breaking changes 3 years ago
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>
3 years ago
Jonathan Almeida 9bb49585ea No issue: Merge our inactive tab interactor/controllers 3 years ago
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.
3 years ago
Roger Yang a46905b5e7 Issue #22057: Add search term groups telemetry 3 years ago
Christian Sadilek 687209fee8 Introduce test rule to work around intermittent mockk failures 3 years ago
Mugurell 018fe15072 For #22138 - Install source metrics probe 3 years ago
Roger Yang 4e5c9a3440 Close #22172: Add Recent searches telemetry 3 years ago
Roger Yang 9c970a5276 Close #22103: Add recent bookmarks telemetry 3 years ago
Elise Richards e4cc22fb71 For #22175: Telemetry event for deleting a search term group from the recent searches section on home 3 years ago
Jonathan Almeida 9cef9357b1 Close #20704: Add AppStore to Components 3 years ago
Arturo Mejia 940af156eb For #22192 add telemetry for studies 3 years ago
Christian Sadilek 3e6cd7d821 Closes #21355: Fix intermittent test failures in BookmarkItemMenuTest 3 years ago