Commit Graph

1606 Commits (fork)

Author SHA1 Message Date
mcarare bd354385d7 For #12725: Replace removed static "set", "get" methods of ViewTreeSavedStateRegistryOwner.
ViewTreeSavedStateRegistryOwner is retrieved/set with new extension methods.
2 years ago
sarah541 b432436859 For #26759 - Crash fix for UnsupportedOperationException 2 years ago
Gabriel Luong c43271fc0d For #26739 - Display MR onboarding dialog to existing users as soon as the app is opened 2 years ago
Mugurell 93859d8560 For #26723 - Fix WallpapersObserver leaking a view from HomeFragment
The observer initialized with a fragment View would outlive the fragment and in
that allow for leaking the entire fragment layout.
2 years ago
Mugurell b7f9457cc4 For #26723 - Ensure wallpapers are set on the main thread
Using Dispatchers.IO allowed the observer to react faster to wallpaper state
updates but caused issues with updating the wallpaper in fragment layout.

Using Dispatchers.Main.immediate gives us a bit slower reaction time but still
faster than Dispatchers.Main and allows us to still execute before the fragment
is visible.
2 years ago
Gabriel Luong 3507f12484 For #26717 - Only show the MR onboarding dialog for existing users 2 years ago
MatthewTighe 8a9c68c872 Closes #26211: Download wallpapers when thumbnails clicked 2 years ago
MatthewTighe 0d51d2b0f9 Closes #26214: Download wallpaper thumbnails at app startup 2 years ago
Alexandru2909 cedb777655 For #26706 - Add sponsored urls filter in BlocklistHandler 2 years ago
Alexandru2909 070bf5ac24 For #26706 - Change TopSite.containsQueryParameters as Uri extension function 2 years ago
Jonathan Almeida 40cd58132e Close #25919: Move UpdateFirstFrameDrawn to RecyclerView.onLayoutCompleted
As part of a preventitive measure for home page regression loading, we
fixed the UpdateFirstFrameDrawn call to happen after the first layout in
the main RecyclerView is completed. In addition, we also make pocket
aware of this flag so that it renders itself after the first layout.

This helps prioritize current & future features that are visible first
to render before those that are off screen.

Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2 years ago
Mugurell ab3f6b5e4b For #26555 - Observe and update the wallpaper before HomeScreen is visible.
By using Store.observeManually in a standalone coroutine we can observe the
store and update the wallpapers even before onStart (in manual tests is right
around onStart, certainly before the other widgets shown on homescreen).

Created a new WallpapersObserver to have the functionality easier to reason
about and be easier to test.
2 years ago
MatthewTighe 853778e29a For #26511: load homescreen wallpaper in blocking coroutine 2 years ago
Gabriel Luong 9a64acd4b6 For #26169 - MR Home Onboarding Dialog for upgrading users 2 years ago
Mugurell 67a55fe089 For #26224 - TCP CFR telemetry 2 years ago
Mugurell 4286606d8f For #26224 - New TCP CFR popup
If Total Cookie Protection is enabled when first accessing a normal tab
(not a custom tab) a new Contextual Feature Recommendation popup will be shown
informing about the added protection and allowing the user to open a support
page with more data about the new option for privacy protection.
2 years ago
Mugurell fc6ee3e3d9 For #18175 - Add telemetry for cookies option in custom ETP. 2 years ago
Mugurell bf23a2a6b9 For #18175 - Add a new total protection ETP cookies policy
This should only add the new option in settings based on a Nimbus experiment.
2 years ago
Alexandru2909 b29b5049aa For #26400 - Add long-press option to remove tab pickup on homescreen 2 years ago
Alexandru2909 43e629b7fb For #26398 - Filter recent synced tabs using the homescreen blocklist 2 years ago
MatthewTighe 299f887953 Add updated wallpaper use cases and activate them with feature flag. 2 years ago
MatthewTighe 02dda42cb6 Add updated downloader and file manager 2 years ago
Alexandru2909 e2f1c5fc9c For #26399 - Use a list of tabs for recent synced tabs success state 2 years ago
Mugurell 1332d408da For #26380 - Wait in tests until telemetry is recorded. 2 years ago
mike a 8e4effe70a Revert "Closes #25967: add classes to support multiple viewHolders"
This reverts commit f910fcfe76.
2 years ago
MatthewTighe 532156bed6 For #26423: add wallpaper metadata fetcher 2 years ago
Noah Bond 81dae89969 No issue: Remove code to generate tab group size metrics 2 years ago
MatthewTighe 7bfd6caa5b For #26423: simplify wallpaper types to single data class 2 years ago
MatthewTighe ab306f0ab9 Fixes #26124: recent synced tab will use preview image URLs from history 2 years ago
mavduevskiy 40ef60ca87 Revert "Closes #25942: use HistoryFragment to show synced history"
This reverts commit 6483e1c647.
2 years ago
sarah541 0b0e31aae8 For #26421 - Extract synced tabs into it's own viewholder 2 years ago
Roger Yang 85f8a1f3ee Close #26150: Do not show sync tabs in home when sync open tabs setting is disabled 2 years ago
Mugurell e74742a3e6 For #25602: Lowercase search engine id when recording telemetry 2 years ago
MatthewTighe 72959901d8 Fixes #26245: refactor the WallpaperManager as several WallpaperUseCases 2 years ago
Roger Yang 4204c43236 Close #26198: Add debounce to account manager syncs 2 years ago
MatthewTighe 29a8c33ba5 Fixes #26377: re-open already opened recent synced tabs 2 years ago
Noah Bond db0162465b For #26289 - Remove search term tab groups metrics and setting 2 years ago
Noah Bond 8656fd48eb For #26227 - Remove search term tab groups from Jump Back In 2 years ago
Mugurell aa992263d6 For #26172 - New CFR popup composable
This will allow for pinpoint accuracy when anchoring and resolve any color
disparities between the popup body and the indicator arrow by having everything
drawn programmatically as one shape.

Because of the async nature of the values for insets and screen rotation
immediately after an orientation change the popup will automatically get
dismissed to prevent any anchoring issues.
While not ideal the effect of this is better than accepting layout issues after
orientation changes and is the same approach used for other of our popups.
2 years ago
Alexandru2909 ec4ad984c2 For #26239 - Avoid displaying multiple download items for the same file 2 years ago
Christian Sadilek 7ddc50017e Revert "For #26227 - Remove search term tab groups from Jump Back In"
This reverts commit fa00527dc6.
2 years ago
Christian Sadilek b24650c449 Revert "For #26227 - Remove search term tab groups from Recently Visited"
This reverts commit c45e4b4ac5.
2 years ago
Noah Bond c45e4b4ac5 For #26227 - Remove search term tab groups from Recently Visited 2 years ago
Noah Bond fa00527dc6 For #26227 - Remove search term tab groups from Jump Back In 2 years ago
MatthewTighe 767d604315 Fixes #26029: Add wallpaper state to AppStore 2 years ago
mike a 6483e1c647 Closes #25942: use HistoryFragment to show synced history 2 years ago
mike a 063a09782a Issue #26101: add telementry for deleting history time range 2 years ago
Gabriel Luong 8f51a9968a For #26026 - Refactor the FenixTabCounterMenu creation from HomeFragment to TabCounterBuilder 2 years ago
Alexandru2909 2345eb22a8 For #26089 - Record metrics for save credit card prompt shown 2 years ago
mike a 7982c6b79f Close #25954: add a new delete time range confirmation dialog for history screen 2 years ago
MatthewTighe f58f1541ce Fixes #26050: show jump back in when only synced tab available 2 years ago
Noah Bond 7e59a644d5 For #21898 - Remove search term tab groups from the Tabs Tray 2 years ago
mike a f910fcfe76 Closes #25967: add classes to support multiple viewHolders 2 years ago
MatthewTighe 5e15e9a6b3 Fixes #25955: refactor RecentSyncedTabsFeature to use SyncStore 2 years ago
MatthewTighe 1d20914f8f Fixes 24823: remove recent synced tab when logged out 2 years ago
Jonathan Almeida 7309b671b1 Close #25982: Fix check between current and new when adding a bookmark 2 years ago
Arturo Mejia 8c752c3be1 For #25736: Add experiment for Total cookie protection. 2 years ago
mcarare 70e6422d94 For #25846: Save the City field in addresses. 2 years ago
Roger Yang 46d73673ec Issue #25805: Always anchored unified search menu to the toolbar icon 2 years ago
Alexandru2909 4d430adbbe For #25764 - Prevent sponsored shortcut URLs from appearing as `frecent` shortcuts 2 years ago
Mugurell f906dda054 For #25401 - Add the PocketIntegration Glean annotation tag to all Pocket telemetry 2 years ago
mcarare 6a6fce3831 For #25658: Update metrics test. 2 years ago
Mugurell d4c86f1203 For #25538 - Add the "Wallpapers" tag to the new telemetry
By using a feature tag we can avoid having to define new tags in the Glean
annotations repository.

