Commit Graph

5475 Commits

Author SHA1 Message Date
AndiAJ
889cf2e718 For #19468 and #19478 fix intermittent UI tests 2021-05-12 15:18:54 +03:00
Mozilla L10n Automation Bot
726db20390 Import l10n. 2021-05-12 08:56:08 +00:00
Codrut Topliceanu
d08b00717a
For #19091 - Fix Undo of close multiple tabs (#19466)
Fixes the issue where closing multiple selected tabs and then pressing Undo would only restore one of the tabs.
2021-05-12 10:12:03 +03:00
Roger Yang
f13560ae52 Issue #19147: Move set startup metrics off main thread 2021-05-12 06:44:31 +04:00
Jonathan Almeida
f0d352f47e Issue #19002: Correct naming of pager viewholders 2021-05-11 19:40:14 +04:00
Jonathan Almeida
a95a26b2c6 Issue #19002: Use a single BrowserTrayList for normal/private list
We now have a BrowserTrayList.
 - Renamed from `BaseBrowserTrayList`.
 - Removed the abstract `configuration` and used a `lateinit var`
 instead.
 - Removed `NormalBrowserTrayList` and `PrivateBrowserTrayList`.
2021-05-11 19:40:14 +04:00
Jonathan Almeida
bd753d3f94 Issue #19002: Correct browser viewholder naming 2021-05-11 19:40:14 +04:00
Jonathan Almeida
809c82a9f9 Issue #19002: Move TabsTrayViewHolder to browser package 2021-05-11 19:40:14 +04:00
Jonathan Almeida
78af3d80b3 Issue #19002: Remove unused TrayItem interface 2021-05-11 19:40:14 +04:00
Jonathan Almeida
e66983d093 Issue #19002: Use AbstractBinding from lib-state 2021-05-11 19:39:50 +04:00
Mugurell
551031eee3 For #18672 - Renaming a TopSite changes just the title
Previously renaming a TopSite would bind that as a new item and in such update
the entire list. This could potentially leading changes in the list and then
it's ViewPager parent's layout.

This patch switches the code to use the existing TopSitePayload and so do a
partial update of an on-screen TopSite instead of rebind it as a new item.

If a layout is requested while showing <=4 TopSites on the second page, by
having "offscreenPageLimit = 1" the biggest height of ViewPager pages is used
preventing an edgecase where the ViewPager would hide half of the items from
the first page.
2021-05-11 17:33:10 +03:00
kanish671
9e30833506 For #18672 - Rename TopSites even on the second page
Index calculation for notifying changes while renaming a top site in the second
page was being wrongly calculated. Since it is page 2, we would need to take a
mod with the number of top sites per page to get the actual index of the top
site that was being renamed.
2021-05-11 17:33:10 +03:00
Mozilla L10n Automation Bot
db97d85057 Import l10n. 2021-05-11 00:31:17 +00:00
Neha Binwal
c3823b654c
For #19401 - Replace hard-coded hex color values with their respective photon color variable (#19406)
* Replaced #20123A with @color/photonInk80 in values\colors.xml

* Replaced #F9F9FB with @color/photonLightGrey10 in values\colors.xml

* Replaced #E0E0E6 with @color/photonLightGrey30 in values\colors.xml

* Replaced #592ACB with @color/photonViolet70 in values\colors.xml

* Replaced #312A65 with @color/photonInk20 in values\colors.xml

* Replaced #FBFBFE with @color/photonLightGrey05 in values\colors.xml

* Replaced #52525E with @color/photonDarkGrey10 in values\colors.xml

* Replaced #ffffff with @color/photonWhite in values\colors.xml

* Replaced #5B5B66 with @color/photonDarkGrey05 in values\colors.xml

* Replaced #1C1B22 with @color/photonDarkGrey80 in values\colors.xml

* Replaced #737373 with @color/photonGrey50 in values\colors.xml

* Replaced #9059FF with @color/photonViolet50 in values\colors.xml

