2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00
Commit Graph

6070 Commits

Author SHA1 Message Date
Mozilla L10n Automation Bot
e7d64d886e Import l10n. 2021-12-31 00:40:16 +00:00
mike a
46b5dd2706 Closes #10737: Searching a language/saved password displays a misplaced "x".
Setting max width for the search view in language settings and saved logins screens. Removed SyncAuthClosed event from LocaleSettingsFragment, an apparent copy-paste.
2021-12-30 05:37:58 +00:00
Mozilla L10n Automation Bot
acc21f9f7f Import l10n. 2021-12-30 00:38:58 +00:00
Gabriel Luong
c8e2fd3847 For #22973 - Remove @color/contrast_text_light_theme redirection 2021-12-28 20:06:05 +00:00
Gabriel Luong
794823c5ec For #22983 - Remove @color/destructive_button_text_color redirection 2021-12-28 19:37:21 +00:00
TasosB
05e6ba40b4 For #21483 - Remove light theme tinting of folder icon in the Bookmark view 2021-12-28 18:56:36 +00:00
TasosB
54ffe7db03 For #21483 - Use primaryText attribute for download icons fill color 2021-12-28 18:56:36 +00:00
Gabriel Luong
4078bf7863 For #22971 - Remove @color/above_dark_theme redirection 2021-12-28 16:47:59 +00:00
Mozilla L10n Automation Bot
716e1194a0 Import l10n. 2021-12-28 00:35:39 +00:00
Mozilla L10n Automation Bot
fa377bf0d6 Import l10n. 2021-12-27 00:35:38 +00:00
Mozilla L10n Automation Bot
ec9cf0338e Import l10n. 2021-12-25 00:37:17 +00:00
rxu
2203ebf923 Pass distribution_id to Socorro crash report 2021-12-24 01:50:32 +00:00
Mozilla L10n Automation Bot
00d18125b2 Import l10n. 2021-12-24 00:44:51 +00:00
Gabriel Luong
c50073f7e4 For #22965 - Add Form On, Form Off, Indicator Active, Indicator Inactive color tokens 2021-12-23 21:46:57 +00:00
Gabriel Luong
3ffece2b87 For #22965 - Remove Control Active color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
38c55dbbc0 For #22965 - Update description of Layer Accent color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
a7e78a19d0 For #22965 - Update description of Text Inverted color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
c9cb55cf3f For #22965 - Remove Control Dark design color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
945dde72e3 For #22965 - Rename Action Disabled to Form Disabled for the design color tokens 2021-12-23 21:46:57 +00:00
Gabriel Luong
97c42ca84e For #22965 - Update Control to Form Surface design colors 2021-12-23 21:46:57 +00:00
Gabriel Luong
5bea4554ad For #22965 - Add Form Selected design color token 2021-12-23 21:46:57 +00:00
Gabriel Luong
c9bc38d67c For #22965 - Update Action Teritary to Form Default design colors 2021-12-23 21:46:57 +00:00
Gabriel Luong
1cf91a2ef4 For #22965 - Change Pill button to Chip for Action Secondary design color token description 2021-12-23 21:46:57 +00:00
Gabriel Luong
16bf150fb9 For #22965 - Remove Toolbar background from the description of Layer 3 design color token 2021-12-23 21:46:57 +00:00
Roger Yang
0b0f69ab4e Closes #22754: Customize home button should work on fresh install 2021-12-23 20:34:10 +00:00
Arturo Mejia
27def6fd0c For #22851: Optimize wallpaper testing images. 2021-12-23 10:24:32 +00:00
Roger Yang
b9b2bc3c7d Issue #22561: Fix tab group titles colour when in private mode 2021-12-22 22:48:57 +00:00
mcarare
03f1aa3d8b For #22415: Remove element type from content descriptions.
Adding the type to content description is not advised according to a11y guidelines.
2021-12-22 22:23:37 +00:00
Gabriel Luong
dc576a2ad7 Revert "For #22777 - Replace about_link_normal_theme with fx_mobile_text_color_action"
This reverts commit 986a48b1db.
2021-12-22 14:43:10 -05:00
mavduevskiy
89f5e96d73
For #18160: Show a prompt when trying to leave private browsing with active downloads (#22912)
Co-authored-by: mike a <mavduevskiy@gmail.com>
2021-12-22 00:12:44 -08:00
Mozilla L10n Automation Bot
105a2e5fc6 Import l10n. 2021-12-22 00:34:24 +00:00
Grisha Kruglov
5bbfd49e1d Refactor History types to eliminate nullability
This introduces a separate HistoryDB type at the PagedHistoryProvider
layer, that doesn't need to deal with positions. Positioning logic in
HistoryDataSource becomes a type conversion between the new type and an
existing History type that UI and ItemKeyedDataSource API is written against.

With this refactor, we entirely eliminate nullability from these types.
2021-12-21 19:54:18 +00:00
Grisha Kruglov
836ff1151b Closes #22764: Convert History.id to an Int position
We were converting Long timestamps into Ints (and getting negative
numbers back), and treating that as, basically, a position for the
paging API; the paging API would pass us back the obscure negative
number back as an offset, and we'll mishandle it resulting in an
infinite loop.

