[Pkg-mozext-commits] [greasemonkey] 30/55: Service broadcastScriptUpdates(): set initial AND broadcast.
David Prévot
taffit at moszumanska.debian.org
Thu Oct 29 15:38:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository greasemonkey.
commit 73736edf03220f4dd1fa4224ae65dfaa15c845b4
Author: Anthony Lieuallen <arantius at gmail.com>
Date: Thu Sep 24 10:06:38 2015 -0400
Service broadcastScriptUpdates(): set initial AND broadcast.
Refs #2259
---
components/greasemonkey.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/components/greasemonkey.js b/components/greasemonkey.js
index 136041a..48870ee 100644
--- a/components/greasemonkey.js
+++ b/components/greasemonkey.js
@@ -157,17 +157,17 @@ service.prototype.scriptUpdateData = function() {
service.prototype.broadcastScriptUpdates = function() {
var ppmm = Cc["@mozilla.org/parentprocessmessagemanager;1"]
- .getService(Ci.nsIMessageListenerManager);
+ .getService(Ci.nsIMessageBroadcaster);
// Check if initialProcessData is supported, else child will use sync message.
var data = this.scriptUpdateData();
if (ppmm.initialProcessData) {
- // For new processes.
+ // Initial data for any new processes.
ppmm.initialProcessData["greasemonkey:scripts-update"] = data;
- } else {
- // For existing ones.
- ppmm.broadcastAsyncMessage("greasemonkey:scripts-update", data);
}
+
+ // Updates for existing ones.
+ ppmm.broadcastAsyncMessage("greasemonkey:scripts-update", data);
};
service.prototype.closeAllScriptValStores = function() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git
More information about the Pkg-mozext-commits
mailing list