From 26bfd899f91b5517074d66c5d72ea0917a3088a0 Mon Sep 17 00:00:00 2001 From: Rusty Bird Date: Mon, 27 Aug 2018 22:29:16 +0000 Subject: 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. --- src/bg/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bg') diff --git a/src/bg/main.js b/src/bg/main.js index 47d28a3..ac49865 100644 --- a/src/bg/main.js +++ b/src/bg/main.js @@ -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"; -- cgit v1.2.3