Skip to content

Commit

Permalink
Closes #529 inform content processes when a script is enabled/disable…
Browse files Browse the repository at this point in the history
…d for Fennec
  • Loading branch information
erikvold committed Sep 5, 2011
1 parent a99f753 commit 8114c71
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extension/modules/addonprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 8114c71

Please sign in to comment.