Extension life cycle and "on startup finished" event


I’m looking for an event that’s fired when Firefox has finished its startup.

I’ve tried:

  1. browser.runtime.onStartup
  2. document.addEventListener("DOMContentLoaded" ...

But both are fired too early, for example when I do:
I get only one tab, the session tabs are not loaded yet.

Is there any life cycle diagram available?


(jscher2000) #2

I can’t answer that, but…

would it be crazy to suggest you hook the onUpdated event and use it to reset a countdown timer: once updates stop firing, the timer should go to zero and you can do whatever you wanted to do with the tabs.