* Replaced #5B5B66 with @color/photonDarkGrey05 in values-night\colors.xml

* Replaced #3A3944 with @color/photonDarkGrey40 in values-night\colors.xml
2021-05-10 19:26:10 -04:00
Jonathan Almeida
392ace67d6 Issue #19175: Fix SyncTabs list not updating on changes
The main cause for this is that the `LifecycleProvider` needs to be set
to `State.RESUMED` to avoid the account manager's internal
`ObserverRegistry` from putting the UI observers into the paused state.

The rest of the changes is to rely the internal (safe) logic to
correctly sync and then update the tabs list.
2021-05-10 21:37:32 +04:00
mcarare
93c6403882 For #19357: Remove bookmarks experiment and keep star-with-line icon. 2021-05-10 15:38:52 +03:00
Mozilla L10n Automation Bot
f18e771fb3 Import l10n. 2021-05-10 00:43:35 +00:00
Mozilla L10n Automation Bot
34e9b1f284 Import l10n. 2021-05-09 00:35:54 +00:00
William Lachance
f180119774
No issue - Stop generating metrics.md and direct to Glean Dictionary instead (#19411)
Now that the Glean Dictionary (https://dictionary.telemetry.mozilla.org)
has hit production, our guidance is to move away from generating
metrics.md files. The Glean Dictionary is a better solution for this task
for a couple of reasons:

1. The Glean Dictionary contains a complete reference of all metrics
and pings sent by an application (not just those defined in the
application itself, as is the case with the markdown documentation)
2. The Glean Dictionary provides additional context and links beyond
what is provided by the documentation (for example, information on
how to access metric information via BigQuery or GLAM) as well as
annotations provided by data scientists in the course of analyzing data
(see, for example, the commentary section for:
https://dictionary.telemetry.mozilla.org/apps/fenix/metrics/metrics_search_count).

This should also reduce some of the churn/burden on people when
they submit PRs, as there is no longer any need to update metrics.md
as a part of them.
2021-05-07 20:52:01 -04:00
Mozilla L10n Automation Bot
4e2477919b Import l10n. 2021-05-08 00:33:33 +00:00
Neha Binwal
0eaf9f3c12
For #8984: Added color for "Share" menu's "Recently Used" in Dark theme (#18839)
* Added color for "Share" menu's "Recently Used" in Dark theme

- Changed HEX code for inset_dark_theme in values/colors.xml

* Replaced #52525E in values/colors.xml with @color/photonDarkGrey10

* Added color for "Share" menu's "Recently Used" in Dark theme

- Created a separate attribute recentlyUsedSharedMenu to be used by 'recently used' panel of tab share menu
- It specifies colors to be used for Light and Dark theme
2021-05-07 14:48:35 -05:00
Neha Binwal
ccfff640fc
For #18226: Fixed display of tabs for when text size is set to largest (#19046)
- Made website titles clearly visible in Grid view of tab tray
- Made website URLs clearly visible in List view of tab tray
2021-05-07 14:45:09 -05:00
Elise Richards
cf9a84eed5
Move locale restoration on startup to the visual completeness queue to prevent perf impact (#19315) 2021-05-07 14:12:40 -05:00
Dharan Aditya
6cbc35b7d8
Fixed mozilla-mobile#18641: [Bug] Fill link from clipboard overlaps search engines (#18657) 2021-05-07 14:25:41 -04:00
Gabriel Luong
d83c9d1e72
For #18993 - Nimbus: Allow internal tooling to opt into specific branches of an experiment (#19333) 2021-05-07 14:21:03 -04:00
AndiAJ
8db42d6d25 Fix flaky UI Tests #19306 #19160 #19404 #19373 2021-05-07 17:14:23 +03:00
Roger Yang
a9e0557d83
Closes #3728: Add secret menu switch for allowing third party root certificates (#19398) 2021-05-06 21:52:55 -04:00
Arturo Mejia
9bfb31519a For issue #19290 update to proton icons second batch 2021-05-06 10:35:39 -04:00
mcarare
516d52997d For #18266: Validate credit card entry info. 2021-05-06 17:06:33 +03:00
mcarare
3428dd67ed For #18266: Refactor fragment and view to remove duplicate code. 2021-05-06 17:06:33 +03:00
Codrut Topliceanu
277034546f
For #18262 - [Credit cards] Turn the "Sync cards across devices" button into a "Sync cards" toggle (#19207)
* For #18262 - Turns "Sync cards/logins" into toggle
2021-05-06 14:43:27 +03:00
mcarare
32d7b78e94 For #19281: Add border radius for top sites favicons. 2021-05-06 13:56:24 +03:00
kglazko
008c523ed1
For #19055 - Add a ScrollView to the Credit Card Editor Fragment (#19117) 2021-05-05 15:43:09 -04:00
Mozilla L10n Automation Bot
4578621ffe Import l10n. 2021-05-05 15:33:22 +00:00
Roger Yang
74047cdceb
Closes #19147: Move startup metrics to right after Glean initialization (#19252) 2021-05-05 11:11:02 -04:00
codrut.topliceanu
0c74756d39 For #19132 - Fix navigation on disconnect started from tabsTray
- Added checks to popBackStack from the Disconnect Logged-in User Dialog, either back to settings, browserFragment or homeFragment.
2021-05-05 09:55:10 +04:00
Jonathan Almeida
f421f82f2c Close #19259: Pass CoroutineContext to nav interactor constructor 2021-05-04 20:13:10 +04:00
Mozilla L10n Automation Bot
3dfb89d2eb Import l10n. 2021-05-04 00:31:21 +00:00
Roger Yang
79cf3fc765
Closes #18253: Bookmark and History open new tabs in the background (#19275) 2021-05-03 17:27:19 -04:00
Mozilla L10n Automation Bot
bd9d5597fa Import l10n. 2021-05-03 00:28:38 +00:00
Mozilla L10n Automation Bot
2f5937aeb3 Import l10n. 2021-05-02 00:32:00 +00:00
Mozilla L10n Automation Bot
622f7ab4a8 Import l10n. 2021-05-01 00:27:28 +00:00
Sebastian Kaspari
ea47db4a9e Unit tests: Bump max heap size to 3072m. 2021-04-30 16:40:42 +02:00
Mozilla L10n Automation Bot
4036ae92df Import l10n. 2021-04-30 00:30:50 +00:00
Priyanka
05c38d911e
For #19273 - Ensure a new line at the EOF is available in all xml files (#19295) 2021-04-29 15:06:46 -04:00
Elise Richards
5b5e7ebf47
Turn on feature flag for three-dot menu redesign for beta. (#19111) 2021-04-29 11:34:57 -05:00
Sebastian Kaspari
cd4294d314 Issue #19040 - Fix UI test: settingsPrivacyItemsTest 2021-04-29 19:13:33 +04:00
Sebastian Kaspari
5f4a590418 Issue #19040 - Update marketing data setting description 2021-04-29 19:13:33 +04:00
Sebastian Kaspari
70fe7d5886 Issue #10941: Align Nightly version with Gecko/A-C version.
Instead of using a timestamp this will synchronize the Nightly version with the version
of Gecko / A-C. So when using 90.0.20210426143115 then the Nightly version will be
90.0a1 - similar to what Firefox desktop uses.
2021-04-29 09:50:07 +02:00
Mozilla L10n Automation Bot
c9fba71d5f Import l10n. 2021-04-29 00:31:49 +00:00
Roger Yang
59de530a9c
Closes #18253: Remove spaces from Addons telemetry comma-separated list (#19292) 2021-04-28 12:09:27 -04:00
Codrut Topliceanu
8f39592c9c
For #19113 - Change top site corner radius to 8dp (#19262) 2021-04-27 18:42:40 -04:00
Arturo Mejia
21cf0b31a4 For issue #18132 update to proton icons first batch 2021-04-27 15:42:15 -04:00
mcarare
8c0f86bd96 For #19213: Adjust synced tabs to properly show in RTL. 2021-04-27 22:26:34 +04:00
Mugurell
d495d84208 For #11819 - Show the mic in widget only if setting is enabled
If "Show voice search" is disabled under Settings, the mic icon should not be
shown in the search widget.
2021-04-27 17:28:41 +03:00
Mozilla L10n Automation Bot
4ee8f159da Import l10n. 2021-04-27 01:39:26 +00:00
Arturo Mejia
c725493bea Fix openFile breaking changes 2021-04-26 20:24:47 -04:00
William Lachance
8070a326b7
No issue - Properly quote description for ad metric (#19243)
This is pedantic, but strictly something called <provider-name> is considered an HTML tag
unless it's in a code block (backticks). 

See mozilla/glean-dictionary#549 and mozilla/glean-dictionary#497. I'm going to fix this upstream
but figured I might as well file a PR here to fix the underlying issue.
2021-04-26 19:24:23 -04:00
Sebastian Kaspari
7d690219ea Issue #19040: Remove Leanplum (Nightly) 2021-04-26 19:08:10 +02:00
Grisha Kruglov
4e16c46b27 Fix breaking changes introduced by credit card encryption APIs 2021-04-26 10:41:45 +02:00
Sebastian Kaspari
6a1b5875b0 Use new SearchSuggestionProvider flag. 2021-04-26 10:41:45 +02:00
Mozilla L10n Automation Bot
eec64110ae Import l10n. 2021-04-26 00:32:02 +00:00
Mozilla L10n Automation Bot
088d5cc801 Import l10n. 2021-04-25 00:29:11 +00:00
Mozilla L10n Automation Bot
7a4e0cd016 Import l10n. 2021-04-24 00:29:05 +00:00
Mozilla L10n Automation Bot
d1951cc672 Import l10n. 2021-04-23 00:40:41 +00:00
Mihai Adrian Carare
e952513569
For #19065 - Add extension functions to be used with credit cards. (#19187) 2021-04-22 18:22:20 -04:00
Mugurell
0f9f439329 For #18591 - Update tests
Some tests trying to "Add to top sites" may fail because of the sticky navbar
now covering that menu item -> scroll the menu up a little.

Some tests that previously were trying to scroll to the bottom of the menu to
interact with navbar options now don't have to. Them trying to interact with
navbar option with the menu opened as collapsed is a good test for the navbar
stickyness.
2021-04-22 21:09:37 +03:00
Mugurell
dc51cd47b5 For #18591 - Make the navbar sticky in the new menu 2021-04-22 21:09:37 +03:00
Roger Yang
cd37f398f1
Closes #18816: Disable TabsTray FAB on accessibility enabled (#19170) 2021-04-22 12:48:10 -04:00
mcarare
ded686d533 For #19125: Move top site pin net to title. 2021-04-22 18:53:50 +03:00
Gabriel Luong
3b3e4c0243
No issue - Replace local photon colors with ui-colors (#19167) 2021-04-22 10:37:34 -04:00
mcarare
46784ecbfb For #19180: Fix tab counter not entirely visible on RTL layout. 2021-04-22 17:02:01 +03:00
Sebastian Kaspari
cf4847dc17 Remove browser-search references. 2021-04-22 13:18:10 +02:00
mcarare
00744fa9e5 For #18267: Updates preferences visibility depending on creditCardsStore 2021-04-22 10:45:57 +03:00
Mozilla L10n Automation Bot
0bc5c22b63 Import l10n. 2021-04-22 00:30:11 +00:00
Elise Richards
688453f61f
Remove strings marked as deprecated that are no longer being used. (#19060) 2021-04-21 16:02:14 -05:00
Elise Richards
db76b8fe21
For #19114: check state of sync account when navigating from sync sign in menu item (#19118) 2021-04-21 14:13:44 -05:00
mcarare
8f1b3e03f1 For #18608: Also add default browser item in new menu. 2021-04-21 15:54:21 +03:00
Arturo Mejia
acb24396e5 Address WebExtensionBrowserMenuBuilder breaking change 2021-04-21 11:44:37 +02:00
Sebastian Kaspari
a126f0913a Update to Mozilla Android Components 90.0 2021-04-21 11:44:37 +02:00
Roger Yang
b396ede068
No issue: Suppress deprecation for LoginStorageDelegate (#19145) 2021-04-20 16:25:01 -04:00
mcarare
8b3a878062 No issue: Rename Event for naming consistency. 2021-04-20 14:48:07 -04:00
mcarare
f693375270 For #18852: Add metrics for default browser settings experiment. 2021-04-20 14:48:07 -04:00
Elise Richards
59c94e447c
For #19005: new tab three-dot menu sync sign in (#19037)
* Show synced tabs or sync account in new tab menu

* Sync sign in item navigates to account settings

* Check account auth and get sync item title

* Look for sync sign in item on home menu for UI test

* Sync sign in menu item UI test
2021-04-20 12:18:19 -05:00
mcarare
90c9e634af For #18240: Adjust preference screen to fit UX specs. 2021-04-20 19:32:14 +03:00
Christian Hernandez
f8af231582
For #18830 - Remove card nickname from credit card editor (#18891)
* Removed all views with regards to credit card nickname. Removed the TextInputLayout and TextInputEditText where information would be typed in. Also removed the credit card nickname title text view. I added a margin of 16 dp to the bottom ConstraintLayout that houses the delete, cancel, and save buttons as requested.

* #18830 - Removed all views with regards to credit card nickname. Removed the TextInputLayout and TextInputEditText where information would be typed in. Also removed the credit card nickname title text view. I added a margin of 16 dp to the bottom ConstraintLayout that houses the delete, cancel, and save buttons as requested.
2021-04-20 12:09:09 -04:00
Jonathan Almeida
69efd3a089 Close #19094: Open sign-in flow if no account is created for tabs tray 2021-04-19 23:18:37 +04:00
Kate Glazko
1ca7d55b4a For #18745: Add Shadow To Shortcut Tiles 2021-04-19 11:01:08 -07:00
Jonathan Almeida
cfaaf82541 No issue: Allow tabstray rewrite to ride the trains 2021-04-19 20:08:24 +04:00
Jonathan Almeida
8bb7abc3fe Disabling tabstray collection tests until #19090 is fixed 2021-04-19 18:10:43 +04:00
Jonathan Almeida
46cec3d658 No issue: Fix regression in last tab deleted
When we allow the homescreen to handle undo for the last tab, we no
longer need to handle this ourselves with our own binding.

In the future, we should re-think this logic to be more robust and less
spread out across multiple screens.
2021-04-19 18:10:43 +04:00
Jonathan Almeida
0189fed012 No issue: Use same open tabs tray everywhere 2021-04-19 18:10:43 +04:00
Jonathan Almeida
1e09d50fd7 No issue: Fix the initial select mode check 2021-04-19 18:10:43 +04:00
Jonathan Almeida
ad483903ed No issue: Do not create a new instance of TabsTrayStore
We only need one. :)
2021-04-19 18:10:43 +04:00
Jonathan Almeida
b6f9bbf560 Attempt at fixing openAllTabsInCollectionTest test 2021-04-19 18:10:43 +04:00
Jonathan Almeida
8b1752dd9e Disable/fix tests that rely on Select Tabs button 2021-04-19 18:10:43 +04:00
Jonathan Almeida
053453cc7f No issue: Enable tabs tray re-write by default in nightly 2021-04-19 18:10:43 +04:00
mcarare
f94f8531f6 For #18496: Set activity theme in onCreate before call to super. 2021-04-19 13:32:45 +03:00
Mozilla L10n Automation Bot
1d80ece660 Import l10n. 2021-04-19 00:31:22 +00:00
Mozilla L10n Automation Bot
635eb8eab0 Import l10n. 2021-04-18 00:32:58 +00:00