Open Bug 1580638 Opened 6 years ago Updated 1 years ago

Startup default browser check causes mainthread IO on Linux

Categories

(Firefox :: Shell Integration, defect, P3)

defect

Tracking

()

Performance Impact low
Tracking Status
firefox71 --- affected

People

(Reporter: Gijs, Unassigned)

References

(Blocks 2 open bugs)

Details

(4 keywords)

Unsure where this fits in the startup timeline because it was found through strace, as the IO is hidden to our profiler on Linux because it happens inside gtk libraries.

On my VM, calls to g_app_info_get_default_for_uri_scheme stats (and presumably, also reads some of?) nearly 30 files.

Fixing this probably means running some of this code off the main thread and using a promise or other async construct for our "is this the default browser" interface, and updating the consumers.

Blocks: 1580658
Whiteboard: [fxperf] → [fxperf:p3]
Priority: -- → P3
Severity: normal → S3
Performance Impact: --- → ?
Keywords: perf:startup
Whiteboard: [fxperf:p3]

The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Impact on browser: Causes noticeable startup delay
Websites affected: Rare
[x] Able to reproduce locally

Performance Impact: ? → low
Keywords: reproducible
You need to log in before you can comment on or make changes to this bug.