2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00
Commit Graph

160 Commits

Author SHA1 Message Date
Sebastian Kaspari
dfb3c4c9bf Introduce process lifecycle observer to collect metrics about tabs when app goes to foreground/background. 2021-04-09 12:36:27 +02:00
Michael Comella
2be9fb61d0 For #18426: add StartupActivityStateProvider.
This will be used to filter conditions for the start up telemetry we're
adding.
2021-03-30 10:38:44 -07:00
Michael Comella
edd49b286d For #18426: add ApplicationStartReasonProvider.
We need to know this state to add a correct COLD MAIN probe.
2021-03-30 10:38:44 -07:00
Elise Richards
559cf54798
For #17190: notifications are updated when locale is changed (#18179)
* Add intent processor for locale changes

* Recreate notification and notify in the service

* Use locale use cases to update notification

* Use notification id instead of tag

* Add locale use cases and restore locale in application

* Send locale to service instead of string

* Controller tests for locale

* Update Android Components version to 74.0.20210323143308

Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2021-03-23 14:16:30 -04:00
Michael Comella
9024eca01e For #18426: add telemetry for app.onCreate subsections.
Hopefully this will help us understand behavior of the
`application_on_create` probe, specifically that it seems to take longer
in telemetry than in does locally compared to `home_activity_on_create`
(comparing the medians to local runs)..
2021-03-19 11:52:29 -07:00
Mugurell
ec0176275b For #17869 - Start the Android Keystore experiment
Only on API 23+ (minimum Android version needed for SecureAbove22Preferences)
and only if enabled by a Nimbus experiment.