This patch removes all of the Long -> Int conversions, and introduces an
explicit 'position' that is calculated once we have a full page of
results completed.
2021-12-21 19:54:18 +00:00
Mugurell
34c0a17b4d For #22852 - Add a new "Storage access" permission 2021-12-21 17:45:19 +00:00
Arturo Mejia
cf31bc408a For #22931 Only enable wallpapers on normal mode 2021-12-21 09:49:12 -05:00
mcarare
00280d3b65 For #20513: Use UrlMetricType for search engine submission url. 2021-12-21 11:25:00 +00:00
Roger Yang
22bcdeafe0 Closes #22736: Do not remove focus from toolbar when scrolling 2021-12-20 20:38:04 +00:00
Arturo Mejia
7a44412619 For #22851 toggle wallpapers when tap on the Firefox logo 2021-12-20 15:53:44 +00:00
rxu
073fd89390 Add default topsite MeiTuan for MozillaOnline builds 2021-12-20 01:42:41 +00:00
Mozilla L10n Automation Bot
ee34b07ecc Import l10n. 2021-12-20 00:39:20 +00:00
Mozilla L10n Automation Bot
606f2eb100 Import l10n. 2021-12-19 00:32:51 +00:00
Mozilla L10n Automation Bot
dd64d92b12 Import l10n. 2021-12-18 00:36:17 +00:00
Matt Tighe
db71d8dfe7 fixes #22889: add bottom spacer to onboarding adapter 2021-12-17 22:31:18 +00:00
Mugurell
eb2ec677ca For #22508 - Increase menu height to avoid it become scrollable
Compose enforces a DropdownMenuItem having at least a 64dp height
(48 dp height + 8dp vertical padding) so we need to ensure the parent
doesn't hardcode a smaller height.
2021-12-17 17:38:22 +00:00
Roger Yang
26198330e9 Closes #22671: Show correct time groups header in history 2021-12-17 16:32:56 +00:00
mcarare
bbf0ccca54 For #22450: Replace quit icon with AC one. 2021-12-16 09:00:25 +00:00
Mozilla L10n Automation Bot
1c34db22f4 Import l10n. 2021-12-16 00:46:56 +00:00
Grisha Kruglov
33af7d8729 Fix breaking change in KeyProvider
`key` was renamed to `getOrGenerateKey` and is now a `suspend`.
2021-12-15 22:57:06 +00:00
Grisha Kruglov
8de4c0b4db For #22569: Remove allopen plugin and Mockable annotations 2021-12-15 12:59:57 +00:00
rxu
b41542dc5e Modify strings for Privacy notice for MozillaOnline builds 2021-12-15 02:54:14 +00:00
Mozilla L10n Automation Bot
b96dda5c89 Import l10n. 2021-12-15 00:42:58 +00:00
Gabriel Luong
9e647fd821 For #22858 - Set all @color/tab_tray_item_media_stroke usages to @color/photonWhite 2021-12-14 23:38:53 +00:00
Matt Tighe
edcccc2f4c fixes #20833: move home recycler bottom margin into standalone item 2021-12-14 22:31:05 +00:00
Gabriel Luong
59a17894f2 For #22842 - Use gradient color tokens for Reader mode gradient 2021-12-14 21:53:28 +00:00
Gabriel Luong
2c22622edb For #22836 - Replace primary_text_private_theme with fx_mobile_private_text_color_primary color token 2021-12-14 19:30:00 +00:00
Noah Bond
8ca1a7e271 For #22832 - Added parameters to base Text composables 2021-12-14 18:59:09 +00:00
Arturo Mejia
0ac2899570 For #22851 add wallpapers feature flag 2021-12-14 18:20:43 +00:00
Gabriel Luong
cd83cfdda7 For #22839 - Remove unused tabTrayHeadingIcon and tabTrayHeadingIconInactive attributes 2021-12-14 17:07:43 +00:00
Gabriel Luong
07828aa979 For #22839 - Remove @color/tab_tray_heading_icon_inactive_dark_theme redirection 2021-12-14 17:07:43 +00:00
Gabriel Luong
d45c092f11 For #22839 - Remove @color/tab_tray_heading_icon_dark_theme redirection 2021-12-14 17:07:43 +00:00
Mozilla L10n Automation Bot
6669363ed9 Import l10n. 2021-12-14 10:23:24 +00:00
Gabriel Luong
b8bc14c0ff For #22808 - Add private theme design tokens 2021-12-13 20:05:38 +00:00
Gabriel Luong
da0cb197ac For #22809 - Use the design tokens for the Scrim Start/End colors 2021-12-13 17:13:24 +00:00
Gabriel Luong
d457050da2 For #22812 - Remove unused shadow attribute 2021-12-13 16:46:07 +00:00
Gabriel Luong
9dd3f58241 For #22800 - Remove unused tabTrayToolbarBackground attribute 2021-12-13 16:12:23 +00:00
Gabriel Luong
8fee873d40 For #22800 - Remove unused tabTrayItemSelectedBackground attribute 2021-12-13 16:12:23 +00:00
Gabriel Luong
0a9590cb23 For #22800 - Remove unused tabTrayItemBackground attribute 2021-12-13 16:12:23 +00:00
Mozilla L10n Automation Bot
f7d0c2831a Import l10n. 2021-12-13 00:35:55 +00:00
Mozilla L10n Automation Bot
6cfe332e18 Import l10n. 2021-12-12 00:33:02 +00:00
Gabriel Luong
41fd47fc06 For #22793 - Update the colors for Scrim Start/End design tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
35454ec674 For #22793 - Swap the colors for Gradient Start/End design tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
29fc9c4ea5 For #22793 - Add Icon Gradient Start/End color tokens 2021-12-11 01:51:26 +00:00
Gabriel Luong
543f2000af For #22793 - Rename fx_mobile_icon_color_notice color token to fx_mobile_icon_color_information 2021-12-11 01:51:26 +00:00
Matt Tighe
fee26e62a8 Fixes #22688: remove inactive_tabs_recently_closed probe 2021-12-10 23:20:26 +00:00
Gabriel Luong
986a48b1db For #22777 - Replace about_link_normal_theme with fx_mobile_text_color_action 2021-12-10 17:31:52 +00:00
Gabriel Luong
d6091c9ea4 For #22779 - Remove @color/inset_light_theme redirection 2021-12-10 15:53:50 +00:00
mcarare
b4bf7abfb3 For #22784: Show collection snackbar only if fragment is still attached. 2021-12-10 15:09:04 +00:00
mcarare
0cb4059b12 For #17130: Replace hardcoded strings with string resources. 2021-12-10 14:44:39 +00:00
Mozilla L10n Automation Bot
3058f52578 Import l10n. 2021-12-10 02:12:25 +00:00
aime Soriano Pastor
9bfc94b793 For #9294: Add option to clear current site data in quick settings dialog. 2021-12-09 23:08:08 +00:00
Gabriel Luong
e150f6118b For #22694 - Remove primary_text_dark_theme usage 2021-12-09 21:13:35 +00:00
MickeyMoz
07d43971c0 Update Android Components version to 97.0.20211208143435. 2021-12-09 11:41:37 +00:00
Mozilla L10n Automation Bot
c3cf4ae9e0 Import l10n. 2021-12-09 00:36:22 +00:00
Jonathan Almeida
01ba8959ce Issue #22757: Check the parent cast to AbstractBrowserTrayList first
We re-use the same ViewHolders in search term groups, so when we need to
cast to a AbstractBrowserTrayList for tab reordering, we need to check
our parent correctly first.
2021-12-08 23:54:46 +00:00
Christian Sadilek
6637f61088
Support tab movement/reordering (#22751)
* Adds basic support for tab reordering via drag-and-drop selected tabs

* ktlint/detekt formatting

* Use defaultTabsFilter (now not private) instead of getter

* Convert from position+filter API to target+placeAfter
Unfortunately I still need the filter passed around a bit

* Handle inactive tabs' holder being children of the RecyclerView of the normal tabs
Don't go through LayoutManager needlessly

* Non-working use tabID the whole way. Does not compile.

* Fix to do direct tab ID and use grid setting directly

* Remove non-null assertion. Now fully works for "other" tabs.

* Prevent grouped tabs from being dragged

* Remove unused import

* Add/fix comments

* Do API version check and use deprecated startDrag if too old.

* Build process fails: both outdated and too new, so reverting to just too new

* Use deprecated function and suppress warning

* fix space

* Suppress "TooManyFunctions" on DefaultTabsTrayController

* Repeatedly update tab movement during drag

* Remove multi-tab movement, only allow dragging if tab groups disabled, fix tab positioning during movement
I'm forced to suppress LongParameterList to get the settings information where it needs to go though

* Remove settings argument and corresponding long args suppression: instead get settings from parent AbstractBrowserTrayList's context

* New UI: Select a tab and then, while holding down, start dragging

* Revert to using before/after boolean to accomodate delays
Move drag transparency to start of drag

* Use new BlankDragShadowBuilder and DraggableItemAnimator to handle tab movement

* Replace Pair<>s with data classes

* Only drag if exactly 1 tab selected, don't consume drag event if not used

* Auto-scroll tab tray while dragging near top/bottom edge

* Remove unexpected scrolling on tab bind (triggered when tab is selected)

* Fix broken scroll behavior during dragging

* Cleanup for ktlint/detekt

* Constantly set elevation during drag in case of update
Clean code at drag start

* Add custom drag start behavior

* Add drag distance constant, do all touch-drag behavior in OnTouchListener

* Disable parent vertical scrolling on drag start, fix detekt ComplexCondition

* Minor cleanup/comments

* Revert removal of scroll on bind, this was related to something different

* Correction to prepareForDrop to match documentation- doesn't seem to have any effect

* Simplify via unchecked typecast, use ViewCompat

* Use ViewConfiguration.scaledTouchSlop instead of arbitrary 30px

* Added tabReorderingFeature flag, split drag interactor to separate function to satisfy complexity requirement

Co-authored-by: Steven Knipe <ssk97@case.edu>
Co-authored-by: ssk97 <knipesteven@gmail.com>
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2021-12-08 16:36:49 +00:00
Christian Sadilek
f919e97445 Closes #21759: Do not render home fragment when launching to tab
Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
2021-12-08 10:51:06 +00:00
Mozilla L10n Automation Bot
910a425cc3 Import l10n. 2021-12-08 01:36:35 +00:00
Gabriel Luong
378f19eb59 For #22741 - Remove all unused strings marked moz:removedIn <= 94 2021-12-07 23:02:57 +00:00
Christian Sadilek
229c410437 Introduce timeout for capturing thumbnail in BrowserAnimator 2021-12-07 22:28:44 +00:00
Christian Sadilek
ae0dba29b1 Prevent flash when navigating to home 2021-12-07 22:28:44 +00:00
Mugurell
604f188970 For #22445 - Improve the scrolling behavior for Recently visited
One important issue was that the items are smaller that the width of the
screen and so a bit of the next column would be showing also and user could
interact with this only peaking items and a long press would open a dropdown
menu with no place to anchor it.
To mitigate this:
- the items will now snap to the next position when scrolling so that we'll
always show at least one column in it's entirety.
- menus are enabled only if more than half of the item is visible effectively
disabling clicks on that peaking area of neighbour columns.

This patch also updates the divider for history groups which previously wasn't
showing.
2021-12-07 16:23:55 +00:00
Gabriel Luong
67fb033f1b For #22729 - Tag unused strings for removal 2021-12-07 15:38:15 +00:00
Mozilla L10n Automation Bot
e6d1c9a564 Import l10n. 2021-12-07 01:04:32 +00:00
Gabriel Luong
6a28296be7 For #22702 - Replace home_show_all_button_text with fx_mobile_text_color_action color token 2021-12-07 00:36:29 +00:00
Gabriel Luong
596072729d For #22701 - Replace whats_new_notification_color with fx_mobile_icon_color_notice color token 2021-12-06 21:46:44 +00:00
Gabriel Luong
a4894256f9 For #22712 - Remove unused menuCategoryText attribute 2021-12-06 20:56:43 +00:00
Gabriel Luong
81c42ca7ee For #22696 - Remove unused tab_header.xml resource 2021-12-06 20:16:43 +00:00
Gabriel Luong
83fdf78da1 For #22708 - Remove unused syncedTabsSeparator attribute 2021-12-06 19:37:52 +00:00
Sarah Khan
e18cf36117 For #22495 - Disable inactive tabs survey 2021-12-06 18:43:28 +00:00
Gabriel Luong
2c5cfb2447 For #22698 - Remove unused mozac_browser_menu_item_switch.xml resource 2021-12-06 13:37:32 +00:00
Mozilla L10n Automation Bot
c27714a314 Import l10n. 2021-12-06 00:43:07 +00:00
Mozilla L10n Automation Bot
2a5a2d7b6e Import l10n. 2021-12-05 00:38:09 +00:00
Mozilla L10n Automation Bot
1d5f7db7c7 Import l10n. 2021-12-04 00:31:57 +00:00
Noah Bond
73cfd0b145 For #22691 - Add Composables for Primary and Secondary text 2021-12-03 23:46:51 +00:00
Gabriel Luong
0078d7fe01 For #22676 - Replace top_site_title_text with fx_mobile_text_color_primary color token 2021-12-03 18:33:48 +00:00
Gabriel Luong
4fe3d6db02 For #22654 - Add new color tokens provided by the design systems to colors.xml 2021-12-03 03:34:11 +00:00
Gabriel Luong
e20ef25bd1 For #22637 - Add new color tokens provided by the mobile styles to FirefoxTheme 2021-12-03 03:34:11 +00:00
Mozilla L10n Automation Bot
caea82864d Import l10n. 2021-12-03 00:35:55 +00:00
Noah Bond
31e86842dd
For #22516 - Fixed alignment of "Show all" buttons on the homescreen (#22650)
* For #22516 - Fixed show all button alignment with section headers on the Homepage

* For #22516 - Added correct content description back in for recently visited show all button

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-02 23:00:33 +00:00
Christian Sadilek
26713a58c8 Refactor: Move historymetadata classes in separate package 2021-12-02 22:28:58 +00:00
Sebastian Kaspari
b04eeccf14 Android Autofill: Enable keyboard inline autofill suggestions 2021-12-02 11:43:52 +00:00
Roger Yang
3d33a9422c Close #20701: Dismiss keyboard when scrolling home screen 2021-12-01 23:56:46 +00:00
Mozilla L10n Automation Bot
9fa9ae3375 Import l10n. 2021-12-01 03:35:53 +00:00
rxu
4d9a58c156 Add distribution_id into first session ping 2021-12-01 03:05:57 +00:00
Mozilla L10n Automation Bot
514f41fe67 Import l10n. 2021-11-30 23:21:51 +00:00
Gabriel Luong
3c82a34aa1 For #22592 - Refactor hideOnboardingIfNeeded() calls when the home menu items are tapped 2021-11-30 22:48:25 +00:00
Mugurell
5c3fedd707
For #22534 - Show history highlights and groups in "Recently visited" (#22535)
* For #22534 - Update homescreen section name to "Recently visited"

* For #22534 - Show both history highlights and groups in Recently visited

For now the metadata groups don't support scoring so as an interim solution we
will show up to 9 items, evenly distributes, first favoring groups sorted by
date then history highlights pre-sorted by default.

Tapping a history highlight will switch to it's already open tab if available
or create a new one in which to load it if needed.

A "Remove" option will also be available for history highlights to remove it
from the screen and also from history.
Currently removing a group / highlight will not query new ones to again show up
to 9 items, this will be implemented separately.

* For #22534 - Rename and refactor historymetadata to recentvisits

The updated feature supports more than history metadata so updating the overall
naming scheme seems needed.
To signal that this is a homescreen feature the entire package is moved to home

* For #22534 - Update UI tests to account for the new items space on the screen

Saw failures about not finding the collection section on screen.
This is probably happening because w are now adding the recent visits to
homescreen above the collections section pushing it off screen.

Since the collections might be obstructed by the toolbar shown on top as a
quick solution we'll scroll to the next homescreen section so that the
collections will be shown above in their entirety.

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

* Update app/src/main/java/org/mozilla/fenix/home/recentvisits/RecentVisitsFeature.kt

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>

Co-authored-by: Gabriel Luong <gabriel.luong@gmail.com>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-29 20:12:52 +00:00
Noah Bond
de1c6b0dae
Tab group count telemetry (#22479)
* For #22410 - Refactored tab sorter metrics into a middleware

* For #22410 - Created distribution metric for tab group sizes

* For #22410 - Created tests for tabs tray middleware

* For #22410 - Merge fixes

* For #22410 - Added PR number to metric

* For #22410 - Fixed unit tests post merge. Added waitUntilIdle to new tests.

* For #22410 - Added missing line to middleware to have the Store process actions

* For #22410 - Updated metric expiration to December

* For #22410 - PR Feedback

* For #22410 - Removed else from middleware when
2021-11-29 18:16:57 +00:00
Mozilla L10n Automation Bot
6003e16076 Import l10n. 2021-11-29 00:45:55 +00:00
Mozilla L10n Automation Bot
cfac710754 Import l10n. 2021-11-27 00:46:13 +00:00
Gabriel Luong
7c2d9bd8a8 For #22595 - Remove unused OnboardingAutomaticSignInViewHolder 2021-11-26 20:44:07 +00:00
Sebastian Kaspari
1bcf37ba7c Closes #22552: Optimize PNGs with ImageOptim 2021-11-26 12:44:54 +00:00
Gabriel Luong
91da5318e3 For #22211 - Use Hero images for Recent Bookmarks 2021-11-25 20:35:55 +00:00
Arturo Mejia
3f86a5d6f9 Improve loading URLs 2021-11-25 14:26:21 -05:00
Sebastian Kaspari
e341109ced Issue #12731: Disable suspending of engine sessions under memory pressure in Nightly 2021-11-25 14:44:04 +00:00
Mugurell
548efefcbb For #22442 - Don't display individual tab if part of the Jump back in tabs group
We'll show as a recent tab the next most recent tab not part of the last active
search group.
2021-11-25 09:16:15 +00:00
Mugurell
685da115c9 For #22442 - Don't display history group if already in Jump back in 2021-11-25 09:16:15 +00:00
Mugurell
779f4fc704 For #22502 - Keep the previous string resource until safe to remove
See https://github.com/mozilla-mobile/fenix/issues/20871
2021-11-25 08:07:12 +00:00
Gabriel Luong
749da13516 For #22250 - Convert Recent Bookmarks to Jetpack Compose 2021-11-24 19:10:48 +00:00
Grisha Kruglov
413ff7cd85 Closes #22499: Emit search group disband action on history group removal
This is needed to prevent removed search groups from coming back after
user interacts with the tab. E.g. if we don't fire this action, upon
interaction with the tab after a corresponding search group was removed
we will end up creating metadat with the deleted 'searchTerms' (they'll
be read from the 'historyMetadata' state on the tab).

At this point we probably want to start encapsulating all of this in a
use case - let's do that separately in
https://github.com/mozilla-mobile/android-components/issues/11309, and
just fix the bug for now.
2021-11-24 17:52:59 +00:00
Mozilla L10n Automation Bot
de30610aa6 Import l10n. 2021-11-23 22:32:50 +00:00
Arturo Mejia
7b7ef2e661 For issue #22537 crash: BookmarkFragment is attached to a context 2021-11-23 21:53:47 +00:00
Arturo Mejia
74406bef59 For issue #5298 the same page appears in the History section multiple times 2021-11-22 14:18:42 -05:00
Mugurell
888bbc770e For #22502 - Update "Jump back in" group's subtitle format 2021-11-22 07:50:35 +00:00
Mozilla L10n Automation Bot
396c51d569 Import l10n. 2021-11-21 00:37:05 +00:00
Mozilla L10n Automation Bot
708b78d3a0 Import l10n. 2021-11-20 15:35:23 +00:00
Mozilla L10n Automation Bot
f0a3653d7b Import l10n. 2021-11-19 00:51:12 +00:00
Grisha Kruglov
63154a18f9 Closes #22484 - Track direct loads per tab; fix search term lookup
This patch fixes two problems:
1) We were treating "direct tab load" as an event which applies
   uniformally to all tabs, even though it's actually an event which
   happens for a specific tab. This lead to background tabs (pages opened as new tab)
   setting the direct load flag, and then a simultaneously loading
   parent tab would incorrectly interpret that flag for itself.

   The patch switches this tracking from a simple boolean (are we direct
   loading?) to a set of tab IDs that are currently direct loading.

2) In a case when a background tab was loading with a parent who's
   search terms were cleared by a direct load, we were not trying to
   lookup search terms on the background tab's historyMetadata key,
   which exists to capture search terms for this exact scenario.

   The patch adds an additional fallback lookup for that path.
