Open Bug 1807070 Opened 3 years ago Updated 3 years ago

[Snap] nsIShellService.isDefaultBrowser is slow and called 3 times during startup

Categories

(Core :: Widget: Gtk, defect, P3)

Desktop
Linux
defect

Tracking

()

Performance Impact low

People

(Reporter: florian, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf, perf:startup, reproducible)

Here is a startup profile https://share.firefox.dev/3WEiAyp where we see that nsIShellService.isDefaultBrowser is called 3 times during startup, and is pretty slow. It blocks the main thread while it launches another process.
Could we cache the result? Could we launch this process off main thread earlier during startup and keep the information for when we do need it on the main thread? Do the callers really need this information?

The child process is fired when running in Snap sandbox so it's not general Linux issue.

Blocks: snap
Priority: -- → P3
Summary: nsIShellService.isDefaultBrowser is slow and called 3 times during startup → [Snap] nsIShellService.isDefaultBrowser is slow and called 3 times during startup
Performance Impact: --- → ?
Performance Impact: ? → low
Keywords: reproducible
You need to log in before you can comment on or make changes to this bug.