2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00
iceraven-browser/app
Grisha Kruglov 6297f2cce9 [fenix] 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
..
sampledata
src [fenix] Use UpdateUrlAction to record viewTime observations 2021-09-20 20:14:04 +00:00
.gitignore
benchmark.gradle
build.gradle [fenix] Ensure glean-native is excluded 2021-09-14 13:14:36 -04:00
lint-baseline.xml [fenix] For https://github.com/mozilla-mobile/fenix/issues/20634: remove some unused color resources 2021-09-14 13:10:03 -04:00
lint.xml [fenix] https://github.com/mozilla-mobile/fenix/issues/7346 update lint-baseline.xml and remove activity_addons.xml as unused resource 2021-08-02 10:22:34 +02:00
metrics.yaml [fenix] Issue https://github.com/mozilla-mobile/fenix/issues/18711: Telemetry for credit card autofill 2021-09-07 19:16:04 +00:00
pings.yaml [fenix] For https://github.com/mozilla-mobile/fenix/issues/20596 remove startup timeline probes 2021-08-22 00:57:10 +00:00
proguard-rules.pro [fenix] For https://github.com/mozilla-mobile/fenix/issues/20824: use fast service loader for MainDispatcherFactory. 2021-08-18 03:59:44 +00:00