Broadcast a "started" message after initialization

Other extensions listening in on NoScript's messages (e.g. Torbutton)
can take this message as an indication that it's now safe to send an
"updateSettings" message to NoScript without immediately getting
clobbered by the configuration loader.

See https://trac.torproject.org/projects/tor/ticket/26520 for context.
This commit is contained in:
Rusty Bird 2018-08-27 22:29:16 +00:00
parent c646f09a2b
commit 26bfd899f9
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF
1 changed files with 1 additions and 0 deletions

View File

@ -180,6 +180,7 @@
await include("/bg/Settings.js");
Messages.addHandler(messageHandler);
await Messages.send("started");
log("STARTED");
this.devMode = (await browser.management.getSelf()).installType === "development";