The list of available tags needed to be regenerated to be able to reference the
new "Wallpapers" tag.
Because the tags regeneration also brought a change in tags from "TopSites" to
"Shortcuts" all previous telemetry using "TopSites" had to be migrated to use
the new "Shortcuts" tag.
2 years ago
Mugurell 8d9ccd76e9 For #25538 - Add a simple way to check if the default wallpaper is to be shown
A previous check for whether the persisted name of the current wallpaper is
empty made checking whether the default wallpaper is to be shown brittle.
Instead of duplicating such a check in multiple places it is now extracted in
one method that can be used in multiple places including the new telemetry.
2 years ago
Marc Leclair 0680d7027c Fixed PR review 2 years ago
Arturo Mejia 5f1448460e For #21894: Move Tabs Tray to compose: Individual tab viewholders: ListViewHolder. 2 years ago
mcarare 6719eeb129 For #24857: Add metrics for addresses autofill. 2 years ago
Mugurell fd28889d71 For #25658 - Track the site permissions prompt and user actions
Track when the prompt is shown and when the permissions are allowed/denied.
2 years ago
Roger Yang 7a5e126f24 Issue #24740: Use unified search bar in bookmark search 2 years ago
Noah Bond 5f7fd5313c For #25491 - Refactor InactiveTabs interactors and controllers 2 years ago
Roger Yang 22ac345513 Issue #24740: Use unified search bar in history search 2 years ago
Arturo Mejia 34b31f8b11 For #25446: Ensure for every message shown we have recordExposure 2 years ago
Mugurell df5786f1e3 For #25381 - Add a setting allowing to toggle Pocket sponsored stories 2 years ago
Jan-Erik Rediger bbf2d427d2 Adjust all telemetry tests to follow new Glean APIs
These are mostly mechanical changes to replace usage of `testHasValue`
with `testGetValue`.
`testGetValue` will now return `null` instead of throwing an exception
if no data is available.
2 years ago
Mugurell 1a2be2065a For #24744 - Observe and update selector icon while the View is attached
This avoids having to pass another LifecycleOwner from outside and will ensure
the View is update only in the bounds of it being attached.

The observe-update code is moved to bind(..) as that seems like a more
idiomatic callback for updating an already constructed View rather than
createView() which should only create and return a View.
2 years ago
Roger Yang b48123aa50 Issue #24522: Add telemetry for unified search 2 years ago
indu ac31a1ace4 For #25455 : Let A-C handle toolbar expanding when URL changes
This fix allows the toolbar to be visible after the user clicks on a link and scrolls

Co-Authored-By: Mugurell <Mugurell@users.noreply.github.com>
2 years ago
Arturo Mejia 6a33f29a91 Revert "For #24455 - Migrate NoCollectionsMessageViewHolder to Compose"
This reverts commit 7b895aba
2 years ago
Noah Bond 08a84f8353 For #21897 - Convert inactive tabs to compose 2 years ago
Mugurell 392f585ba0 For #25459 - Show Pocket sponsored stories irrespective of topics selections 2 years ago
mcarare d20ba1d0fe For #25437: Fix label values for labeled counters. 2 years ago
Roger Yang ff683c67e0 Close #25449: Use "Enter search terms" as hint when using application search engine 2 years ago
MatthewTighe 3fab791980 fixes #24918: add subregion dropdown to address editor 2 years ago
Gabriel Luong 72a2ee688f For #24300 - Add Tabs to the search engine menu 2 years ago
Alexandru Putanu b9b1124b66
For #25397 - Telemetry for credit card save and update (#25411)
* For #25397 - Telemetry for credit card save and update

* Use Fenix Issue fro Bugs

Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
Co-authored-by: Roger Yang <royang@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
Roger Yang 229b949650 Issue #24301: Add Bookmarks to the search engine menu 2 years ago
Mugurell dfa5281b23 For #25281 - Pace and rotate sponsored stories
A new way to be able to reliably record actual impressions of sponsored stories
was needed and based on this data we can ensure we are promoting fresh stories
(with fewer impressions) or the ones with a higher priority.
2 years ago
Roger Yang 3de38984fd Issue #24299: Sort unified search selector menu items based on user settings 2 years ago
Arturo Mejia 98e3b8bf52 For #25374: Skip action validation for control messages 2 years ago
Mugurell 06d4384c11 For #25025 - Rename PocketStoriesChange to PocketStoriesClean
PocketStoriesChange was called only once - to clean the shown stories when the
user gets to the homescreen and the Pocket feature is disabled - useful for the
situations in which the user returns after disabling the feature in settings.

Populating the store with recommended stories to show was already happening
based on 'PocketStoriesCategoriesChange' and sponsored stories will be added by
using 'PocketSponsoredStoriesChange' so renaming 'PocketStoriesChange' will
help on reducing any confusion in the future.

Also added documentation for all Pocket related actions from AppStore and
removed the 'UndocumentedPublicClass' detekt suppressions.
2 years ago
Mugurell bd1feeaac9 For #25025 - Download sponsored stories on debug only 2 years ago
Mugurell 1c7e788bae For #25025 - Use the `PocketStory` supertype
This prepares extending support from just `PocketRecommendedStory` to
`PocketSponsoredStory` also.
2 years ago
Mugurell abff68a31b For #25025 - Hardcode showing at max 8 Pocket stories
The default was already 8. This is now being moved closer to the source from
where the stories to be shown are emitted.
With the addition of sponsored stories at fixed positions having to support a
variable number of stories being returned from AppState#getFilteredStories
means increased complexity with no benefit.
2 years ago
Alexandru2909 73dcc0c6d6 For #23173 - CheckChanged use a single variable instead of two for checked status 2 years ago
mcarare cb4f8ed0c0 For #24968: Add preference for enabling/disabling addresses autofill.
For #24968: Add preference for enabling/disabling addresses autofill.
2 years ago
Roger Yang d07e37deda Close #25170: Fix flaky search fragment store tests 2 years ago
Roger Yang 5bb9e50e96 Close #25288: Disable autocomplete for unified history search 2 years ago
Gabriel Luong f25129c8ac For #24991 - Refactor the HomeMenu creation from HomeFragment to HomeMenuBuilder 2 years ago
MatthewTighe 676d7090f0 Fixes #24917: add country dropdown to address editor 2 years ago
James Hugman 6cec4e2a9d Fixup tests 2 years ago
James Hugman 165ce0151e Filter messaging experiments from the Studies screen 2 years ago
Roger Yang 7f29461c75 Issue #24299: Add history to the search engine menu 2 years ago
jhugman 30fa80151d
Change FxNimbus/Nimbus startup sequence (#25266)
* Change FxNimbus initialization sequence

Add cache invalidation

* Change ordering of message restoration and Nimbus initialization

* Address reviewer comments
2 years ago
MatthewTighe 922af02d9e for #25167: ignore handleDeleteSingle and handleDeleteMultiple tests due to intermittent failures with coroutines 2 years ago
Arturo Mejia 1384414327 Revert "Change FxNimbus initialization sequence (#25089)"
This reverts commit 51ba7ab463.
2 years ago
jhugman 51ba7ab463
Change FxNimbus initialization sequence (#25089)
* Change FxNimbus initialization sequence

* Add cache invalidation
2 years ago
sarah541 7b895abab1 For #24455 - Migrate NoCollectionsMessageViewHolder to Compose 2 years ago
Mugurell 7f3aa6a314 For #25167 - Disable "handleDeleteAbnormal" as intermittently failing. 2 years ago
MatthewTighe 483f5a9f12 for #24931: create address label and description based on available data 2 years ago
Mugurell fc2c1700c9 For #23876 - Update kotlinx-coroutines to 1.6.1. Refactor runBlocking in tests.
After the update `TestCoroutineDispatcher`, `TestCoroutineScope` and
`runBlockingTest` are deprecated.
Instead of these new `TestDispatcher`, `TestScope` and `runTest` APIs are used.

Took the oportunity to also replace most of the `runBlocking` calls with the
new `runTest` specially designed for running coroutines in tests API.
2 years ago
mcarare 2192d55da3 For #24854: Add ability to delete an existing address. 2 years ago
mcarare 4369c0b920 For #24855: Allow updating info for an existing address. 2 years ago
bendk e5b0069791
Application services 93.0.1 (#24904)
* Fixup breaking changes from AppServices upgrade to 93.0.0

* android-components RemoteTabsStorage now requires a Context param

* Update Android Components version to 102.0.20220509214046

Co-authored-by: James Hugman <james@hugman.tv>
Co-authored-by: Mark Hammond <mhammond@skippinet.com.au>
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
Arturo Mejia b22a34db2e For #25110: Enable the messaging framework feature 2 years ago
Alexandru2909 89a1e6367f For #24262 - Filter Amazon/eBay sponsored tiles when the respective search engine is set 2 years ago
MatthewTighe 2b1606cf34 for #24665: show recent synced tab faster 2 years ago
mcarare ffa1ecd300 For #21292: Remove unused MetricController parameters. 2 years ago
Mugurell 8b56a2ebc7 For #25044 - Remove the broken code for focusing the newly created collection
This functionality seems broken for a long time now.
It's importance and whether to reimplement it is to be re-assessed in
https://github.com/mozilla-mobile/fenix/issues/24389
2 years ago
Alexandru2909 56c31cd675 For #24514 - Remove Fact.toEvent from MetricController 2 years ago
sarah541 538e06d73c No issue: Renew/Remove metrics set to expire in v102
No issue: Renew/Remove metrics set to expire in v102
2 years ago
mcarare 24acedf406 For #24707: Remove unused metrics parameter. 2 years ago
mike a a066dddce9 Closes #24513: add undo snackbar to history group screen 2 years ago
Arturo Mejia 916c931346 For #24949: Remove malformed message when evaluating it. 2 years ago
Gabriel Luong a5f5d5fb2d For #24850 - Display an address list for managing existing addresses 2 years ago
MatthewTighe 0f952284e6 for #24929: remove locale restriction for remote firefox wallpapers 2 years ago
Gabriel Luong 25ffce77c0 For #24849 - Add an address editor screen 2 years ago
MatthewTighe ccb3d33e8b for #24665: cache previous auth status and display placeholders accordingly 2 years ago
mavduevskiy 602f55b5d2
For #23665 - Make the undo snackbar for the library screens work globally (#24398)
* Closes #23665: make snackbar work after leaving the fragment it was initiated from

* Closes #23665: bring back the removed bookmark navigation test, sort imports alphabetically

Co-authored-by: mike a <mavduevskiy@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
mcarare 927ab1ccae For #24758: Remove wrapper from browser search metrics. 2 years ago
Alexandru2909 86285dfa00 For #24603 - Remove forEach from MediaNotification telemetry test 2 years ago
tristan-jea f1070e05c2 For #23813 - Clear error message for nameOnCardLayout when valid name is submitted 2 years ago
Gabriel Luong aff4c03d53 For #24856 - Toggle the "Manage addresses" and "Add address" preference label depending on whether there are saved addresses 2 years ago
Alexandru2909 6efbee7526 For #24759 - Remove forEach from ContextualMenu telemetry test 2 years ago
Alexandru2909 0539efd137 For #24208 - Remove forEach from LoginDialogFacts test 2 years ago
Alexandru2909 c475369d21 For #24836 - Remove GleanMetricsServiceTest 2 years ago
Alexandru2909 6a7f335107 For #24836 - Remove Event.wrapper for RecentlyVisitedHomepage telemetry 2 years ago
Alexandru2909 45d965c5e8 For #24811 - Remove Event.wrapper for Messaging telemetry 2 years ago
Gabriel Luong a8a3231a50 For #24847 - Part 2: Refactor AutofillFragmentStore into the autofill package 2 years ago
Gabriel Luong 22056752e4 For #24847 - Part 1: Refactor CreditCardsFragmentStore to AutofillFragmentStore 2 years ago
mcarare 3057ae7fd7 For #24841: Remove unused events. 2 years ago
Alexandru2909 5a21e75267 For #24760 - Remove Event.wrapper for suggestions telemetry 2 years ago
Gabriel Luong 6b0c8233de For #24780 - Part 4: Refactor AutofillSettingFragment to its own package 2 years ago
Gabriel Luong 61bc862657 For #24780 - Part 2: RenameCreditCardsSettingFragment to AutofillSettingFragment in nav_graph.xml 2 years ago
Gabriel Luong 2b86e25a4a For #24780 - Part 1: Rename CreditCardsSettingFragment to AutofillSettingFragment 2 years ago
Alexandru2909 3678b124e0 For #24790 - Remove Event.wrapper for home screen related telemetry 2 years ago
mcarare 14082b117c For #24789: Remove wrapper from PWA metrics. 2 years ago
Alexandru2909 62b89da057 For #24809 - Remove Event.wrapper for RecentSearches telemetry 2 years ago
Alexandru2909 bdac21e54d For #24786 - Remove Event.wrapper for SearchTerms telemetry 2 years ago
Alexandru2909 dea01450e5 For #24759 - Remove Event.wrapper for text selection context menu telemetry 2 years ago
Alexandru2909 1051a98c02 For #24710 - Remove Event.wrapper for RecentBookmarks telemetry 2 years ago