Closed Bug 1442827 Opened 6 years ago Closed 5 years ago

Add instrumentation to collect XBL used on the startup path

Categories

(Core :: DOM: Core & HTML, task, P5)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: zbraniecki, Unassigned)

References

Details

As a follow-up to bug 1426509 it would be useful to collect information on what XBL bindings are used on the startup path.

That would make allow us to target them and prioritize removal of XBL bindings from the startup path.
Blocks: war-on-xbl
Depends on: 1426509
No longer depends on: 1442826
When do we define startup as complete? When the main browser windows have finished restoring?
(In reply to Dave Townsend [:mossop] from comment #1)
> When do we define startup as complete? When the main browser windows have
> finished restoring?

Forwarding question to Florian
Flags: needinfo?(florian)
(In reply to Dave Townsend [:mossop] from comment #1)
> When do we define startup as complete? When the main browser windows have
> finished restoring?

There are several possible answers:
1. when we have painted a first browser window (ie. after the first "browser-delayed-startup-finished" notification)
2. when we are done with session restore (ie. after "sessionstore-windows-restored")
3. when we are first idle after finishing everything (ie. after "sessionstore-windows-restored" + several idle callbacks, eg. https://searchfox.org/mozilla-central/rev/78dbe34925f04975f16cb9a5d4938be714d41897/browser/components/tests/startupRecorder.js#128-136)

If it's reasonable to assume that the XBL bindings will be the same in all browser windows, and that you don't care about stuff done by add-ons soon after first paint, then #1 is enough.
Flags: needinfo?(florian)
Priority: -- → P3
Priority: P3 → P5
Component: DOM → DOM: Core & HTML
Type: enhancement → task

I suppose this one can be closed safely now: a few bindings are left only, so there's nothing to prioritize now.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.