Commit Graph

1846 Commits (0bc5934e083e2e409ed56e5c53dd29fc3740f8c3)

Author SHA1 Message Date
Gabriel Luong d336eff594 Bug 1822634 - Refactor tab counter code from HomeFragment into TabCounterView 1 year ago
Gabriel Luong d474c99acb Bug 1822606 - Refactor HomeFragment.navigateToSearch() to the ToolbarController 1 year ago
Christian Sadilek b5b7ad6a7c Bug 1822394 - Fix intermittent failures in MessagingMiddlewareTest 1 year ago
Gabriel Luong f884503a34 Bug 1822446 - Add OnboardingController for handling onboarding functionality 1 year ago
Harrison Oglesby 87dfcffe1e Bug 1812862 - Switch browsing mode on tab selected 1 year ago
Gabriel Luong 22aca441a1 Bug 1822378 - Refactor OnboardingInteractor into its own file 1 year ago
Gabriel Luong bbf9b82ce7 Bug 1822181 - Refactor TabCounterBuilder to TabCounterView 1 year ago
Gabriel Luong 828dd8abbe Bug 1822110 - Refactor HomeMenuBuilder to HomeMenuView 1 year ago
Gabriel Luong 5103a82d9b Bug 1822109 - Refactor OnboardingState into its own file 1 year ago
Roger Yang 53b2db944e Bug 1817070 - Experimentation with different Re-engagement notifications 1 year ago
Harrison Oglesby 393c31755e Bug 1817524 - Do not show homepage if last tab of section is closed while not in view 1 year ago
Alexandru2909 66845c9c99 Bug 1821032 - Add telemetry for the homescreen no collections placeholder close button 1 year ago
sarah541 e3d1a5250f Bug 1813252 - Refactor MessagingMiddlewareTest to use a real Store instance 1 year ago
Bruno Rosa 5cf3267a03 Bug 1817029 - Add the client-deduplication ping (#861)
* Bug 1817245 - new Nimbus feature for controlling client-deduplication ping

This feature will enable/disable the sending of the `client-deduplication`
ping that will be added in a later PR.

* Bug 1817029 - Add the client-deduplication ping

The `client-deduplication` ping will be used to determine if
client IDs are being regenerated erroneously. This ping uses
the lifecycle observers to (almost) replicate the same scheduling
as the baseline ping.

* Bug 1817029 - Suggested changes

changelog
- add `reason` for new ping
- update the unit test for the new ping
- add new metrics
- allow for custom salt when hashing the Ad ID
- move the Nimbus check to the lifecycle observer
- record the new metrics

* Bug 1817029 - Update fenix/.experimenter.yaml

Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>

* Bug 1817029 - remove unnecessary pass-through function

* Bug 1817029 - add the GleanTestRule for tests

* Bug 1817029 - Update fenix/app/src/test/java/org/mozilla/fenix/components/metrics/clientdeduplication/ClientDeduplicationPingTest.kt

Co-authored-by: Travis Long <tlong@mozilla.com>

* Bug 1817029 - remove unnecessary call to main thread

* Bug 1817029 - update comment about hashing

---------

Co-authored-by: Alessio Placitelli <alessio.placitelli@gmail.com>
Co-authored-by: Travis Long <tlong@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
mike a 9a4ba51e85 Bug 1817519 – force search for not default engines 1 year ago
Mugurell e03f8fb6dc Bug 1820169 - Ensure shortcuts snackbars are shown
They must have the right parent to ensure they are shown on top of other Views
and that they are also scrollable in pair with the bottom toolbar.
1 year ago
Roger Yang 0342a75107 Bug 1820242 - Remove in_progress_media_tab_opened probe 1 year ago
Christian Sadilek 692b97fa2b Bug 1820129 - Make sure Fenix unit tests run correctly in CI
This also upgrades to use the large android worker since unit tests
take over 60mins to run otherwise.

Two tests in BrowserFragmentTest relied on FeatureFlags that are
dependent on the environment. Refactored those in line with our
other tests e.g., the SettingsFragmentTest.

BrowsersCacheTest will need some more work and is covered by a ticket.

AppRequestInterceptorTest just needed an additional mock.
1 year ago
Christian Sadilek 9e88b36f02 Revert "Bug 1817524 - Do not show homepage if last tab of section is closed while not in view"
This reverts commit 3c660fe68b872a9f20618846a96528ab20bfefcf.
1 year ago
Roger Yang 632d02220d Bug 1818085 - Add preference to allow user to choose how open links in app works. 1 year ago
Ryan VanderMeulen 28dae882e6 Bug 1820176 - Update Fenix to ktlint 0.48.2 1 year ago
Arturo Mejia 2a66705812 Bug 1818056 - Delay TCP CFR until dismissing the cookie banner re-engagement dialog 1 year ago
GitStart f8476e24bc Bug 1810631 - Display name instead of e-mail in menu (#920)
* Bug 1810631 - Display name instead of e-mail in menu.

* Bug 1810631 - Display name instead of e-mail in menu

---------

Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
jhugman 110d24a4a8 Bug 1819431 - Reimplement default browser notification with Nimbus Messaging equivalent (#1031)
* Bug 1819431 - Added default-browser-notification

* Bug 1819431 - Remove DefaultBrowserNotificationWorker and friends

* Bug 1819431 - Add tests for all messages

* Bug 1819431 - Remove settings for default browser notification

* Bug 1819431 - Remove metrics for default browser notification

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
Alexandru2909 21f59548a5 Bug 1818774 - Navigate to search dialog when interacting with homescreen private browsing button 1 year ago
Harrison Oglesby cd3128ed0f Bug 1817524 - Do not show homepage if last tab of section is closed while not in view 1 year ago
Alexandru2909 49f2ca6ac3 Bug 1818015 - Use custom tab to show privacy notice during onboarding 1 year ago
MatthewTighe 778964a4eb Bug 1818059 - Update to application services version 97.0.0. 1 year ago
Alexandru2909 1dfb2bd409 Add FLAG_SECURE to SearchDialogFragment 1 year ago
Jonas Konrad fdfc155a2d Bug 1807531 - Honor private_browsing_mode value from external intents
Change IntentReceiverActivity so that if the incoming intent has the private_browsing_mode extra set to true, it overrides the openLinksInAPrivateTab setting. This allows external apps to set this flag for sites they want opened in a private app explicitly.

External apps cannot force the link to open in a non-private tab if openLinksInAPrivateTab is enabled, in that case the extra will be ignored.

This is similar to an old fennec feature ( https://bugzilla.mozilla.org/show_bug.cgi?id=1347583 ), however I used the "private_browsing_mode" extra name since it already appears in the code, instead of the "private_tab" extra that fennec used.

Bugzilla bug is 1807531, GitHub bug is #26158
1 year ago
Mugurell 9d5aaba99d Bug 1816724 - Show previous ETP message in onboarding if TCP is not enabled
Restore showing a different description of the Tracking Protection feature in
application's onboarding if the Total Cookie Protection feature is not yet
public.
The new description mentioning Total Cookie Protection will only be shown if
the Total Cookie Protection CFR is to also be shown.
1 year ago
Jonathan Almeida c1923291d3 Bug 1816196 - Do not fetch messaging during storage initialization
While debugging a UI test, we found that the messaging feature was being
queried during the storage initialization and acting on the cached value
alone. This could lead us to no longer receiving new messages during the
app lifetime.

For the unit tests, we switched from mocking the entire feature to
mocking just the `FeaturesInterface` as the test was providing
false-positive results. It's better to create a real feature in any case
for the other testing needs.

Co-authored-by: Benjamin Forehand Jr <bennyjr169@gmail.com>
1 year ago
DreVla 18db357649 [fenix] Bug 1814506 - Add unit tests to cover multi selection of tabs
Three new unit tests have been added to cover cases when
multiple tabs are selected or unselected.
1 year ago
Zac McKenney fb7268d6df [fenix] Bug 1815623 - Add telemetry for sharing to an app from the share sheet 1 year ago
mike a dcbce063d7 [fenix] Bug 1815548 – Add offset parameter to menu2 1 year ago
Alexandru2909 92edc83ddf [fenix] Bug 1815160 - Add sponsored story id to home_recs_spoc_shown and home_recs_spoc_clicked 1 year ago
t-p-white c275034e78 [fenix] Bug 1813085 - If a message notification is being displayed, do not create another notification with the same message. 1 year ago
jhugman c5975be030 [fenix] Closes EXP-3078 Use Nimbus.fetchExperiments() more intentionally (https://github.com/mozilla-mobile/fenix/pull/28760)
* Add maybeFetchExperiments

* Move fetchExperiments from onCreate to after visual completeness

* Address reviewer comments / ktlint
1 year ago
Mugurell 380a453830 [fenix] Bug 1814425 - Don't show a suggestions header for topic specific search engines 1 year ago
Noah Bond ea21c39d8a [fenix] Bug 1814241 - Create interactor/controller for the Tabs Tray FAB 1 year ago
Gabriel Luong 6e5098f746 [fenix] Bug 1814232 - Consume upstream CFRPopupFullscreenLayout 1 year ago
Noah Bond 04dde16ae5 [fenix] Bug 1814223 - Remove RemoveTabUseCaseWrapper 1 year ago
MatthewTighe 45598b5408 [fenix] Bug 1814231 - revert growth data removal from github https://github.com/mozilla-mobile/fenix/pull/28429 1 year ago
Noah Bond ab743d4066 [fenix] Bug 1814224 - Remove SelectTabUseCaseWrapper 1 year ago
MatthewTighe 96e95ad1fb [fenix] Bug 1812204 - Add usage growth data event 1 year ago
t-p-white 9946146ecf [fenix] For 1811851: Update message notification worker to handle when a user clicks or dismisses a Notification. (https://github.com/mozilla-mobile/fenix/pull/28655)
* For 1811851: Change MessageNotificationWorker.kt to handle when a user clicks or dismisses a Notification.

* For 1811851: Re-work based on review

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
Mugurell 5ca40120f0 [fenix] Bug 1812580 - Wait for the layout cycle to complete before changing anchors
This comes to solve the issue seen in the error logs by adding the anchor
change done for the snackbar to the operation queue on thread Main thread.
Should allow to avoid chaning the snackbar's anchor in between onMeasure and
onLayout.
1 year ago
Jeff Boek 71349f9688 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25588, hide password in android 13 clipboard preview (https://github.com/mozilla-mobile/fenix/pull/28719)
* For https://github.com/mozilla-mobile/fenix/issues/25588, hide password in android 13 clipboard preview

This patch hide passwords copied from "Saved logins" in android 13 clipboard preview

Closes https://github.com/mozilla-mobile/fenix/issues/25588

* fix: show a toast for android 12 and lower

* For mozilla-mobilehttps://github.com/mozilla-mobile/fenix/issues/25588, hide password in android 13 clipboard preview

* fix: move metrics to new listeners

* fix: actually move metrics to new listeners

---------

Co-authored-by: cschanaj <cschanaj@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
Noah Bond 71e79fa494 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28265 - Refactor InactiveTabs interactor/controller into TabsTray 1 year ago
Cathy Lu 82595cecd4 [fenix] Bug 1813596 - Resolve CheckForFormDataException RuntimeException and add Crash Reporting 1 year ago
Mugurell 244dc7e2af [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Support changing autocomplete providers.
Everywhere the toolbar which needs to show autocomplete suggestions is used we
show a `ToolbarView`. So instead of having this configurable in 2 or more
places as it happened before the autocomplete functionality is configured only
from the `ToolbarView` class.
It will contain a `ToolbarAutocompleteFeature` that will be immediately updated
with the appropriate autocomplete providers or remove all such providers to
immediately update the current autocomplete or remove it entirely depending on
the new search engine selected.
1 year ago
Mugurell 12c8d94eeb [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Have the previous autocomplete functionality work with the new API
The new API allows us to move from having just two autocomplete providers:
a shipped list of domains and history result to any autocomplete providers.
1 year ago
Mugurell 556c741d4f [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Filter bookmarks and tabs depending on the selected search engine
Depending on the selected search engine:
- if it is a topic specific one show bookmarks and tabs from just the it's host
domain
- if it is a general one then don't show bookmarks and tabs at all
- if it is the default search engine then show all bookmarks and tabs.
1 year ago
Mugurell d9074aaa2c [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Ensure the "show search suggestions" user option is followed
Previously the check for the "Search -> Show search suggestions" user setting
was only used in the default SearchFragmentState but not again if users change
the current search engine as part of the unified search feature.
This comes to ensure that that check is always made when needing to configure
new search engine results.
1 year ago
Mugurell 7c033fc8cd [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Show past search terms from the current search engine
For all search engines minus the application added ones we will also show past
search terms used for previous searches with the currently selected search
engine.
1 year ago
Mugurell 4c76307b08 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Filter history suggestions depending on the selected search engine
If the current search engine is not one added by the application and not the
default one then:
- if it is a topic specific one show history from just the it's host domain
- if it is a general one then don't show history at all
- if it is the default search engine then show all history.
1 year ago
kycn d7dd3a587a [fenix] Bug 1812188 - Renew/remove telemetry probes expiring in 112. 1 year ago
mcarare 6fedd6780d [fenix] Bug 1806798 - Add toString() conversion to text from file name in tests. 1 year ago
sarah541 f346ccc74f [fenix] For https://github.com/mozilla-mobile/fenix/issues/28510 - Keep experimental messages in the correct order 1 year ago
Roger Yang 6261e25a89 [fenix] Bug 1812178 - Use debounce in tabs, history and bookmarks syncs 1 year ago
Mugurell e758aa6c8b [fenix] Bug 1812518 - Show the 3rd party download dialog as an Android View
This uses the same direction as the before patch - inflating a new View that
can then serve as an anchor for the Snackbar.
Here we could use directly the AC layout as it needed no special customization.
1 year ago
Mugurell 961eba72f3 [fenix] Bug 1812518 - Show the download dialog as an Android View
Tried to mimic the UX of a modal dialog while using Android Views.
This meant including a scrim that would consume all touches and theming the
navigation bar and status bar.
Avoiding a dialog and a separate window will allow the snackbar to see the
new "dialog" as a sibling in a CoordinatorLayout parent and so be able to
position itself based on the new "dialog".
This patch also added "start_download_dialog_layout" from A-C as it leads to
simpler and less code needed to style the layout - colors / shapes with
everything happening in XML versus calculating the values then setting them
programatically.
1 year ago
Mugurell 693161d0ea [fenix] Bug 1812518 - Control the snackbar positioning from Fenix
Previously Android-Components - BrowserToolbarBehavior would be responsible
for positioning the snackbar above the toolbar.
With that responsibility removed we can handle in Fenix positioning the
snackbar depending on the toolbar and many more cases - like positioning it
depending on the download dialogs.
1 year ago
Noah Bond 6ed5a569c8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28266 - Merge `BrowserTrayInteractor` into `TabsTrayInteractor` 1 year ago
Roger Yang fa7e89df4f [fenix] Close https://github.com/mozilla-mobile/fenix/issues/19919: Migrate away from startActivityForResult 1 year ago
Tarik Eshaq 360aa313e2 [fenix] Bug 1810818: Configures order of panels in new user onboarding 1 year ago
Arturo Mejia a45f2d4ea0 [fenix] Bug 1811504 - Update strings for cookie banner handling 1 year ago
t-p-white 47c277606b [fenix] Bug 1809444: Add Worker to generate Notifications using Nimbus messaging (https://github.com/mozilla-mobile/fenix/pull/28605)
* For 1809444: Added a MessageNotificationWorker to poll Nimbus for new messages and create a notification configured using the highest priority new message (if available).

* For 1809444: Changes from PR review

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
mike a 26563fa3fa [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/25486: fix sign in button 1 year ago
Cathy Lu d531054151 [fenix] Bug28280 - Add telemetry for form data failures 1 year ago
James Hugman dcd66ffd31 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/28589 - Restrict coroutine calls between messagemiddleware and messagingcontroller 1 year ago
James Hugman 18141bffa3 [fenix] Address reviewer comments 1 year ago
James Hugman cf84e3c869 [fenix] Refactor messaging middleware Part III 1 year ago
James Hugman a666f4313b [fenix] Move tests from DefaultMessageControllerTest to NimbusMessageControllerTest 1 year ago
James Hugman ee763d6fac [fenix] Move logic into NimbusMessagingController to correspond with NimbusMessagingStorage 1 year ago
James Hugman b779cafb75 [fenix] Refactor messaging middleware Part II 1 year ago
James Hugman d47aa5753e [fenix] EXP-2994 Refactor messaging middleware Part I 1 year ago
Alexandru2909 cf80699fe4 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27338 - Update summary text for preferences from settings screen 1 year ago
DreVla f6e8697df3 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27975: Ignore current tab when forcing inactive
Since the crash was caused by having the current tab set as inactive
while the user was still able to see it, now we ignore the current
tab if it is selected to be set as inactive.
1 year ago
jhugman 5ac1cd9b48 [fenix] EXP 2991: Add surface to messaging fml (https://github.com/mozilla-mobile/fenix/pull/28423)
* Move messaging fml to a separate file

* Add surface property to message data

* Get messages for just a single surface

* Add surface to messaging middleware

* ktlint

* Add tests for filtering by surface

* Add homescreen to default-browser message

* Move surface param to MessageActions instead of MessagingMiddleware

* Added computed property for surface to message

* ktlint

* Address reviewer comment

* Fixup tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
t-p-white f22bdeef5d [fenix] Bug 1809660: Fix for unwanted Homepage preferences animation when Pocket feature is enabled/disabled (https://github.com/mozilla-mobile/fenix/pull/28501)
* Bug 1809660: Fix for unwanted Homepage preferences animation

* Bug 1809660: Removed unused isFirefoxDefaultBrowser() function

* Bug 1809660: Updated Android tests for HomeSettingsFragment to accommodate changes made.

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 year ago
rahulsainani 2c8869f666 [fenix] Bug 1810114 - Part 1: Add isNotificationChannelEnabled helper function and tests for NotificationManagerCompat.kt 1 year ago
Noah Bond ae6a9fb6b8 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28516 - Update `InactiveTabsController` function names 1 year ago
Arturo Mejia c992f258ec [fenix] Bug 1809507 - Update cookie banner to reject_all setting 1 year ago
Arturo Mejia d7eba470d3 [fenix] Bug 1809507 - Use base domain on the cookie banner handling panel. 1 year ago
Noah Bond 721316f905 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28264 - Refactor synced tabs handling out of `NavigationInteractor` 1 year ago
Noah Bond 97af2f640e [fenix] For https://github.com/mozilla-mobile/fenix/issues/28263 - Rename inactive tabs interactor functions 1 year ago
t-p-white b2bfae66da [fenix] For https://github.com/mozilla-mobile/fenix/issues/25810 - Unified search should give hint to user that there are more menu items available by scrolling (https://github.com/mozilla-mobile/fenix/pull/27895)
* For https://github.com/mozilla-mobile/fenix/issues/25810 - Unified search should give hint to user that there are more menu items available by scrolling

* For https://github.com/mozilla-mobile/fenix/issues/25810: Updated AC version

Co-authored-by: t-p-white <t-p-white>
1 year ago
MatthewTighe e84f0ee969 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28428: update growth data with new events 2 years ago
Arturo Mejia 31e1a8f34d [fenix] Bug 1797593 - Add re-engagement dialog for cookie banners. 2 years ago
Noah Bond da02a54f84 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28262 - Refactor InactiveTabsAutoCloseDialogInteractor into InactiveTabsInteractor 2 years ago
Noah Bond 5a507fbb92 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28261 - Rename solo `xInteractor` parameters in the Tabs Tray to `interactor` 2 years ago
Alexandru2909 03493f4eaf [fenix] Bug 1807727 - Dismiss SearchDialogFragment on editing cancelled 2 years ago
mcarare e7f5d43524 [fenix] Switch to AC implementation for checking device manufacturer. 2 years ago
Alexandru2909 bc8c302026 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25812 - Set the cursor at the end for search terms when switching to toolbar editMode. 2 years ago
Jeff Boek 895858acf3 [fenix] For https://github.com/mozilla-mobile/fenix/issues/3722: Invoke search on long press home button
Co-authored-by: s-ankur <s.ankursonawane@gmail.com>
2 years ago
Mugurell 14875c6129 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28273 - Configure search with the selected search engine before user searching 2 years ago
Alexandru2909 940bf3f353 [fenix] For https://github.com/mozilla-mobile/fenix/issues/28155 - Show search terms in address bar for both edit and display modes 2 years ago
DreVla 7a421d6c05 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27697 - Load icon for unified search engine immediately.
The engine icon was set after the screen was visible leading to a delay.
With this solution, the icon will be set before the screen is visible
eliminating any visible artefacts.
2 years ago
DreVla 6794095b5f [fenix] For https://github.com/mozilla-mobile/fenix/issues/28013 - Display correct hint for topic specific search engine
Since the search engines are split into two categories, general and
topic specific, the hint for each category is different.
2 years ago
Abdul Basit 3caffd30f4 [fenix] Closes mozilla-mobilehttps://github.com/mozilla-mobile/fenix/issues/26733 Language search doesn't reset to full list view anymore 2 years ago
Arturo Mejia d36b1b48be [fenix] Bug 1797577 - Clear site data when turning off cookie banner handling. 2 years ago
Alexandru Putanu d05393714a [fenix] For https://github.com/mozilla-mobile/fenix/issues/26957 - Exit search dialog when interacting with home fragment (https://github.com/mozilla-mobile/fenix/pull/27262)
* Revert "For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent bookmark dropdown menu"

This reverts commit 5caee27b5530517d88e8a3212a3318f1ed75fba7.

* Revert "For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent visit dropdown menu"

This reverts commit b2af04c9

* Revert "For https://github.com/mozilla-mobile/fenix/issues/26790 - Dismiss search dialog when opening recent tab dropdown menu"

This reverts commit bfdf6d202133e31930c1eeb24ff60b7035479653.

* Revert "For https://github.com/mozilla-mobile/fenix/issues/26690 - Dismiss search dialog when opening recent synced tab dropdown menu"

This reverts commit 86d44a46122eafb8bfb7df9cb2f182337cc47aa4.

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with homescreen top sites

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with homescreen collection

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with homescreen recent visits

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with homescreen recent tabs

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with homescreen recent bookmarks

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Remove code to dismiss search dialog when interacting with pocket stories

* For https://github.com/mozilla-mobile/fenix/issues/26957 - Dismiss search dialog when interacting with home fragment

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2 years ago
Arturo Mejia 4280864031 [fenix] No issue: Update Cookie banner handling strings 2 years ago
Arturo Mejia 9be14b069c [fenix] Bug 1797577 - Add cookie banner handling panel to the toolbar. 2 years ago
Zac McKenney aed86b9d30 [fenix] Bug 1804107 - Fix for BaseBrowserFragment toolbar getter null crash and invalidating actions when modifying toolbar 2 years ago
Roger Yang 067b73eeca [fenix] Close https://github.com/mozilla-mobile/fenix/issues/27949: Add Nimbus exposure event for re-engagement notification 2 years ago
Alexandru2909 6f8dbbcc3c [fenix] For https://github.com/mozilla-mobile/fenix/issues/22770 - Use String.toShortUrl from A-C 2 years ago
DreVla 910948fac0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27753 - Update search engines immediately after changing language 2 years ago
Zac McKenney a9631f62ab [fenix] For https://github.com/mozilla-mobile/fenix/issues/27540: Add screen size configuration change handling 2 years ago
Charlie Humphreys 826bf1341c [fenix] update nimbus event for sync sign in
https://dictionary.telemetry.mozilla.org/apps/fenix/metrics/sync_auth_sign_in
2 years ago
Charlie Humphreys ff740dac17 [fenix] fix tests and linting 2 years ago
Roger Yang e47e85b2b6 [fenix] Close https://github.com/mozilla-mobile/fenix/issues/27949: Add engagement notification for inactive users 2 years ago
MatthewTighe 034172beeb [fenix] For https://github.com/mozilla-mobile/fenix/issues/27950: add first week days of use growth data 2 years ago
Jocelyne 2eb5f72a01 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/27288: Remove glean test rule and Android test runner from WallpaperUseCasesTest 2 years ago
James Hugman b05fb742f2 [fenix] Fixes: https://github.com/mozilla-mobile/fenix/issues/26320 Reorganize Nimbus Startup 2 years ago
DreVla b5f9134e62 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27801 - Update header text for the search selector menu 2 years ago
mcarare eef4252b74 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25808: Fix failing 'process make_default_browser deep link for API 23 and below' test. 2 years ago
mcarare 0b6c41567f [fenix] For https://github.com/mozilla-mobile/fenix/issues/25808: Suppress deprecations in tests. 2 years ago
Arturo Mejia a14dd075ef [fenix] Improve site permissions 2 years ago
kl3jvi 0910634fa0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27575: Add String.toHexColor extension 2 years ago
mike a 3072db7d92 [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/25809: tapping on search engine triggers engine selection 2 years ago
Mugurell cdc95724b5 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27549 - Collect shim data about the Pocket sponsored stories.
With the new telemetry will immediately report when a certain Pocket sponsored
story is shown (visible more than 50%) or clicked by the user.
The reasons for the new ping help easily identify the probe being sent and the
type of shim data.
2 years ago
MatthewTighe 5cb6204e0c [fenix] For https://github.com/mozilla-mobile/fenix/issues/27782: add first URI load growth data 2 years ago
MatthewTighe 7c3c29ee7f [fenix] For 27768: add FirstAppOpenForDay growth data 2 years ago
MatthewTighe 088055743c [fenix] For https://github.com/mozilla-mobile/fenix/issues/27698: add set as default growth data 2 years ago
Gabriel Luong 1ec4cf8dad [fenix] For https://github.com/mozilla-mobile/fenix/issues/27667 - Remove import-ordering from the list of disabled ktlint rules 2 years ago
t-p-white a8e3726dce [fenix] For https://github.com/mozilla-mobile/fenix/issues/27472 - Added telemetry data points for the Google Play Store review prompts 2 years ago
Alexandru2909 e8ea437ec0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25814 - Hide "Show search engines" toggle from search settings when unified search is enabled 2 years ago
DreVla 4647e47995 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27635 - New telemetry for Save to PDF failures 2 years ago
Roger Yang fdaae59999 [fenix] Close https://github.com/mozilla-mobile/fenix/issues/27023: Add capability to override telemetry URL 2 years ago
Noah Bond 9f534dcc6c [fenix] For https://github.com/mozilla-mobile/fenix/issues/27331 - Add migration for Turning Red wallpaper card colors 2 years ago
Alexandru2909 82701fd0f0 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26911 - Allow users to enable re-supported Fennec extensions 2 years ago
Alexandru2909 ae6bdc265d [fenix] For https://github.com/mozilla-mobile/fenix/issues/25811 - Add header to unified search engine menu 2 years ago
Roger Yang d8776a4c8e [fenix] Close https://github.com/mozilla-mobile/fenix/issues/24613: Remove history improvement feature flag 2 years ago
Alexander Gramiak d195ee2f6a [fenix] Add and update tests for login address view holder 2 years ago
t-p-white b31d24c2fc [fenix] For https://github.com/mozilla-mobile/fenix/issues/27455 - Rename all reference names to `AppStore` as appStore 2 years ago
Noah Bond 9640057475 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26520 - Color homepage cards via wallpaper card colors 2 years ago
Roger Yang c61875b081 [fenix] For https://github.com/mozilla-mobile/fenix/issues/11404 - Add 'Open all' options in bookmarks
* Add "Open all in new tabs" options in bookmarks
* Add "Open all in private tabs" options in bookmarks
* Add metrics tracking if the usage of "Open all in..." in bookmarks

Co-authored-by: Pg <pg.developper.fr@gmail.com>
2 years ago
Alexandru2909 e473136c8b [fenix] For https://github.com/mozilla-mobile/fenix/issues/27135 - Correctly report top sites for a11y services 2 years ago
Meiirbek Baimuratov 8d822f9ab1 [fenix] For mozilla-mobilehttps://github.com/mozilla-mobile/fenix/issues/27282: delete WallpaperManager 2 years ago
Alexandru2909 6dc49a06fa [fenix] For https://github.com/mozilla-mobile/fenix/issues/27405 - Clean up references to "Sing in to Sync" phrase 2 years ago
Mugurell 15cfa48a52 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27381 - Unregister FXA observer to prevent memory leaks 2 years ago
Noah Bond 3733fcb703 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27330 - Cache selected wallpaper card colors 2 years ago
mcarare 6efed5007d [fenix] For https://github.com/mozilla-mobile/fenix/issues/25980: Use new backQueue instead of removed backStack. 2 years ago
mcarare 5677dced0c [fenix] For https://github.com/mozilla-mobile/fenix/issues/25980: Solve overload resolution ambiguity. 2 years ago
mcarare a935dda783 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25980: Replace deprecated popUpTo var. 2 years ago
mcarare 7b3a6febf7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/25980: Use new extension function to get fragment's NavController. 2 years ago
Noah Bond f53d77e071 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27095 - Download light/dark wallpaper card colors 2 years ago
Mugurell ade77707eb [fenix] For https://github.com/mozilla-mobile/fenix/issues/27016 - Ensure smooth search UX after the MR onboarding is closed
If the app is opened from the search widget and the MR onboarding is shown then
the backstack will have the following structure:
- root, homeFragment, searchDialogFragment, onboardingFragment
as opposed to otherwise
- root, homeFragment, searchDialogFragment.

This patch allows to avoid the MR onboarding fragment causing the
SearchDialogFragment to not know that below it is the HomeFragment and
consequently not applying transparency or propagate user touches to the parent
Activity.
2 years ago
kycn 8bb0b07e4d [fenix] Close https://github.com/mozilla-mobile/fenix/issues/26948: Enable custom extension collections in Beta.
Similar to how Nightly functions, custom extension collections are enabled to be used in Firefox Beta as well.
2 years ago
Roger Yang 31bd795d2f [fenix] Close https://github.com/mozilla-mobile/fenix/issues/27147: Add telemetry for bookmark search 2 years ago
Roger Yang c5efabc51e [fenix] Close https://github.com/mozilla-mobile/fenix/issues/24498: Add test for history search telemetry 2 years ago
Arturo Mejia 4fdfb13d88 [fenix] For https://github.com/mozilla-mobile/fenix/issues/3709: Add save to PDF UI. 2 years ago
MatthewTighe 74df63148a [fenix] For https://github.com/mozilla-mobile/fenix/issues/27127: do not display wallpaper onboarding in private browsing mode 2 years ago
Alexandru2909 3960af62d7 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26424 - Handle special legacy wallpaper cases 2 years ago
MatthewTighe 8bacd26116 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27055: handle legacy wallpaper naming case 2 years ago
Gabriel Luong 1c6da00247 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27026 - Use the wallpaper adapted text color for the Collections placeholder 2 years ago
Roger Yang d2f30aebe8 [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/11404 - Create open all function"
This reverts commit ea926e80173a310687f81df757c8b011aca84c5e.
2 years ago
Roger Yang b78bfb94cb [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/11404 - Add 'Open all in private tabs' option as requested."
This reverts commit 83ed1abdc0846e726e2fcb46d0fcb7539f1ff9c3.
2 years ago
Roger Yang 680be9cf6d [fenix] Revert "For https://github.com/mozilla-mobile/fenix/issues/11404 - Create alert message when a lot of tabs are to be opened."
This reverts commit 8517fea003842f6216e8b02a92abc61837384ca0.
2 years ago
Mugurell 4070064fa2 [fenix] For https://github.com/mozilla-mobile/fenix/issues/26644 - Apply the wallpaper provided text color to the Fenix logo
And to the private mode switcher.
2 years ago
MatthewTighe 8980e02496 [fenix] For https://github.com/mozilla-mobile/fenix/issues/27055: check whether applied wallpaper name is blank 2 years ago
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