Open Bug 1613227 Opened 5 years ago Updated 9 months ago

[meta] Reduce overhead of creating a new window on GeckoView

Categories

(GeckoView :: General, defect, P3)

All
Android

Tracking

(Not tracked)

People

(Reporter: mstange, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [geckoview:m75])

Here's a profile of loading google.com in a new tab in Fenix: https://perfht.ml/2OrKjSi

You can see a lot of activity in the parent process when the new tab is created. Accounting for profiling overhead, I'd estimate that creating a new geckoview.xhtml for each tab adds 200ms to 400ms to the first page load of a new tab.

In Firefox Desktop, all tabs in a browser window are managed by the same browser.xhtml.

Priority: -- → P1
Whiteboard: [qf] → [qf][geckoview:m75]

Having 1 tab = 1 window is pretty central in GeckoView's design, so it's not something we can easily change. We can use this bug to reduce the overhead of creating a new window.

Summary: Opening a new tab creates a new geckoview.xhtml → Reduce overhead of creating a new window on GeckoView

Not loading all the desktop custom elements should help (bug 1531455). Looks like we spend 200ms in that file and then trigger a bunch of notifications related to it.

Blocks: 1604248
Assignee: nobody → bdahl
Whiteboard: [qf][geckoview:m75] → [qf:p1:responsiveness][geckoview:m75]
Keywords: meta
Summary: Reduce overhead of creating a new window on GeckoView → [meta] Reduce overhead of creating a new window on GeckoView
Depends on: 1617979
Depends on: 1531455
Blocks: 1608826
No longer blocks: 1604248
Priority: P1 → P3

Removing qf:p1 as meta bugs shouldn't have qf tags.

Whiteboard: [qf:p1:responsiveness][geckoview:m75] → [geckoview:m75]

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: bdahl → nobody
Severity: normal → S3
See Also: → 1752594
You need to log in before you can comment on or make changes to this bug.