[Bug] Long delay between browsing to URL and page starting to display
This is a follow-up bug for additional work not covered in #7143
Steps to reproduce
- Click on the URL bar
- Enter
cnn.com, e.g., - Click "->"
Expected behavior
- Click on the URL bar
- Enter
cnn.com, e.g., - Click "->"
- Page begins to render
Actual behavior
- Click on the URL bar
- Enter
cnn.com, e.g., - Click "->"
- Wait
- Page begins to render
Device information
- Android device: Pixel 2
- Fenix version: Nightly
┆Issue is synchronized with this Jira Task
It appears that the remaining delay comes from
- Initializing a session:
SessionManager.getOrCreateEngineSessiontakes ~130ms on a Pixel 2. For reference, that is ~4x as long as it takes to initialize Gecko - (Depending on when this happens and it's effect on when the user sees the page start to render), there is (yet another)
BrowserToolbarView.<init>that takes > 200ms.
Trace attached. 7707.trace.gz
Triage: Eric will try to see if this is still a perceptible problem and prioritize accordingly.
Confirmed this still reproduces on Fenix Nightly 200225 and Release 3.2.0. I'm not sure if there are other sites affected, but I tested 6 and CNN was the only site with an issue. In addition to Will's original STR entering the URL in the address bar, I can also reproduce when clicking on the link to cnn.com from search results. It does not appear to matter if the page load is cold or warm.
Cold page load profile for cnn.com Also reproduces on https://www.saccounty.net (cold page load profile)
Issue no longer reproduces in Fenix Nightly 200304