2021-11-18 15:52:01 +00:00
Grisha Kruglov
77672dfa15 Post: move group removal logic into PagedHistoryProvider
This moves the group removal logic to the place where the groups are
actually formed. This helps clean-up the fragment code a bit, and
removes the awkward 'allow mutate some random internal state' API from
the provider.
2021-11-17 16:48:25 -05:00
Grisha Kruglov
45d4807bfe Closes #22472: Filter out redirects from History search groups 2021-11-17 16:48:25 -05:00
Mozilla L10n Automation Bot
364fecf9d4 Import l10n. 2021-11-17 02:12:26 +00:00
Christian Sadilek
8c88561d4b Update lastAccess timestamp of selected tab when launching to home 2021-11-17 01:04:22 +00:00
Roger Yang
24e4452cb5 Close #22402: Add top placeholder for home 2021-11-16 23:05:45 +00:00
Noah Bond
dde916038d
MR2 Telemetry: Homescreen view count (#22377)
* For #22146 - Added counter for home screen views

* For #22146 - Added PR number to metrics

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-16 22:30:48 +00:00
Mugurell
d4a6facd81 For #22155 - Store inactive tabs count telemetry when user opens tabs tray
Setting this value in FenixApplication.onCreate was buggy because of a race
with restoring BrowserState.
Setting it here would ensure a better granularity of the events and so to more
accurate reporting.
2021-11-16 21:04:16 +00:00
Mugurell
17865bdf66 For #22147 - New search term groups telemetry 2021-11-16 16:40:07 +00:00
Mozilla L10n Automation Bot
f466d65256 Import l10n. 2021-11-16 01:33:06 +00:00
Arturo Mejia
94a543a403 For #22271 Improve URL accessing from the clipboard for Android 12 and above. 2021-11-15 15:24:52 +00:00
Mugurell
c42ccb4966 For #22388 - Update content description of the delete button 2021-11-15 08:00:20 +00:00
Mozilla L10n Automation Bot
abcafa55f0 Import l10n. 2021-11-14 00:44:24 +00:00
Mozilla L10n Automation Bot
d29fd55c8b Import l10n. 2021-11-12 00:31:53 +00:00
Mozilla L10n Automation Bot
b0ad98a204 Import l10n. 2021-11-11 00:48:58 +00:00
Noah Bond
811f255b71
MR2 Telemetry: Opening screen preference (#22333)
* For #22145 - Added telemetry to the opening screen preference.

* For #22145 - Added PR number to metric

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-10 20:13:40 +00:00
Noah Bond
2e5555d034
MR2 telemetry - Inactive tabs CFR (#22301)
* For #22298 - Added telemetry to inactive tabs CFR

* For #22298 - added PR issue number to metrics

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-10 19:47:21 +00:00
Jonathan Almeida
e3b6e00331 Close #22223: Move to the selected page when switching modes 2021-11-10 18:25:44 +00:00
Mozilla L10n Automation Bot
210587b735 Import l10n. 2021-11-10 00:32:32 +00:00
Grisha Kruglov
9a4a4713ac No issue: clean up code duplication in PagedHistoryProvider 2021-11-09 23:41:54 +00:00
Ben Dean-Kawamura
df953b0021 Make findDuplicate() suspend
findLoginToUpdate() should be suspend, but I didn't get mark it that way
on the initial logins work.  Let's make this one suspend, then I can
update findLoginToUpdate() in a-c.
2021-11-09 15:59:33 +00:00
Mozilla L10n Automation Bot
e52000bb20 Import l10n. 2021-11-09 00:41:29 +00:00
Jonathan Almeida
8ced675817 No issue: Correct TabsTrayAction naming 2021-11-08 22:28:31 +00:00
Jonathan Almeida
08b15689b1 Close #22305: Use TabsTrayStore for populating adapters 2021-11-08 22:28:31 +00:00
Jonathan Almeida
f16300392d Close #22305: Add tab state into the TabsTrayStore 2021-11-08 22:28:31 +00:00
Michael Comella
c026d8b28a For #21084: put git hash on About screen in release builds. 2021-11-08 19:15:16 +00:00
Mugurell
953f6feb17 For #22155 - The inactiveTabsCount probe reports actualInactiveTabs number 2021-11-08 12:32:39 +00:00
Mugurell
f9b67091c6 For #22155 - New BrowserState.actualInactiveTabs public method
This allows querying from all throughout the app which of the current tabs are
inactive while taking into consideration whether the feature is enabled or not
such that when the feature is disabled it will always return an empty result.
2021-11-08 12:32:39 +00:00
Mozilla L10n Automation Bot
2089c29fea Import l10n. 2021-11-08 00:43:25 +00:00
Mozilla L10n Automation Bot
8c2cdaa3ff Import l10n. 2021-11-07 00:35:09 +00:00
Mozilla L10n Automation Bot
06f57fdcfe Import l10n. 2021-11-06 01:13:44 +00:00
mike a
d69b5ed456 For #21816: Filename in "Open" PDF dialog overflows screen
Changing the download file name length to the max allowed by AS (251 char, won’t compile if more; max would be 260 for latest windows versions, but generally it is 255), and changing the UI test to check if the long file name is fully visible.
Changing the downloaded dialog layout to properly display really long file names.
2021-11-06 00:23:41 +00:00
Grisha Kruglov
5b889fdb96 For #22342: Make layout constraint for 'recent bookmarks' the same as other sections 2021-11-05 16:49:42 -07:00
Sebastian Kaspari
8c9f0c835a Closes #21695: ThreadPenaltyDeathWithIgnoresListener: Ignore stack traces containing InstrumentationHooks class 2021-11-05 18:21:34 +00:00
Mozilla L10n Automation Bot
7e66c02363 Import l10n. 2021-11-05 00:48:20 +00:00
Roger Yang
04618983aa Close #22299: Add history search term group telemetry 2021-11-04 22:08:56 +00:00
Grisha Kruglov
294997e559 No issue: history view search group missing
Our boundary conditions for matching search groups to visits was wrong.

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

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

There's a separate problem with buffer though: it's reset to 0 when requested
offset is >0, but that requires a larger refactor of this code, for a
separate PR.
2021-11-04 16:02:18 +00:00
Mozilla L10n Automation Bot
ed0389abe3 Import l10n. 2021-11-04 14:44:09 +00:00
Michael Comella
7d67b84a92 For #22177: add SearchDialogFragmentConstraintLayout; has markers.
Here's a profile with these changes: https://share.firefox.dev/3vTpZha
2021-11-04 05:26:39 +00:00
Michael Comella
bc6d8be9c1 For #22177: change onMeasure/onLayout markers into a single track + draw.
When you want to look at one of these markers, you usually want to look
at all three so I found that having them on a single track was easier to
follow. Since they run in sequence, they should never overlap and that
should minimize confusion.
2021-11-04 05:26:39 +00:00
Michael Comella
ed8f2c0bc3 For #22177: rename RootLinearLayout -> HomeActivityRoot...
This is so we can be more specific with the detail text in our markers.
2021-11-04 05:26:39 +00:00
Elise Richards
4f55f16bd7
For #21313: Remove expiring/unused metrics for December (#21789)
* Remove crash reporter metrics

* Remove tab counter menu item probe

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

* For #22075 - Added data review issue number

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-04 00:14:21 +00:00
Arturo Mejia
cff78afe27 For #22078 Selecting search group in Jump back in switches active tab 2021-11-03 22:02:22 +00:00
Matt Boris
1809bea49d For #22281 Fix studies opt out learn more link 2021-11-03 20:19:49 +00:00
Gabriel Luong
6747e9d554 For #21973 - Remove @color/search_suggestion_indicator_icon_color_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
baa8c6582a For #21973 - Remove @color/accent_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
6770a70bdd For #21973 - Remove @color/foundation_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
f7f942f2d9 For #21973 - Remove @color/tab_tray_selected_mask_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
d6002f3307 For #21973 - Remove @color/tab_tray_item_thumbnail_icon_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
b7c3d0ec5a For #21973 - Remove @color/tab_tray_item_thumbnail_background_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
e304885581 For #21973 - Remove @color/tab_tray_heading_icon_menu_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
8d9550a6a7 For #21973 - Remove @color/tab_tray_item_media_background_dark_them redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
2b996a607c For #21973 - Remove @color/tab_tray_item_divider_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
19a947240b For #21973 - Remove @color/tab_tray_toolbar_background_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
3fd6f4c420 For #21973 - Remove @color/tab_tray_item_background_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
ee59848064 For #21973 - Remove @color/tab_tray_item_url_dark_theme redirection 2021-11-03 19:38:26 +00:00
Gabriel Luong
498d8ccc19 For #21973 - Remove @color/tab_tray_item_text_dark_theme redirection 2021-11-03 19:38:26 +00:00
Michael Comella
0c079fde91 Closes #22213: add marker for LayoutInflater.inflate.
Here is a profile with this change: https://share.firefox.dev/3mlQSHu
2021-11-03 19:06:48 +00:00
Mozilla L10n Automation Bot
3f7cd1be8c Import l10n. 2021-11-03 01:04:35 +00:00
Arturo Mejia
2061779938 For #22170 record auto-close prompt telemetry events 2021-11-03 00:26:17 +00:00
Roger Yang
930599407c No issue: Show snackbar when opening non-http URL 2021-11-02 23:44:15 +00:00
Noah Bond
a06b04ec6d
MR2 Telemetry: Recent tabs section probe (#22166)
* For #22107 - Added probe to track if the Recent tabs / jump back in section is visible

* For #22107 - Fixed lint errors

* For #22107 - added data review number to metric

* For #22166 - fixed expiration date

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-02 23:08:30 +00:00
Gabriel Luong
9a53a12c57 For #21973 - Remove @color/onboarding_illustration_deselected_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
e586d27983 For #21973 - Remove @color/search_suggestion_indicator_icon_bookmark_color_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
5c32efa9a3 For #21973 - Remove @color/preference_section_header_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
0cb91151b1 For #21973 - Remove @color/prompt_login_edit_text_cursor_color_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
f436d3ef02 For #21973 - Remove @color/add_on_private_browsing_interior_icon_background_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
90fd1ea363 For #21973 - Remove @color/add_on_private_browsing_exterior_circle_background_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
830ade29f9 For #21973 - Remove @color/sync_disconnected_background_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
eb6de2b21c For #21973 - Remove @color/sync_disconnected_icon_fill_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
c9afe46dd6 For #21973 - Remove @color/toolbar_[start|center|end]_gradient_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
6923a27be7 For #21973 - Remove @color/toolbar_divider_color_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
37058f596e For #21973 - Remove @color/swipe_delete_background_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
3cf985d09c For #21973 - Remove @color/onboarding_illustration_selected_dark_theme redirection 2021-11-02 22:35:46 +00:00
Gabriel Luong
d71447a691 For #21973 - Remove @color/onboarding_card_background_[start|end]_gradient_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
075f3a3dd9 For #21973 - Remove @color/disabled_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
25592dc25c For #21973 - Remove @color/shadow_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
35a235c598 For #21973 - Remove @color/neutral_faded_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
2f4e0e14ba For #21973 - Remove @color/neutral_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
b682f2d5c5 For #21973 - Remove @color/tab_ring_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
7019e32f40 For #21973 - Remove @color/scrimEnd_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
ee96021f19 For #21973 - Remove @color/scrimStart_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
d516eefb1d For #21973 - Remove @color/recently_used_share_menu_dark_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
ec259fbfd7 For #21973 - Remove @color/tab_history_item_selected_background_light_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
dff26e0ce1 For #21973 - Remove @color/menu_item_button_light_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
e50a2b3cb3 For #21973 - Remove @color/search_suggestion_indicator_icon_bookmark_color_light_theme redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
f5f96d8766 For #21973 - Remove @color/search_suggestion_indicator_icon_color_light_them redirection 2021-11-02 19:49:20 +00:00
Gabriel Luong
679d7e5161 For #21973 - Remove @color/prompt_login_edit_text_cursor_color_light_them redirection 2021-11-02 19:49:20 +00:00
Jonathan Almeida
9bb49585ea No issue: Merge our inactive tab interactor/controllers 2021-11-02 17:12:45 +00:00
Jonathan Almeida
f363b145f2 No issue: Remove unused InactiveTabState code 2021-11-02 17:12:45 +00:00
Mugurell
207e85e59d For #22155 - Inactive tabs count telemetry
A quantity probe in the metrics ping means we'll loose the granularity events
provided but it will be easier to extract the values.

For reporting whether the inactive tabs feature is enabled or not we already
have the "preferences.inactive_tabs_enabled" probe so I didn't duplicate this.
2021-11-02 16:32:00 +00:00
Roger Yang
a46905b5e7 Issue #22057: Add search term groups telemetry 2021-11-02 15:46:29 +00:00
Mugurell
018fe15072 For #22138 - Install source metrics probe 2021-11-02 09:12:34 +00:00
Mugurell
9cce30b824 For #22226 - Open grouped history entries the same as individual ones 2021-11-02 07:59:13 +00:00
Roger Yang
4e5c9a3440 Close #22172: Add Recent searches telemetry 2021-11-02 04:17:10 +00:00
Roger Yang
9c970a5276 Close #22103: Add recent bookmarks telemetry 2021-11-02 01:35:36 +00:00
Mozilla L10n Automation Bot
b698d6ac77 Import l10n. 2021-11-02 00:47:31 +00:00
Elise Richards
e4cc22fb71 For #22175: Telemetry event for deleting a search term group from the recent searches section on home 2021-11-01 20:40:05 +00:00
Jonathan Almeida
8c43ccc0f6 Issue #20704: Use AppStore for inactive expanded state 2021-11-01 19:23:42 +00:00
Jonathan Almeida
9cef9357b1 Close #20704: Add AppStore to Components 2021-11-01 19:23:42 +00:00
Arturo Mejia
940af156eb For #22192 add telemetry for studies 2021-11-01 14:08:52 +00:00
Mozilla L10n Automation Bot
f3bf56ac60 Import l10n. 2021-11-01 07:28:34 +00:00
Mozilla L10n Automation Bot
ef43107e67 Import l10n. 2021-10-31 17:18:08 +00:00
Mozilla L10n Automation Bot
57c375cea2 Import l10n. 2021-10-30 00:34:58 +00:00
Gabriel Luong
e3e0b9c207
For #21973 - Reduce redirection of colors variables between dark and light theme - Part 3 (#22220)
* For #21973 - Remove @color/disabled_light_theme redirection

* For #21973 - Remove @color/scrimStart_light_theme redirection

* For #21973 - Remove @color/scrimEnd_light_theme reddirection

* For #21973 - Remove @color/synced_tabs_separator_light_theme redirection

* For #21973 - Remove @color/toolbar_[start/center/end]_gradient_light_theme redirection

* For #21973 - Remove @color/toolbar_divider_color_light_theme redirection

* For #21973 - Remove @color/fill_link_from_clipboard_light_theme redirection

* For #21973 - Remove @color/sync_disconnected_icon_fill_light_theme redirection

* For #21973 - Remove @color/sync_disconnected_background_light_theme redirection

* For #21973 - Remove @color/swipe_delete_background_light_theme redirection

* For #21973 - Remove @color/onboarding_illustration_selected_light_theme redirection

* For #21973 - Remove @color/onboarding_illustration_deselected_light_theme redirection

* For #21973 - Remove @color/add_on_private_browsing_exterior_circle_background_light_theme redirection

* For #21973 - Remove @color/add_on_private_browsing_interior_icon_background_light_theme redirection

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-29 14:08:35 +00:00
Mozilla L10n Automation Bot
c2f0b574fd Import l10n. 2021-10-29 13:39:23 +00:00
Gabriel Luong
a99b7d3f71 For #21973 - Remove @color/destructive_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
1eb41ff558 For #21973 - Remove @color/shadow_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
9331b971f8 For #21973 - Remove @color/neutral_faded_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
58e9d3dd08 For #21973 - Remove @color/neutral_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
7c9ae669aa For #21973 - Remove @color/tab_ring_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
00b4688fd5 For #21973 - Remove @color/accent_high_contrast_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
cb92e48c0d For #21973 - Remove @color/about_link_dark_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
fe0affa167 For #21973 - Remove @color/above_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
2336f9d9d6 For #21973 - Remove @color/caption_text_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
b510a6d0ca For #21973 - Remove @color/secondary_text_light_theme redirection 2021-10-29 00:50:09 +00:00
Gabriel Luong
09bd9e7ba2 For #21888 - Use Hero images for Jump back in 2021-10-28 21:02:13 +00:00
Arturo Mejia
d0d87a6d6d No issue update strings ids 2021-10-28 13:49:58 -04:00
Gabriel Luong
8f85ef2d5b For #21973 - Remove @color/top_site_title_text_light_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
28883384a7 For #21973 - Remove @color/inset_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
9a85545da5 For #21973 - Remove @color/top_site_title_text_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
59f725d2fb For #21973 - Remove @color/synced_tabs_separator_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
35c7ef6bb6 For #21973 - Remove @color/toggle_off_knob_light_theme and @color/toggle_off_track_light_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
e2093f2054 For #21973 - Remove redirection of color variables for the collection color variables 2021-10-28 14:19:59 +00:00
Gabriel Luong
4001f4ee6f For #21973 - Remove redirection of color variables for the tabs tray color variables 2021-10-28 14:19:59 +00:00
Gabriel Luong
1a472c3507 For #21973 - Remove @color/caption_text_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
78e90d5f0e For #21973 - Remove @color/contrast_text_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
2456e9b5f5 For #21973 - Remove @color/secondary_text_dark_theme redirection 2021-10-28 14:19:59 +00:00
Gabriel Luong
959a142c92 For #21973 - Use destructive_normal_theme in place of R.color.design_color 2021-10-28 14:19:59 +00:00
Mozilla L10n Automation Bot
b7bdd94e71 Import l10n. 2021-10-28 00:32:14 +00:00
Michael Comella
9721723af5 For android-components#11161: pass profiler into AwesomeBar.
This will add two new markers:
- SuggestionFetcher.fetch
- Suggestion update

This is a profile with the markers: https://share.firefox.dev/3E4PbEk
2021-10-27 22:02:12 +00:00
Arturo Mejia
a2c7dfb26e For #22170: Add telemetry for the auto-close prompt 2021-10-27 13:17:35 +00:00
Arturo Mejia
9154371ba5 For #21906 ⁃ Update strings removal version 2021-10-27 02:49:58 +00:00
Mozilla L10n Automation Bot
59a069882d Import l10n. 2021-10-27 00:46:32 +00:00
Grisha Kruglov
04a35c81b8 Closes #22083 - Match history groups to history pages by all items within the group
When deciding if we should include a history group within the "page of
history" results on the History View UI, we used to look at the most
recent timestamp of the metadata items within the group, and see if that
falls within the range of the timestamps of the history page, +/- some
buffer.

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

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

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

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2021-10-26 16:10:58 -07:00
Arturo Mejia
d943be0e53 For #22034: Inactive tabs prompt is redisplayed after dismissing by turning on Auto close 2021-10-26 21:34:50 +00:00
Gabriel Luong
44666ca2ca For #21776 - Call chain on collection type may be simplified 2021-10-26 18:26:50 +00:00
Gabriel Luong
100547130e For #21776 - Add package path to TabGroupViewHolder 2021-10-26 18:26:50 +00:00
Gabriel Luong
b04bf99b7d For #21776 - Remove unused symbols 2021-10-26 18:26:50 +00:00
Gabriel Luong
b54698a3f2 For #21776 - Class member can have 'private' visibility 2021-10-26 18:26:50 +00:00
Gabriel Luong
3115f1343f For #21776 - Replace Java static method with Kotlin analog 2021-10-26 18:26:50 +00:00
Gabriel Luong
660300f770 For #21776 - Replace 'isEmpty' with 'ifEmpty' 2021-10-26 18:26:50 +00:00
Gabriel Luong
603ba63962 For #21776 - 'protected' visibility is effectively 'private' in a final class 2021-10-26 18:26:50 +00:00
Gabriel Luong
5afe393b8f For #21776 - Remove unused imports 2021-10-26 18:26:50 +00:00
Gabriel Luong
76c746b982 For #21776 - Remove unnecessary type argument 2021-10-26 18:26:50 +00:00
Gabriel Luong
6d1d4bea93 For #21776 - Remove redundant qualifier name 2021-10-26 18:26:50 +00:00
Gabriel Luong
1039a92281 For #21776 - Remove reductant SAM constructor 2021-10-26 18:26:50 +00:00
Gabriel Luong
ed48dc934a For #21776 - Remove reductant 'suspend' modifier from SecurePrefsTelemetry 2021-10-26 18:26:50 +00:00
Gabriel Luong
d854c282da For #21776 - Remove val from constructor parameter that are never used as a property 2021-10-26 18:26:50 +00:00
codrut.topliceanu
bba787e87e For #21732 - Adds inactive tabs survey on disable + telemetry 2021-10-26 17:50:22 +00:00
Mugurell
6d62aed35f For #21933 - Refresh history items everytime the fragment is opened 2021-10-26 17:24:13 +00:00
Mozilla L10n Automation Bot
c9e769544f Import l10n. 2021-10-26 02:55:02 +00:00
Jonathan Almeida
7666f0e4c2 No issue: Replace TabsTray.Tab with TabSessionState
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2021-10-26 01:57:47 +00:00
Roger Yang
367c5f42d8 No issue: Add external load flag 2021-10-25 18:02:51 +02:00
Sebastian Kaspari
170fa9705e Update Kotlin and Jetpack Compose versions. 2021-10-25 17:59:17 +02:00
Arturo Mejia
ee8c4de62d For #21986 Confirmation when people set tabs to auto-close
For #22034 Inactive tabs prompt is redisplayed after dismissing by turning on Auto close
2021-10-25 10:42:22 -04:00
Mayank Agarwal
1a7b486808 Issue #21714: Login button visibility fix on saved logins page 2021-10-25 11:58:51 +02:00
Mugurell
e0bf4f31fa For #21771 - Show url when recent tab's title is not available
This is the same previously used approach and the same used for tabs tray.
2021-10-25 09:54:06 +00:00
Mozilla L10n Automation Bot
df2652f9b5 Import l10n. 2021-10-25 00:40:41 +00:00
Mozilla L10n Automation Bot
a8f42cd363 Import l10n. 2021-10-24 00:54:31 +00:00
Mozilla L10n Automation Bot
9e1f596c1e Import l10n. 2021-10-23 01:47:59 +00:00
Michael Comella
ec1a25dfcf For #21921 - post: switch generic marker skip to BaseBrowserFragment.
Since we instrument the marker with the duration in BaseBrowserFragment,
we should skip on BaseBrowserFragment too, not its subclass,
BrowserFragment.
2021-10-23 01:21:39 +00:00
Michael Comella
788eb2c5de For #21921: add duration for some BrowserFragment lifecycle markers.
Here is a sample profile with all the new markers:
https://share.firefox.dev/3lCGoD2
2021-10-23 01:21:39 +00:00
Michael Comella
3a3c39406a For #21921: add durations for some HomeFragment lifecycle markers. 2021-10-23 01:21:39 +00:00
Michael Comella
f65ea1e972 For #21921: add and register MarkersFragmentLifecycleCallbacks. 2021-10-23 01:21:39 +00:00
Michael Comella
99533626f1 For #21921: rename MarkersLifecycleCallbacks to ...ActivityLifecycle...
This is to disamibugate with the MarkersFragmentLifecycleCallbacks that
we'll be adding.
2021-10-23 01:21:39 +00:00
Michael Comella
623914bd89 For #22054: add marker for root view layout/measure.
The onLayout marker may be redundant to onGlobalLayout marker but I'm not
sure yet so let's leave them both in and observe if that's the case.

Here's a profile with the markers: https://share.firefox.dev/3lZaOQb
2021-10-23 00:06:37 +00:00
Mugurell
acdde511d3 For #22070 - Prevent crash for when a selected topic does not exist anymore
The list of selected topics overwrites old data whenever user selects or
deselects another so the old selections will not leak for long.
2021-10-22 10:53:55 -04:00
Roger Yang
70fc6fc20f Close #22061: Let TabSorter decide if title header should be shown in tabs tray 2021-10-22 14:34:41 +00:00
Mozilla L10n Automation Bot
2d8492d33f Import l10n. 2021-10-22 01:18:49 +00:00
Roger Yang
b5c15280f7 No issue: Only report telemetry when tabs tray is first opened 2021-10-21 22:34:25 +00:00
Mugurell
c4278bfbf6 For #21841 - New telemetry for Google and Baidu top sites removal 2021-10-21 22:10:26 +00:00
Michael Comella
0faa61b744 No issue: use Fact.value as detailText for markers.
This allows Facts emitted from ac to provide more details in markers.
2021-10-21 21:21:21 +00:00
Michael Comella
01e3b4b984 No issue: cache SearchDialogFragment.InlineAutocompleteEditText.
Assuming the InlineAutocompleteEditText is not being recreated (and I
did not verify this), it's unnecessary to traverse the view hierarchy
to find it more than once so this patch removes the unnecessary
traversals.
2021-10-21 20:55:47 +00:00
Mozilla L10n Automation Bot
c0ab0cb1c5 Import l10n. 2021-10-21 00:59:47 +00:00
Gabriel Luong
64ca94b8fa For #22022 - Composify Customize Home Button and update the background color 2021-10-21 00:15:19 +00:00
Gabriel Luong
ada3da59ec For #22022 - Update SelectableChip button background colors 2021-10-21 00:15:19 +00:00
xlog-null
edd1fd9f2c For #22032 - Fix horizontal margin on private home screen 2021-10-20 23:49:22 +00:00
Gabriel Luong
07a6a386f8 For #21753 - Refactor Pocket out of sessioncontrol 2021-10-20 23:08:14 +00:00
Noah Bond
826249497a
MR2 Inactive tabs telemetry (#21908)
* For #21903 - Added telemetry for interacting with inactive tabs

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

* For #21903 - Added PR numbers to metrics

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

* For #21903 - Fixed inactive tabs setting toggle metric

* For #21903 - Updated FenixApp unit test

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

* PR: addendum for last commit that missed a file

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

* PR: fixed merge conflict

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

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

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

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-20 22:30:59 +00:00
Gabriel Luong
af48553418 For #21935 - Use photonBlue40 in place of #0090ED 2021-10-20 20:11:52 +00:00
Gabriel Luong
8b3d39f0c0 For #21935 - Use photonDarkGrey20 in place of #4A4A55 2021-10-20 20:11:52 +00:00
Gabriel Luong
541ed5cec6 For #21935 - Use photonPink30 in place of #FF6BBA 2021-10-20 20:11:52 +00:00
Gabriel Luong
5a5ba1c095 For #21935 - Use photonBlue30 in place of #00B3F4 2021-10-20 20:11:52 +00:00
Gabriel Luong
a81912bd98 For #21935 - Use photonViolet30 in place of #C689FF 2021-10-20 20:11:52 +00:00
Gabriel Luong
475d59b781 For #21935 - Use photonYellow90 in place of #960E18 2021-10-20 20:11:52 +00:00
Gabriel Luong
5a7890497f For #21935 - Use photonRed40 in place of #FF6A75 2021-10-20 20:11:52 +00:00
Gabriel Luong
dfd9f7c1ea For #21935 - Use photonDarkGrey50 in place oof #32313C 2021-10-20 20:11:52 +00:00
Gabriel Luong
6010767da7 For #21935 - Use photonBlue50 in place of #0060DF 2021-10-20 20:11:52 +00:00
Gabriel Luong
0e8b797014 For #21935 - Use photonGreen70 in place of #.008787 2021-10-20 20:11:52 +00:00
Gabriel Luong
c379d75c7f For #21935 - Use photonInk20 in place of #312A64 2021-10-20 20:11:52 +00:00
Gabriel Luong
4d61277e88 For #21935 - Use photonViolet50 in place of #9059ff 2021-10-20 20:11:52 +00:00
Gabriel Luong
a31d638191 For #21935 - Use photonYellow70 in place of #C45A27 2021-10-20 20:11:52 +00:00
Gabriel Luong
a02d58dd48 For #21935 - Use photonYellow60 in place of #E27F2E 2021-10-20 20:11:52 +00:00
Gabriel Luong
cd6bcb3d47 For #21935 - Use photonGreen60 in place of #2AC3A2 2021-10-20 20:11:52 +00:00
Gabriel Luong
9048af04be For #21935 - Use photonPink60 in place of #E31587 2021-10-20 20:11:52 +00:00
Gabriel Luong
bd7ced5867 For #21935 - Use photonDarkGrey90 in place of #15141A 2021-10-20 20:11:52 +00:00
Gabriel Luong
e119b8b590 For #21935 - Use photonViolet40 in place of #AB71FF 2021-10-20 20:11:52 +00:00
Gabriel Luong
ff829f9f25 For #21935 - Use photonBlue60 in place of #0250BB 2021-10-20 20:11:52 +00:00
Gabriel Luong
26920baf47 For #21935 - Use photonRed70 in place of #C50042 2021-10-20 20:11:52 +00:00
Gabriel Luong
624afa9e53 For #21935 - Use photonPurple50 in place of #B833E1 2021-10-20 20:11:52 +00:00
Gabriel Luong
8d27963ace For #21935 - Use photonViolet60 in place of #7542E5 2021-10-20 20:11:52 +00:00
Gabriel Luong
20ddedd118 For #21935 - Use photonWhite in place of #FFFFFF 2021-10-20 20:11:52 +00:00
Gabriel Luong
a673305643 For #21935 - Use photonBlack in place of #FF000000 2021-10-20 20:11:52 +00:00
Gabriel Luong
0ae8e36248 For #21935 - Use photonBlue30 in place of #00B3F4 2021-10-20 20:11:52 +00:00
Mugurell
c54e75edec For #22005 - Ensure deleted items are removed from the list 2021-10-20 07:59:35 +00:00
Mozilla L10n Automation Bot
f2d5da4e91 Import l10n. 2021-10-20 00:39:06 +00:00
Mugurell
d3df7369e0
CI for 21827 (#22004)
* Remove redundant calls to setHasOptionsMenu(false)

Fix memory leaks for credit card and login fragments

* Fixes:

Add link to issue tracker
Use activity?.invalidateOptionsMenu() instead of setHasOptionsMenu(false)
Move it inside of 'if' statement to avoid unintended issues when called improperly
Revert changes to AddLoginFragment.kt

* Fix call invocation to redirectToReAuth() from AddLoginFragment.kt
Fix 'when' statement in redirectToReAuth() to use AddLoginFragment

Co-authored-by: Vitaly V. Pinchuk <vetal.978@gmail.com>
2021-10-19 10:52:01 +00:00
Mozilla L10n Automation Bot
4743146ac4 Import l10n. 2021-10-19 01:25:27 +00:00
Arturo Mejia
846aefc0f4 For #21723 Align the default value of the custom cookie setting with the UI 2021-10-19 00:40:55 +00:00
Mozilla L10n Automation Bot
c56214453a Import l10n. 2021-10-18 00:37:31 +00:00
Mozilla L10n Automation Bot
91b719ed75 Import l10n. 2021-10-17 00:36:57 +00:00
Mozilla L10n Automation Bot
1c73fc8e20 Import l10n. 2021-10-16 00:34:46 +00:00
Roger Yang
60f7f766da Issue #21893: Keep search group when second to last search term tab is removed 2021-10-15 17:48:23 +00:00
Mozilla L10n Automation Bot
31a0d676ee Import l10n. 2021-10-15 00:35:47 +00:00
Christian Sadilek
c3ef16de61 Closes #21944: Top sites rendered slowly on first load of HomeFragment 2021-10-14 18:04:17 -04:00
Grisha Kruglov
0b5b1a738a Do less work while navigating Logins views
Fetching a set of logins from the store is quite expensive. This commit
avoids doing that while navigating back and forth between the list and
detail views:

- retain processes logins state when navigating into detail view
- use the `get` storage api to obtain specific login, instead of
  `list().filter {...}`
- avoid re-sorting retained logins when navigating back into the list
  view
2021-10-14 17:34:20 +00:00
Grisha Kruglov
97d93eb564 Make linters happy 2021-10-14 17:34:20 +00:00
Ben Dean-Kawamura
cc247c407f Register the logins key provider
This is required for sync to work
2021-10-14 17:34:20 +00:00
Ben Dean-Kawamura
34ec442961 Updating Fenix to work with the new logins API
Switched to always using `Login` instead of the `SavedPassword` alias.

Made `MasterPasswordTipProvider.saveLogins()` call
`importLoginsAsync()`.  This is needed because it's the only method that
inputs a `Login` rather than a `LoginEntry`.

Moved the `SavedLoginsStorageController.kt.syncAndUpdateList` call
to inside `add()` and `update()`.  This simplifies the error handling a
bit.

Refactored dupe-checking code to use findLoginToUpdate()

Refactored `AddLoginFragment` / `EditLoginFragment` to put the username
error handling code all in 1 method.  I think it's easier to follow the
logic of showing/hiding the error labels when it's all in one place.
This fixes issues #24103 and #24104.  I would love to address #24102,
but I'm not sure what the correct behavior is there so I just kept that
the same.
2021-10-14 17:34:20 +00:00
Arturo Mejia
25c784b684 For #21906 ⁃ Remove old copy form inactive tabs section 2021-10-14 16:01:59 +00:00
Jonathan Almeida
9780dac846 No issue: Always show Make inactive for debug builds 2021-10-14 07:52:39 +00:00
Gabriel Luong
e0991f0fe6 For #21887 - Update Home background color to LightGrey20 2021-10-14 03:40:40 +00:00
Roger Yang
4a8f01beea Close #21573: Add shadow to recent bookmarks section 2021-10-14 02:53:35 +00:00
Mozilla L10n Automation Bot
f4d026d906 Import l10n. 2021-10-14 00:38:56 +00:00
Roger Yang
2b92860966 Close #21917: Update pocket stories card elevation to match other cards 2021-10-13 22:53:56 +00:00
Jonathan Almeida
c554152fba Issue #21707: Correct search grouping logic in extensions
At this moment, we have two extension methods that have duplicate
functionality to construct search term groupings. One on `List<Tab>` and
one on `List<TabSessionState>`. The former is used for everything
related to tabs piped through the `TabsFeature` and the latter is for
consumers of `BrowserState` directly.

The bug occurs because our implementation of search groupings was
updated only on the former extension, but the `HeaderBinding`, that
observes the BrowserState and updates the title visibility, was using
the latter.

Ideally, we remove this duplication when we no longer have separate data
classes for consumers of `TabsFeature`, but this intermediary fix should
suffice.
2021-10-13 22:01:07 +00:00
Gabriel Luong
0b17b443dc For #21760 - Remove some unused resources 2021-10-13 20:42:49 +00:00
Grisha Kruglov
233f0a8a1d Closes #21871 - Eagerly update UI state after search group removal
Before this patch, this was the behavior - 'remove' button is clicked, we'd ask
the storage to remove metadata (on its IO thread), then navigate to Home
Screen.

This resulted in a race we could end-up on the Home Screen before delete
finishes, so the search groups do not appear to be removed (but,
refreshing the Home Screen again shows that they are removed).

This also resulted in an unnecessary navigation which felt very janky
(screen will "scroll" to the top) and was way more work than necessary.

After this patch, we:
 - dispatch two actions (on browserstore, on homefragmentstore) which
   remove the search groups from any relevant in-memory state; any UI bound to
   this state will be automatically "refreshed"
 - no longer navigate as part of the remove action, so the UI doesn't
   move and removal happens "in-place"
2021-10-13 15:45:00 -04:00
Christian Sadilek
88fbcc05b7 Handle new OptimizedLoadUrlAction in history metadata middleware
Upgrades to A-C 95.0.20211013154351
2021-10-13 15:45:00 -04:00
Jonathan Almeida
722ab9f3ca Issue #21794: Remove rotation; rely on state activated
It seems like we no longer need to use rotation for the chevron, since
we are now using two different icons within the `ic_chevon` that change
depending on the `state_activated`.
2021-10-13 19:27:49 +00:00
sunil9211
05d0bca6a3 For #17393: Dead code removed around Delete downloads 2021-10-13 15:08:07 +00:00
Arturo Mejia
08256ac68c For #21791 Adds tab auto-close prompt 2021-10-13 12:08:59 +00:00
Arturo Mejia
9439a65e1e For #21838 wait until experiments have been completely opt-out on the nimbus SDK. 2021-10-12 19:31:35 -04:00
Elise Richards
4bd140a0f5 For #21522: Wrap section titles on home 2021-10-09 04:16:40 +00:00
Roger Yang
4ad494075a Issue #21686: Stop using internally stored tabs list in adapters 2021-10-09 02:43:26 +00:00
Mugurell
abcc9dfc67 For #21806 - Set 1dp elevation for ListItemTabLarge
To get smaller shadows.
2021-10-08 23:22:44 +00:00
Christian Sadilek
4cd67eaef5 Issue #21437: Fix default of start_on_home setting in UI 2021-10-08 18:33:55 -04:00
Gabriel Luong
d0bb77fc2b For #21809 - Adjust the padding between the Pocket section 2021-10-08 20:37:56 +00:00
Jonathan Almeida
bcc40e8e46 Issue #21794: Reverse chevron for inactive tabs 2021-10-08 20:04:40 +00:00
MickeyMoz
1cbdb6e684 Update Android Components version to 95.0.20211008105820. 2021-10-08 14:17:27 +00:00
codrut.topliceanu
6edd989152 For #20992 - Speculative fix for TopSitesPagerAdapter crash 2021-10-08 07:59:42 +00:00
Jonathan Almeida
74fd043290 Issue #21686: Move submitList calls into TabsAdapter
Co-authored-by: Roger Yang <royang@mozilla.com>
2021-10-08 05:36:48 +00:00
Noah Bond
8c1a64a5e8 For #21773 - Updated "customize homepage" button to go to the new Homepage submenu in Settings 2021-10-07 23:45:43 +00:00
Christian Sadilek
1b463a5c17 Enable pocket stories in CA 2021-10-07 21:57:56 +00:00
Arturo Mejia
3f9d277566 Prepare nimbus features default values for release 95 2021-10-07 20:44:44 +00:00
Rohan Maity
a77091dc5b For #20579: Fix the normal browing tab re-used unexpectedly when open links in private tab enabled or same tab is already avaialble in normal browsing mode 2021-10-07 19:48:16 +00:00
Arturo Mejia
5843fafbb6 For #21765 only activate pocket by default for the right audience 2021-10-07 15:30:18 +00:00
Mugurell
507801e5d5 For #21623 - Pocket recommended stories telemetry 2021-10-07 08:36:00 +00:00
Michael Comella
2c528391da Closes #21424: add marker for StrictMode.resetAfter.
This helps identify file IO. Unfortunately, with this marker, it's
difficult to separate code we own from code we don't own. However, I
wasn't sure what the best implementation would be to address that
(e.g. ideally, we would ignore violations in code we don't own rather than
annotate the markers) so I thought we can land it this simple way and
improve it incrementally.
2021-10-07 07:39:51 +00:00
Gabriel Luong
04e75ace19 For #21756 - Refactor TopSites out of home.sessioncontrol 2021-10-06 21:47:36 +00:00
Noah Bond
1f97ca6ce6
For #21437 - Relocated Home-related settings to its dedicated sub screen (#21722)
* For #21437 - Relocated Home-related settings to its dedicated sub screen

* For #21437 - Updated show top sites toggle text

* PR: Fixed lint warning. Reverted preference keys

* PR: added ignore for UI test

* PR: Added ignore for UI test
2021-10-06 21:01:16 +00:00
Roger Yang
3632ed77d5 No issue: Update Pocket categories spacing to 16dp. 2021-10-06 19:52:55 +00:00
Sebastian Kaspari
099e463b4f Issue #21102: Set compileSdkVersion to 31. 2021-10-06 17:30:08 +00:00
Roger Yang
23e51c250a No issue: Small layout update for Pocket Stories 2021-10-06 17:01:32 +00:00
Gabriel Luong
dd20d98779 For #21729 - Refactor SectionHeader to use the right font size 2021-10-06 15:38:35 +00:00
Sebastian Kaspari
5208f74cd7 SearchDialogFragment: Start to split consumeFrom() into independent observers that trigger less often 2021-10-06 10:32:59 +00:00
Arturo Mejia
0f07703c3e For #21611: Show the jump back in Contextual Hints independently of the home onboarding dialog. 2021-10-06 03:21:41 +00:00
Arturo Mejia
7e3a2ba89d For #21574: disabled the homescreen onboarding dialog. 2021-10-06 03:21:41 +00:00
Roger Yang
fb345a4131 Close #21573: Update design for jump back in section and recently bookmarked section 2021-10-05 21:43:08 +00:00
codrut.topliceanu
b1a5025610 For #21708 - Fixes missing header bottom border
The bottom gray border of the header item from the Inactive Tabs section was correctly set when collapsing or expanding said section, but not on init. So if the section was initialized collapsed the gray border would not be present.
2021-10-05 20:46:16 +00:00
Arturo Mejia
bd7476cce4 Update feature flags for 94. 2021-10-05 18:02:38 +00:00
Mugurell
6faafe4688 For #21599 - Add UTM parameters for Pocket recommendations links 2021-10-05 10:33:45 +00:00
codrut.topliceanu
a53b52b764 For #21565 - Adds inactive tabs onboarding popup 2021-10-05 10:00:33 +00:00
Mugurell
571a2fc88e For #21621 - Add 16dp horizontal spacing to home composables.
Added from the ViewHolders, the same as for XML Views.
2021-10-05 07:03:21 +00:00
Mugurell
2eb5fe2159 For #21621 - Add 16dp horizontal spacing to all normal browsing home items 2021-10-05 07:03:21 +00:00
Mugurell
a6b4c3e370 For #21621 - Add 16dp horizontal spacing to the private browsing home description 2021-10-05 07:03:21 +00:00
Mugurell
bb498cc223 For #21621 - Add 16dp horizontal spacing to all onboarding items 2021-10-05 07:03:21 +00:00
Mugurell
d189b37a09 For #21621 - Remove the parent horizontal padding 2021-10-05 07:03:21 +00:00
Jonathan Almeida
f9dd0d9f6f Issue #21582: Use ThumbnailStorage in recent tabs on home 2021-10-05 06:33:18 +00:00
Gabriel Luong
a1e6872f6f For #21694 - Remove RoundedCornerShape around the inner Column in RecentlyVisited 2021-10-04 22:48:30 +00:00
Gabriel Luong
5fc979090a For #21694 - Only show the divider line in between items in the Recent Searches 2021-10-04 22:48:30 +00:00
Jonathan Almeida
8c2cbb4e41 Issue #21642: Remove in-progress media tab from homescreen 2021-10-04 18:03:34 -04:00
Christian Sadilek
66e54860bb Move tabs out of search group if direct load occurs
This regressed in our previous fix that made sure child tabs don't
mistakenly get moved out of the group if their parent is navigated
away, or in case the child tabs are redirected.

However, when a subsequent load occurs in any tab in the group the
search terms need to be cleared and the tab removed from the group
to prevent false positives.
2021-10-04 17:30:49 -04:00
Gabriel Luong
6abb2fffa1 For #21658 - Don't pass Client into composable functions 2021-10-04 19:06:30 +00:00
Jonathan Almeida
b8946f807a Issue #21671: Remove Recently Closed from Inactive Tabs 2021-10-04 15:50:27 +00:00
Mugurell
16a3b92d34 For #21593 - Refactor the coroutine from PocketStoriesShown to outside the middleware
In so this code will no longer have access to the MiddlewareContext which only
makes sense in the thread of the Middleware itself.
2021-10-04 11:54:42 +00:00
Mugurell
e4489b8d7d For #21593 - Persist stories categories selections in a Proto DataStore
A fast and easy solution with all the ACID requirements.
Also supports easy migrations if later the data we need persisted changes.
2021-10-04 11:54:42 +00:00
Mugurell
565beb88c9 For #21593 - Refactor out "isSelected" from PocketRecommendedStoriesCategory
Having the list of categories and the list of selected categories separate in
State allows updating them independently.
2021-10-04 11:54:42 +00:00
Jonathan Almeida
061de54291 Issue #21576: Hide 'Other' title when there are no search groups 2021-10-04 08:56:20 +00:00
Mugurell
361673ae3e For #21626 - Avoid showing story invalid properties 2021-10-04 07:33:31 +00:00
Arturo Mejia
2b363b9868 For #21618: Integrate Nimbus with MR2 Home Page to enable experimentation 2021-10-04 00:39:59 +00:00
Arturo Mejia
ebd336501b For #21611: Add jump back in Contextual Hints 2021-10-03 23:16:37 +00:00
Jonathan Almeida
e5f58eaade
Issue #21632: Correct inactive tabs survey string (#21669) 2021-10-03 14:29:39 +00:00
Christian Sadilek
8f187af9ae Make search term grouping tolerant to (parent tab) navigation
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-10-02 08:51:25 +00:00
Elise Richards
76c0c4ad14 For #21648: match Pocket sections on home to designs 2021-10-02 08:24:09 +00:00
Jonathan Almeida
c877a25400 Issue #21641: Do not add a group of only one tab 2021-10-02 04:00:02 -04:00
Elise Richards
b213a51188 For #21653: pre-land section title for tab preferences 2021-10-02 00:53:00 +00:00
Noah Bond
aa28b6f142
For #21360 - Added toggle for search term tab groups (#21615)
* For #21360  - Added toggle for search term tab groups

* For #21360 - Lint cleanup

* PR: Added missing licenses and possibly fixed UI test

* PR: Added a "scrollTo" to potentially fix a UI test

* PR: Added potential fix for alwaysStartOnHomeTest

* PR: Added temporary ignore to alwaysStartOnHomeTest

* PR: added missing ignore comment

* For #21360 - Added missing feature flag driven visibility logic

Co-authored-by: Sebastian Kaspari <s.kaspari@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-02 00:25:12 +00:00
Elise Richards
c7067a50cb For #21646: Update section titles and customize button name on home 2021-10-01 23:51:48 +00:00
Elise Richards
3a2b9e5d2b
For #21643: Pre-land strings for inactive tabs CFR. Update section title for normal, non-search group tabs. (#21645) 2021-10-01 14:23:24 -07:00
Noah Bond
07b53f1e73
For #21635 - Preland strings for tab auto close message (#21636)
* For #21635 - Prelanded strings for tab auto close message

* PR: Updated String descriptions and added temporary tools ignore
2021-10-01 20:37:51 +00:00
Gabriel Luong
69485da0f8 For #21632 - Preland strings for the inactive tab survey 2021-10-01 19:51:59 +00:00
Biren-Nayak
c1effd946d For #16437: Remove unnecessary space for tracking protection exceptions 2021-10-01 19:15:00 +00:00
Mugurell
bf876e2593 For #21392 - Update new strings descriptions. 2021-10-01 18:03:12 +00:00
Christian Sadilek
fafa72c0ff Allow opening pocket stories when search dialog is active 2021-10-01 16:03:59 +00:00
Roger Yang
920376ee5b Close #21610: Update Strings for Tab Settings 2021-10-01 06:31:50 +00:00
Mozilla L10n Automation Bot
b9b1e984b5 Import l10n. 2021-10-01 03:27:40 +00:00
Arturo Mejia
6824949a40 For #21611: Add jump back in contextual hint text 2021-09-30 22:40:30 -04:00
Roger Yang
1092383231 No issue: Make sure jump back in group always have more than one tab 2021-09-30 22:33:50 -04:00
Gabriel Luong
15d1a0aa17 For #21551 - Add delete history metadata in the History view
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2021-09-30 22:30:19 -04:00
Elise Richards
c60de0bc6c For #21287: long press menu on recently visited homescreen groups 2021-09-30 22:00:18 -04:00
Arturo Mejia
ca30f518d8 For #21608: Update strings for home screen dialog features 2021-10-01 01:51:07 +00:00
Grisha Kruglov
0d9e2b3a36 Do not show home screen behind search if we have search terms
Home screen isn't actually visible in case we're displaying awesomebar
search results. The navigation is thus unnecessary and actually causes visual
jankiness as we display home for a moment before covering it up with
search results.
2021-09-30 18:14:16 -04:00
Noah Bond
25d0696101
Inactive tabs changes (#21524)
* Issue mozilla-mobile#21319 - Moved inactive tabs to the top of the normal tabs tray.

* Issue mozilla-mobile#21319 - Added a delete icon to delete ALL inactive tabs.

* Issue mozilla-mobile#21319 - Changed default inactive time period to 14 days

* Issue mozilla-mobile#21319 - Hooked inactive tabs setting to UI code

Inactive tabs setting is also disabled when the user has selected the one day or week auto-close tab setting.

* Issue mozilla-mobile#21319 - File and Lint cleanup

* PR: Fixed bug causing grouped tabs to also show in "Other" when marked as inactive but inactive is OFF in Settings

* PR: Fixed lint warnings

* PR: Removed redundant feature check

* PR - Ignore test until search term tab groups switch is done
2021-09-30 19:01:31 +00:00
Mugurell
53d4336939 For #21592 - Don't topup with general stories 2021-09-30 15:54:21 +00:00
Mugurell
ea6d5e3d38 For #21562 - Snap to next item when scrolling
This works by replacing the fling animation with snapping to the next item in
the scroll direction.
2021-09-30 14:57:17 +00:00
Michael Comella
365983d4b0 For #21294: suppress MaxLineLength in Fact.toEvent.
These double comparisons are easier to read and see the pattern of on one line
so I'd rather keep them on one line. Additionally, it's difficult to
test each change individually so I'd rather not make additional changes.
To do this, I suppressed the max line length warning.
2021-09-30 09:13:53 +00:00
Michael Comella
c10f41164d For #21294: remove allocations in Fact.toEvent.
This commit was generated primarily by a macro that:
- appends `== component &&`
- appends `== item`
- (if applicable) Skips to the ending brace
- Go down one line and move cursor to the front of the line to prep for repeat

My only intervention was to skip extra lines to line it up to run again
and specify how many times in a row it should run.

---

The `to` in this code is an infix function that calls instantiates a
Pair under the hood. Subjectively observed, when this method is called
it generally hits the else case so 35 Pairs are instantiated each call -
that's 560 bytes. This method is called frequently - for example, an estimated
4 times each time a letter is typed on the homescreen and a measured 116 times
in a simple navigation (see the issue). The latter generates an estimated
63.4 KiB.

It was straightforward to remove these allocations so that's what this
change does.

The primary risk from this change is that it's difficult to test each
case to ensure it's working.
2021-09-30 09:13:53 +00:00
Michael Comella
d33e38e020 For #21294: change when (condition) { when { in Fact.toEvent.
This will not compile. However, it enables the subsequent PR to remove
allocations from Fact.toEvent.
2021-09-30 09:13:53 +00:00
codrut.topliceanu
0e88c25df1 For #20762 - Adds grey border to inactive tabs 2021-09-30 08:42:46 +00:00
Mozilla L10n Automation Bot
f8edee649a Import l10n. 2021-09-30 00:43:30 +00:00
Elise Richards
02614eb889 For #21574: Move the homescreen onboarding card behind a feature flag 2021-09-29 22:52:42 +00:00
Mugurell
e72b7f7cc8 For #21561 - Enable/Disable the feature from the customization menu 2021-09-29 19:55:26 +00:00
Mugurell
0c632dbbdb For #21391 - Final design composables
Fonts are not exactly following the Figma design but do better suit the overall
design since the other fonts are also not respecting the latest specs.
2021-09-29 19:15:07 +00:00
Roger Yang
ddd472d143 No issue: Improve rendering of jump back in 2021-09-29 11:43:49 -04:00
Roger Yang
53206df9b6 Close #21552: Remove Extra Subtitle In Jump Back In Item 2021-09-29 02:46:34 +00:00
Roger Yang
8193138015
Fix recent tabs intermittent tests (#21557)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-28 22:10:47 -04:00
Elise Richards
777f2d1f12
For #21339: update styles for homescreen show all buttons and jump back in spacing (#21342)
For #21339: Add ignores for intermittent ui tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-28 14:40:22 -07:00
Mugurell
c1f0e5a611 For #21275 - Sort items by how many times they were actually shown 2021-09-28 20:25:25 +00:00
Christian Sadilek
4596d4f905
Do not capture search terms when user navigates away via app (#21527)
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>

Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-09-28 14:20:58 +00:00
Roger Yang
8a15e8a681 Close #21451: Add active search term tab groups on home 2021-09-27 21:10:57 +00:00
Arturo Mejia
f15291757b For #21493 show onboarding dialog for home sections 2021-09-27 19:22:34 +00:00
codrut.topliceanu
f338d64a4c For #20762 - Fixes NPE crash with nullchecks for binding 2021-09-27 13:32:06 -04:00
Mugurell
ba4c44afcf For #21045: Add categories support 2021-09-27 09:57:15 +00:00
Mugurell
ccc0f17e4f For #21045: Cleanup
- stick to one naming scheme: rename articles to stories and use this all
throughout the app.
- add some spacing above the new section (as per the current design)
2021-09-27 09:57:15 +00:00
Mozilla L10n Automation Bot
27d319bc56 Import l10n. 2021-09-27 00:38:26 +00:00
Mozilla L10n Automation Bot
009f2a97b8 Import l10n. 2021-09-26 00:30:23 +00:00
Mozilla L10n Automation Bot
8426c399ad Import l10n. 2021-09-25 00:44:49 +00:00
codrut.topliceanu
e8c332964d For #21087: Updates Recently Saved design 2021-09-24 07:42:29 +00:00
Christian Sadilek
54549c49ec Fix mapping between history visits and groups to use createdAt
We currently have a 15s buffer to match metadata to its corresponding
visit. However, a existing metadata record can be updated more than
15s after it was created e.g. when closing the tab and updating
the view time.
2021-09-23 21:15:48 +00:00
Christian Sadilek
d830006984 For #20893: Dedupe urls/site in history groups 2021-09-23 16:09:43 +00:00
Gabriel Luong
976dd6ebe1 For #21460 - Rename "Delete from history" to "Remove" for recent visit dropdown menu 2021-09-23 14:26:46 +00:00
Mozilla L10n Automation Bot
74989db239 Import l10n. 2021-09-23 01:06:49 +00:00
Gabriel Luong
90d7927b2f Issue #21117 - Modify layout for items displayed under "Recently Visited" in the HomeScreen to follow latest UX designs 2021-09-22 21:30:45 +00:00
Arturo Mejia
c05fbfb6c3 For #21239 improve telemetry values for Allow users to customize their home screen 2021-09-22 16:28:43 +00:00
Travis Long
ca069a78d2 Fix logic so isFirstRun can be called multiple times on first run 2021-09-22 15:35:28 +00:00
Travis Long
c9c28b66c8 [SDK-344] Pass in first-run information to Nimbus for targeting 2021-09-22 15:35:28 +00:00
Gabriel Luong
98b218d964 For #21413 - Remove unused OnboardingPrivateBrowsingViewHolder and OnboardingWhatsNewViewHolder 2021-09-22 14:20:16 +00:00
Sebastian Kaspari
cd61ef1c1d Issue #21172: Refactor UI tests accessing awesomebar suggestions. 2021-09-22 12:57:26 +00:00
Sebastian Kaspari
6d99c34f12 Issue #21172: Replace BrowserAwesomeBar view with AwesomeBar() composable. 2021-09-22 12:57:26 +00:00
Gabriel Luong
d9847f9525 For #21408 - Pass the corresponding HistoryMetadataKey to openToBrowserAndLoad and addTab use case 2021-09-22 08:15:08 +00:00
Gabriel Luong
2ae7d5d593 For #20893 - Search term groups in history 2021-09-22 08:15:08 +00:00
Mozilla L10n Automation Bot
a42ca16167 Import l10n. 2021-09-22 01:59:21 +00:00
Michael Comella
3ab1ca8321 For #21126: process performancetest intent for AC too. 2021-09-21 20:49:12 +00:00
rayanHappy
6a3b9c4b8f Fix QR scan button not showing up when choosing a RTL language 2021-09-21 16:20:56 -04:00
Arturo Mejia
3272de1364 For #21239 add telemetry for Allow users to customize their home screen 2021-09-21 15:55:03 -04:00
Christian Sadilek
6f7f284b55 Make sure to only record view time once for a given tab access
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-09-21 12:37:44 -07:00
Mozilla L10n Automation Bot
e00079aeaf Import l10n. 2021-09-21 00:47:29 +00:00
Elise Richards
368d8cc214 No issue: remove escape chars on add logins string 2021-09-20 21:30:16 +00:00
Grisha Kruglov
b7b8de1c2f Use UpdateUrlAction to record viewTime observations
We discovered that in a tab restore scenario we were recording view time
observations that were wrong - we'd record time deltas as-if user was
looking at the page while the browser wasn't running.

This happens because when we record a viewTime observation, we compare
current time with lastAccess time of the tab. In a restore scenario,
that lastAccess time happens to be from when the browser was last
running - which could be days ago.

The simplest solution was to not record a viewTime observation if the
url for a tab didn't change during a load event. To achieve this, we
needed to change which action we were using as a proxy for "navigation
events" - UpdateUrlAction contains the new url, allowing us to compare
against the current tab url.

Alternative solutions would be to keep using loading actions, but
dispatch a lastAccess event before performing a metadata update. This
would have worked, but would result in two lastAccess events being
dispatched for each navigation event instead of just one.
2021-09-20 20:14:04 +00:00
Elise Richards
b56d8ff545 For #21337: rename recently saved section on home 2021-09-20 19:42:19 +00:00
Christian Sadilek
16085b9008 Closes #21388: Only parse clipboard content when search fragment is attached 2021-09-20 14:31:08 -04:00
Mozilla L10n Automation Bot
f4397cc85e Import l10n. 2021-09-20 00:38:29 +00:00
Mozilla L10n Automation Bot
65dd9cb079 Import l10n. 2021-09-19 00:34:04 +00:00
Mozilla L10n Automation Bot
a455116d2c Import l10n. 2021-09-18 00:40:46 +00:00
Michael Comella
7232fedb20 For #21296: add ProfilerMarkers.addForDispatchTouchEvent. 2021-09-17 23:06:50 +00:00
Michael Comella
bb632c7b3b For #21299: add duration markers for HomeActivity Create/Start.
We only instrument these methods because they're the only ones that
noticeably long running in the current implementation.
2021-09-17 22:34:01 +00:00
Michael Comella
d67bd65f19 For #21299: add duration marker for IntentReceiverActivity.onCreate.
We only instrument onCreate because it's the only one with an
implementation.

While declaring this as a function that accepts a lambda is less
fragile, we've previously had issues with it such as suspected memory
leaks when used for telemetry. Therefore, we go with the simpler
approach.
2021-09-17 22:34:01 +00:00
Michael Comella
f8a4113271 For #21299: add markers for all activity lifecycle callbacks.
We implement these all in the same track because between it'd create a
lot noise between this and fragment lifecycle callbacks.
2021-09-17 22:34:01 +00:00
Roger Yang
872263cf2d Update tabs tray title header string comment to clarify what it does. 2021-09-17 21:07:30 +00:00