Permalink
Browse files

Closes #529 inform content processes when a script is enabled/disable…

…d for Fennec
  • Loading branch information...
1 parent a99f753 commit 8114c71b804032dc2cb698653db5618c99294ef9 @erikvold erikvold committed Sep 5, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 extension/modules/addonprovider.js
@@ -59,6 +59,12 @@ const Scriptish_ScriptProvider = {
case "scriptish-script-edit-enabled":
AddonManagerPrivate.callAddonListeners(
aData.enabling ? "onEnabled" : "onDisabled", script);
+
+ // notify content processes that a script's enabled state changed
+ if ("Fennec" == Services.appinfo.name) {
+ // TODO: use a more intelligent custom message handler
+ Scriptish_sendAsyncE10SMessage("Scriptish:ScriptChanged", script.toJSON());
+ }
break;
case "scriptish-script-modified":
case "scriptish-script-updated":

0 comments on commit 8114c71

Please sign in to comment.