The Nimbus experiment will have the key `fenix-android-keystore` and use the
default branches - "control" and "treatment".
2021-03-15 13:35:49 -07:00
Arturo Mejia
8f43acc903 Closes #18367 run SupportedAddonsChecker only for users with unsupported extensions 2021-03-15 10:40:10 -04:00
Jan-Erik Rediger
c47f43608d Set distributionId right after initializing Glean
Previously setting it might have been arbitrarily delayed, resulting in
this metrics missing from pings that get submitted earlier.
Setting it early should prevent that.
The performance impact is negligible, Glean dispatches recording that
data off-main-thread anyway.
2021-03-15 13:38:11 +01:00
Jan-Erik Rediger
8b7279ebe4
Pass auto-generated build info (version code and name) to Glean (#18230)
This also re-generated the Glean docs due to an update of the bundled
glean-parser.
2021-03-04 10:22:56 -06:00
Michael Comella
993428cd0f For #17969: add duration probes for App.onCreate and HomeActivity.onCreate. 2021-02-19 13:20:34 -08:00
Michael Comella
2e45483eb0 For #17816: add ProfilerFactProcessor and register it, tests. 2021-02-11 14:52:36 -08:00
jhugman
1ef4102e13
Fixes #17738 - Early initialization of Nimbus (#17834) r=christian 2021-02-05 18:54:47 +00:00
Christian Sadilek
50e66b469d Remove SessionManager reference from FenixApplication 2021-02-05 14:16:35 +01:00
Michael Comella
d48bb2a4cc Revert "For #17447: add intentional delay to cold start up in debug and nightly."
This reverts commit 093470a8b3. This
intentional regression was only intended to be temporary so now we're
removing it.
2021-01-29 14:59:27 -08:00
Christian Sadilek
810200f2ab Switch to use case when selecting tab for extensions 2021-01-18 15:12:34 -05:00
Michael Comella
093470a8b3 For #17447: add intentional delay to cold start up in debug and nightly.
I validated:
- that the log statement appeared in Nightly but not in Beta.
- that the local runtimes of our perftest increased (the median diff is 124ms)
2021-01-17 18:38:12 -08:00
Sebastian Kaspari
051988ecff Migrate some "selected tab" reads from SessionManager to BrowserStore. 2021-01-15 16:52:59 +01:00
Christian Sadilek
9a53054b28 Use new RestoreUseCase in A-C to handle tab timeouts 2021-01-07 15:50:54 -05:00
Sebastian Kaspari
1b6cebf4d4 Switch to new SessionStorage / session restore API. 2021-01-05 17:11:57 +01:00
Sebastian Kaspari
055c76b7ba FenixApplication: Remove unused kinto endpoint. 2020-11-30 15:50:38 -05:00
Sebastian Kaspari
d84b8ebdc6 Issue #12731: Log and record breadcrumb when onTrimMemory() gets invoked. 2020-11-30 15:42:29 +01:00
jhugman
9cdfb6db4a
Nimbus Global Opt Out (#16543) r=gl 2020-11-19 11:17:25 +00:00
MarcLeclair
7b1af41b40
15278 detekt rule runblocking (#15942)
* For #15278: added CoroutineManager to count runBlocking calls

* For #15278: Added actual detekt rule for runblocking and its config to the yaml

* For #15278: Added unit test for RunblockingCounter

* For #15278: renamed StrictModeStartupSuppressionCountTest.kt to PerformanceStartupTest.kt and added runBlockingCount test

* Lint fix

* For #15278: made runblocking a Long to prevent overflow

* For #15278: fixed MozRunblocking name, description and moved RunBlockingCounter to perf package

* For #15278:Renamed MozillaRunblockingCheck to MozillaRunBlockingCheck

* For #15278: Added setup for unit test, since it failed without restting counter

* For #15278: Fixed naming for RunBlocking lint check

* For #15278: removed changes made to test to use runBlockingIncrement

* For #15728: added test exclusion for runBlocking check

* For #15278: changed null check and added Synchronized to count setter

* For #15278: fix for nits

* For #15278: added StartupExcessiveResourceUseTest to CODEOWNERS

* For #15278: fixed for nits

* For #15278: Moved increment function to extension function and fixed indentation

* For #15278: Added tests for Atomic Integer extension and nit fix
2020-11-02 12:49:17 -05:00
Mihai Adrian Carare
0ee7e1c28d
For # 15929: Remove the search widget discoverability experiment. (#16081)
* For #15929: Remove SearchWidgetCFR telemetry.

* For #15929: Remove SearchWidgetCFR and search widget experiment.

* For #15929: Remove unit tests references to search widget experiment.
2020-10-28 13:46:02 -07:00
Christian Sadilek
c330426bb7 No issue: Fix onConfigurationChange crashes in Debug build 2020-10-27 18:54:07 -04:00
Mihai Adrian Carare
0e2657e262
For #14735: Remove debug logs from release build. (#15747) 2020-10-13 09:17:58 -04:00
Michael Comella
f19c9920f9 For #13959: move resetAfter into StrictModeManager.
In a followup PR, we need to add state to strictModeManager (the
number of suppressions). This is much simpler to do when this is defined
as a class rather than an object. However, when this is defined as a
class, `resetAfter` needs access to the strictModeManager. Instead of
passing it in as an argument, it made sense to move this function onto
the strictModeManager instead.

Since folks are used to calling:
```
StrictMode.ThreadPolicy.allowThreadDiskReads().resetAfter
```

We're going to have to add a lint check to prevent them from doing that.
2020-09-28 18:01:19 -07:00
Michael Comella
6abeb2d9e7 For #13959: change StrictModeManager to class from object.
I originally tried to create this PR leaving this as an object to keep
the change simple but it wasn't worth it - once the object started to
keep state, we'd need to manually reset the state between runs. Also,
the tests were already getting hacky with static mocking so it was
easier to address some of those issues this way too.
2020-09-28 18:01:19 -07:00
Arturo Mejia
6f5e9bad26
Pin AC TO 57.0.0 and remove feature flag for view downloads (#14592)
* Update Android Components version to 57.0.0.

* Remove feature flag for "View Downloads".

* Update search enginer list from changes by #13452

Co-authored-by: Chenxia Liu <liuche@mozilla.com>
2020-09-01 20:04:31 -07:00
Arturo Mejia
c63fd3f9ac Add support for restoring downloads 2020-08-29 12:04:23 -04:00
Sachin
316b70940f
for #12573, added startup type and hasSavedInstance keys to app_startup_type telemetry (#13494) 2020-08-26 23:14:13 -07:00
Jeff Boek
c73870b794 For #13507 - Performance fixes for the ReviewPromptController 2020-08-26 21:02:02 -07:00
Christian Sadilek
8b9c3e0108 Fixes for A-C 57.0.20200826190111: Move EngineSession to BrowserState 2020-08-26 18:39:05 -04:00
Gabriel Luong
7d9274e990 For #10342 - Part 1: Remove top sites prefetch and observation of live data 2020-08-26 18:39:05 -04:00
Christian Sadilek
0162fd68a9 Revert "For 11660: fixing nits for previous #11668 (#11821)"
This reverts commit bd7a5375f2.
2020-08-26 18:39:05 -04:00
MarcLeclair
bd7a5375f2
For 11660: fixing nits for previous #11668 (#11821) 2020-08-26 16:11:46 -04:00
sraturi
5ccbca25c0 for #13479, added a VisualCompletenessQueue.kt class to handle all the functionality related to visual completeness 2020-08-24 14:08:37 -07:00
Tiger Oakes
c9f8986d2b
Don't init glean in unit tests (#13100) 2020-08-04 11:18:52 -07:00
Michael Comella
5d8c900391 For #12802: add StorageStats glean metrics. 2020-07-31 16:05:06 -07:00
Sachin
6a618aa318
for #11698 added on demand workmanager initialization (#12739) 2020-07-28 16:26:18 -07:00
Michael Comella
2ae88aec81 No issue: add missing newline. 2020-07-21 15:52:34 -07:00
Michael Comella
6e06c7fda1 No issue: clean up initVisualCompletenessQueue... method.
A no-op clean up.
2020-07-21 15:52:34 -07:00
Michael Comella
633bc4f2f2 No issue: extract initVisualCompletenessQueueAndQueueTasks.
This refactor, done entirely by IDE, is a no-op cleanup.
2020-07-21 15:52:34 -07:00
Michael Comella
169071ac61 No issue: extract startMetricsIfEnabled function.
This refactor, done entirely by IDE, is a no-op clean-up of this file.
2020-07-21 15:52:34 -07:00
Tiger Oakes
c08d375c18
Move settings in components (#12675) 2020-07-21 10:47:10 -07:00
Tiger Oakes
d0e9f1f165
Update Kotlin dependency (#10806) 2020-07-15 18:02:58 -07:00
Sawyer Blatz
61b1b5a895
No issue: update experiments when experiments updated (#12032) 2020-06-26 17:19:58 -07:00
Sawyer Blatz
c5034fa770 No issue: Allow us to run experiments on nightly if needed 2020-06-26 09:16:38 +03:00
Mihai Branescu
49b617c999
For #9100 - Private browsing notification fixes
Co-authored-by: Seef <Saif Dara>
2020-06-24 21:35:11 -04:00
Sachin
9269a53b21
for #11615 allowed strictMode disk read for violations made by the OS. (#11658) 2020-06-21 14:54:49 -07:00