Commit Graph

1533 Commits (9f7c0515c9763f131a2eb73392cb672c340a77a5)

Author SHA1 Message Date
MatthewTighe 58511263aa [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26997: convert v1 wallpapers into collection group 2 years ago
Pg 3b412f7dc8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/11404 - Create alert message when a lot of tabs are to be opened.
Current threshold is 15.
2 years ago
Pg ef15f5154c [fenix] For https://github.com/mozilla-mobile/fenix/issues/11404 - Add 'Open all in private tabs' option as requested.
https://github.com/mozilla-mobile/fenix/pull/21212#discussion_r739172674

- Add option is tree dot menu
- Edit folder opening to be aware of browsing mode
- Add metrics
- Add unit tests for 'Open all in private tabs'
- Add Android tests for open all in private.
2 years ago
Pg 871604943d [fenix] For https://github.com/mozilla-mobile/fenix/issues/11404 - Create open all function
- Create element to be displayed

- Update the interface and bind in the view holder
Set the filter to limit this action to FOLDER.

- Create core function
Main logic is done on the controller (has it should be done). The whole
process is done in one coroutine to be non-blocking as many
(sub)folders & links can be present. If folder is empty, a toast is
displayed. Else iterate on items. When item is:
- a FOLDER -> restart process (without toast) on the folder
- a ITEM -> open it
- a SEPARATOR -> do nothing
Once finished, show the tabs tray.

Toast message is defined in fragment to have access to context.

- Create androidTest for openAllInTabs
- Create tests for handleBookmarkFolderOpening
- Display 'open all' options only if folder has at least on child:
A coroutine and suspended functions have to be used, since `getTree`
is async.
2 years ago
mike a dd7c2f7eec [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26995: add sorting of wallpapers on wallpapers onboarding tool 2 years ago
mike a 954ed79fa1 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26971: fix wallpaper onboarding display condition 2 years ago
Mugurell 342c9551e4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26424 - Add contrasting text color for migrated Turning Red Wallpapers 2 years ago
Alexandru2909 bfddfa7177 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26424 - Create wallpaper file migration helper 2 years ago
mike a 27d80e6de0 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26215: add telemetry events for wallpaper onboarding dialog 2 years ago
sarah541 3b36328a09 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26908 - Update wallpapers settings page design 2 years ago
Jan-Erik Rediger a042569654 [fenix] Fix naming of generated exception 2 years ago
Alexandru2909 5202efa275 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26690 - Dismiss search dialog when opening recent synced tab dropdown menu 2 years ago
Alexandru2909 632a03ff12 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent bookmark dropdown menu 2 years ago
Alexandru2909 49d9032df2 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent visit dropdown menu 2 years ago
Alexandru2909 3d949c808f [fenix] For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent tab dropdown menu
For https://github.com/mozilla-mobile/fenix/issues/26790 -  recent tab
2 years ago
MatthewTighe 03f7ac5328 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26511: apply wallpapers immediately and observe updates 2 years ago
mike a af79653039 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26212: Download wallpapers when a thumbnail is clicked 2 years ago
Mugurell 0168388546 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26910: Enable TCP for all modes
Unify the TCP feature with the TCP setting allowing both to be controlled
through the same Nimbus experiment.
Allow changing the default cookie policy to TCP based on the Nimbus experiment.
2 years ago
Christian Sadilek 6c2ce5661e [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/26511: Parallelize work for setting the wallpaper"
This reverts commit e7edeaababfb2828a2c6b200911421f4967a53ac.
2 years ago
Christian Sadilek 028d7e9136 [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/26511: Avoid waiting to set no wallpaper"
This reverts commit 5010de1aa7b97c54d53d04744090a1d3f339d508.
2 years ago
mcarare 932823c871 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Fix ktlint issues and remove them from baseline. 2 years ago
Mugurell f930d3e3cc [fenix] For https://github.com/mozilla-mobile/fenix/issues/26511: Avoid waiting to set no wallpaper
This should squeeze the most performance for users who haven't set a wallpaper.
2 years ago
Mugurell d6330b6dac [fenix] For https://github.com/mozilla-mobile/fenix/issues/26511: Parallelize work for setting the wallpaper
Split loading the bitmap from storage and actually setting it in two operations
with one that can run in parallel with onCreateView for HomeFragment and one
that can be used serially on the main thread to actually set the wallpaper.

This seems like the best compromise to ensure that everytime the homescreen is
shown it will have the wallpaper set but does affect the performance - there is
a delay in showing HomeFragment to account for waiting for the wallpaper to be
set.
In testing the new delay seems close to the one from the initial wallpapers
implementation. See more in https://github.com/mozilla-mobile/fenix/pull/26794.
2 years ago
Arturo Mejia a31c5edce0 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26858: Remove unused nimbus engine-settings tabs-prioritization-enabled feature. 2 years ago
Arturo Mejia 6db2c727ec [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26858: Remove unused nimbus engine-settings total-cookie-protection-enabled feature. 2 years ago
mcarare e96a2995ad [fenix] For https://github.com/mozilla-mobile/fenix/issues/26844: Rename CFRPopupFullscreenLayout class to conform to filename rule. 2 years ago
sarah541 46536b7264 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26731 - First run onboarding updates 2 years ago
mcarare 2bc319e63f [fenix] For https://github.com/mozilla-mobile/fenix/pull/12725: Replace removed static "set", "get" methods of ViewTreeSavedStateRegistryOwner.
ViewTreeSavedStateRegistryOwner is retrieved/set with new extension methods.
2 years ago
sarah541 6e42dd5236 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26759 - Crash fix for UnsupportedOperationException 2 years ago
Gabriel Luong 6cfe8c9008 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26739 - Display MR onboarding dialog to existing users as soon as the app is opened 2 years ago
Mugurell 263149bab8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/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 4662dbd8ab [fenix] For https://github.com/mozilla-mobile/fenix/issues/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 87469071cd [fenix] For https://github.com/mozilla-mobile/fenix/issues/26717 - Only show the MR onboarding dialog for existing users 2 years ago
MatthewTighe e70f6d19af [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26211: Download wallpapers when thumbnails clicked 2 years ago
MatthewTighe 3dbb42988f [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/26214: Download wallpaper thumbnails at app startup 2 years ago
Alexandru2909 69688b8b9c [fenix] For https://github.com/mozilla-mobile/fenix/issues/26706 - Add sponsored urls filter in BlocklistHandler 2 years ago
Alexandru2909 ed16051b4f [fenix] For https://github.com/mozilla-mobile/fenix/issues/26706 - Change TopSite.containsQueryParameters as Uri extension function 2 years ago
Jonathan Almeida c909aaea13 [fenix] Close https://github.com/mozilla-mobile/fenix/issues/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 085a3e4af1 [fenix] For https://github.com/mozilla-mobile/fenix/issues/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 a1a75ee8d4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26511: load homescreen wallpaper in blocking coroutine 2 years ago
Gabriel Luong ca9d35f3f7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26169 - MR Home Onboarding Dialog for upgrading users 2 years ago
Mugurell 2cfbe09dbf [fenix] For https://github.com/mozilla-mobile/fenix/issues/26224 - TCP CFR telemetry 2 years ago
Mugurell d6967d5ef7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/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 38d0eb7a9a [fenix] For https://github.com/mozilla-mobile/fenix/issues/18175 - Add telemetry for cookies option in custom ETP. 2 years ago
Mugurell 733dce16d6 [fenix] For https://github.com/mozilla-mobile/fenix/issues/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 541a48765b [fenix] For https://github.com/mozilla-mobile/fenix/issues/26400 - Add long-press option to remove tab pickup on homescreen 2 years ago
Alexandru2909 d14f0e2b6e [fenix] For https://github.com/mozilla-mobile/fenix/issues/26398 - Filter recent synced tabs using the homescreen blocklist 2 years ago
MatthewTighe f98b9275da [fenix] Add updated wallpaper use cases and activate them with feature flag. 2 years ago
MatthewTighe 0b1667df4b [fenix] Add updated downloader and file manager 2 years ago
Alexandru2909 f3f2fadd82 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26399 - Use a list of tabs for recent synced tabs success state 2 years ago