Fenix: First page load calls onLoadingStateChanged with loading=false twice

Created on 26 Jun 2019  路  4Comments  路  Source: mozilla-mobile/fenix

QA noticed that there was a discrepancy between uri_count and search_count and after some further investigation it looks like onLoadingStateChanged from the session observer is getting called twice on the first load in a session.

This is causing an extra Event.UriOpened event to get tracked.

E2 Telemetry P2 engverified 馃悶 bug

All 4 comments

This could be a good candidate for a regression unit test! 馃榿

I also noticed https://github.com/mozilla-mobile/fenix/issues/6126 while investigating this bug, which probably accounts for some of the discrepancy. Note that #6126 only impacts uri_count, not search_count.

Verified this behavior on Reference Browser at https://github.com/mozilla-mobile/reference-browser/pull/926 and opened https://github.com/mozilla-mobile/android-components/issues/4795 against AC. Opening a PR with a temporary fix from our side.

Hi, verified as fixed on Nightly Build #12970607 from 24/10.

Ping 463e6ecc-0b48-4355-92b9-af151f6ac7e9 - 3 searches performed 鉁旓笍
Ping d523cd31-b93e-4efd-aa41-aef8ed8ae956 - 5 searches performed 鉁旓笍
Ping 5ccb0c78-4401-47ee-9777-0542d52840a4 - 8 searches performed 鉁旓笍

Logcat

Ping 0fc0f19c-15af-4502-9d16-868968b283a5 - 6 searches performed, (one with each search engine) 鉁旓笍
Logcat

Was this page helpful?
0 / 5 - 0 ratings