Commit Graph

5878 Commits

Author SHA1 Message Date
Gabriel Luong
e4a25f4123 For #21035 - Refactor HistoryViewInteractor from HistoryView into HistoryInteractor 2021-08-26 21:04:49 +00:00
Oana Horvath
a7c45425d7 For #21002: added page main menu items tests 2021-08-26 08:21:10 +00:00
Christian Sadilek
597b73c732 Dedupe history metadata in groups based on url 2021-08-25 20:19:50 +00:00
Elise Richards
014abc8143
Update search metric expiration dates (#21016) 2021-08-25 14:43:17 -04:00
Arturo Mejia
37c26976ac For #20919 add confirm dialog when turning on/off experiments 2021-08-24 23:47:14 +00:00
Arturo Mejia
ce0fc5b1af For #20871 mark strings for removal 2021-08-24 23:15:06 +00:00
Elise Richards
41825022e7
For #19931: Add telemetry probes for recent bookmarks on home screen (#20316)
* Add telemetry probes for recent bookmarks on home screen. Tests for controller.

* Make the events into counters in the metrics ping

Update tests to reflect new metrics

Add data review link for new metrics

Mock new settings for startup metrics tests

Update metrics

Add test for recent bookmark glean events

* Recent bookmarks controller tests
2021-08-24 12:30:13 -07:00
Mugurell
09e8d34c26 For #20507 - Inactive tabs telemetry
Two new events are added:
- "inactive_tabs_expanded" for when the inactive tabs section is expanded
- "inactive_tabs_collapsed" for when the inactive tabs section is collapsed

For tracking when an inactive tab is opened / closed I've repurposed the
existing tabs tray telemetry (since the functionality uses the same code)
- tabs_tray.opened_existing_tab
- tabs_tray.closed_existing_tab
to support an extra "source" key indicating the feature from which a tab was
opened or closed. The current values for this new key are:
- "Tabs tray" for when a tab was opened/closed from tabs tray
- "Inactive tabs" for when a tab was openes/closed from the Inactive tabs
section of the tabs tray.
2021-08-24 12:10:58 +00:00
Mugurell
0fa9363f99 For #17917 - Remove the Kotlin synthetics Lint detector
Since all usages of Kotlin synthetics are removed and no such code is generated
anymore there is no need to keep around this Detector anymore.
2021-08-24 10:26:36 +00:00
Mugurell
cb32b1437e For #17917 - Remove the kotlin-android-extensions plugin
This means no code will be generated by Kotlin Android Extensions for caching
views and also for @Parcelize annotated classes.

As recommended in the official documentation
https://developer.android.com/topic/libraries/view-binding/migration#gradle
we need to switch on using `kotlinx.parcelize.Parcelize` instead of
`import kotlinx.android.parcel.Parcelize`

For #17917 - Remove the `kotlin-android-extensions` plugin

This means no code will be generated by Kotlin Android Extensions for caching
views and also for @Parcelize annotated classes.

As recommended in the official documentation
https://developer.android.com/topic/libraries/view-binding/migration#gradle
we need to switch on using `kotlinx.parcelize.Parcelize` instead of
`import kotlinx.android.parcel.Parcelize`
2021-08-24 10:26:36 +00:00
Mugurell
621c388c12 For #17917 - Finish migrating all synthetics usages 2021-08-24 10:26:36 +00:00
codrut.topliceanu
5e13ead750 For #20328 - Adds telemetry for recentlyClosed button
...from tabsTray, inactiveTabs section.
2021-08-24 09:52:33 +00:00
Oana Horvath
84767f84ea For #20716: re-enables mainMenuInstallPWATest UI test 2021-08-24 08:25:34 +00:00
Oana Horvath
9920cbeb1d For #20868, #18764: Update Tracking Protection UI tests 2021-08-24 08:25:34 +00:00
Grisha Kruglov
6161dc6e8d Closes 20975: Run metadata cleanup after Megazord.init()
This ensures that we do not attempt places initialization before
Megazord.init() finishes, and that touching BrowserStore does not
kick-off places initialization (due to the `cleanup` call being a
side-effect of creating metadata middleware, used as part of the
BrowserStore).

Glean initialization happens before initialize megazord, and it touches
core.store BrowserStore instance, kicking-off places initialization on
an IO thread (due to the cleanup call), which raced megazord
initialization on the main thread.

App init sequence is a bit of a mine-field, so this patch takes the easy
way out and doesn't attempt to re-order initialization sequence. Also,
initializing places as a side-effect of touching BrowserStore was also,
clearly, a bug.
2021-08-23 22:29:46 +00:00
codrut.topliceanu
7070bb5607 For #17917: Use View binding in add-ons 2021-08-23 15:49:22 +00:00
Mugurell
05f74eb620 For #20586 - Put everything behing a secret setting
Not ready for prime-time. Lot of work still to be done.
2021-08-23 14:38:06 +00:00
Mugurell
6ae8c90f41 For #20586 - Basic Jetpack Compose implementation.
This is just the basic skeleton for the feature.
2021-08-23 14:38:06 +00:00
Arturo Mejia
4f163e18e7 For #20892 update connection icons in quick settings 2021-08-23 13:35:45 +00:00
mcarare
83b752afef For #20927: Replace icons with AC icons. 2021-08-23 08:16:55 +00:00
rxu
f88be38796 Use armeabi-v7a version code for MozillaOnline builds 2021-08-23 05:51:00 +00:00
Arturo Mejia
ffad73d646 For #20919 quite the app when turning on/off experiments 2021-08-23 03:39:55 +00:00
Rohan Maity
707918cdc1 For #20596 remove startup timeline probes 2021-08-22 00:57:10 +00:00
Jonathan Almeida
7915ef8f3f Close #20945: Fix failing test in AccountSettingsInteractorTest 2021-08-20 21:23:25 +00:00
Jonathan Almeida
693fbef88d Speculative fixes intermittent test in DeleteAndQuitTest 2021-08-20 19:26:42 +00:00
Arturo Mejia
d3019986a4 For #20919 quit the after removing a study. 2021-08-20 15:07:00 +00:00
codrut.topliceanu
bf5b4a5655 For #17917: Use View binding in tabs tray 2021-08-20 14:18:39 +00:00
Mugurell
69fa9abdd2 For #17917 - Migrate home from Kotlin synthetics to View Binding. 2021-08-20 13:45:05 +00:00
Mugurell
ff4669a759 For #17917 - Migrate browser from Kotlin synthetics to View Binding. 2021-08-20 13:15:39 +00:00
codrut.topliceanu
34e063669a For #17917: Use View binding in Login Exceptions 2021-08-20 09:44:12 +00:00
rxu
c82af0a97a Add event ping telemetry for the Baidu top site click 2021-08-20 03:46:20 +00:00
Grisha Kruglov
fc7a92bf10 Enable recording of history metadata for all builds
This allows recording part of history metadata to ride the trains.
The UI features are still guarded by the secret settings flag (or,
enabled on debug builds).
2021-08-19 23:07:06 +00:00
Arturo Mejia
8b4190a429 For #20890 when TP is off globally hide TP section on quick settings. 2021-08-19 22:36:25 +00:00
Roger Yang
6855295b61 Restore unused string tab_collection_dialog_negative 2021-08-19 21:46:56 +00:00
Grisha Kruglov
4b01846ab0 Closes #20901: Do not record viewTime observations when we do not have a set lastAccess
The bug here was that we'd try to record `now - 0` as a viewTime delta.
This isn't just an obviously wrong value to record, but it will also
overflow our storage - we'll end up with a value on disk that doesn't
fit into an i32, but HistoryMetadata.total_view_time is i32 in our Rust
struct. Once that happens, reads that touch this bad row will result in
an overflow and a crash.
2021-08-19 13:30:32 -07:00
Roger Yang
c9b2f9e866 Issue #2783: Add snackbar to collection deletion 2021-08-19 17:06:45 +00:00
codrut.topliceanu
77e12f9014 For #20716 - Disables Intermittent failing UI test 2021-08-19 16:10:12 +00:00
Sebastian Kaspari
8be900392b metrics.yaml: Add data review URL for Android Autofill metrics 2021-08-19 15:13:37 +00:00
Roger Yang
64cd72871f Update Android Components version 2021-08-19 14:04:18 +00:00
Jonathan Almeida
ef036f3ca9 Issue #20864: Speculative fix for HomeFragmentTest failures 2021-08-18 08:55:45 +00:00
codrut.topliceanu
20c9a247f5 For #17917: Use View binding in tracking protection(2) 2021-08-18 07:40:26 +00:00
Michael Comella
f74e63ceae For #20824: use fast service loader for MainDispatcherFactory.
For details on the root cause, see the commit. We replaced the similar
proguard rules because:
- the key line was returning false instead of true
- the other line had the same outcome as the written code. I believe it
  was a micro-optimization. Since perf seems fine without it, let's
  remove it

I benchmarked this change on COLD MAIN first frame. We see an
improvement of 89ms:
- before: 1346ms
- after: 1257ms
2021-08-18 03:59:44 +00:00
codrut.topliceanu
c52b6615e5 For #17917: Use View binding in Share views 2021-08-18 03:27:17 +00:00
codrut.topliceanu
7acd6997f6 For #17917: Use View binding in Onboarding Tests 2021-08-18 02:47:50 +00:00
Arturo Mejia
215ef9d46b For #19886 use block color on disabled permissions 2021-08-17 01:42:42 +00:00
Mozilla L10n Automation Bot
45daeb128a Import l10n. 2021-08-17 00:36:38 +00:00
Jonathan Almeida
0090381663 Close #20796: Additional fixes for intermittent failing test
Fixes for TrackingProtectionExceptionsInteractorTest to remove the lamba
mocking and test actual BrowserState changes instead (where possible).
2021-08-16 22:54:22 +00:00
Arturo Mejia
512475df9e For #19886 integrate view binding. 2021-08-16 16:42:39 -04:00
Arturo Mejia
fd8e6a9c27 For #19886 fix ui tests 2021-08-16 16:42:39 -04:00
Gabriel Luong
d1b9744069 For #19886 - Add a back navigation to the Global Quick Settings from the Tracking Protection dialog 2021-08-16 16:42:39 -04:00