Skip to content

Instantly share code, notes, and snippets.

@rhelmer
Created April 14, 2017 02:20
Show Gist options
  • Save rhelmer/3cc50ee2acf0fef2aa9173772523b00b to your computer and use it in GitHub Desktop.
Save rhelmer/3cc50ee2acf0fef2aa9173772523b00b to your computer and use it in GitHub Desktop.

kmag tracked this down - even though bootstrap.js is waiting until it observes "sessionstore-windows-restored" to start the embedded WebExtension, because it's declared as an embedded WE in the install.rdf the manifest.json gets parsed at startup.

There is some underlying race condition here when WE manifest parsing happens at startup - however we don't need/want to do this parsing at startup so we can just make the WE not be embedded and install+start it after "sessionstore-windows-restored".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment