aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 00:39:52 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-06-05 14:46:50 +0200
commitcb82da27fc37ebe74aa9678506e72eb1a7308ca3 (patch)
tree743209aab4c515fd62c57c7f7982347ff760dec6 /data/lib/util.js
parent680ad8225d72703dcdc98a128c7dd4f408a3018b (diff)
downloadbugzilla-triage-cb82da27fc37ebe74aa9678506e72eb1a7308ca3.tar.gz
Use self.on and self.postMessage instead of global on and postMessage.
The reason is https://bugzilla.mozilla.org/show_bug.cgi?id=635748 and effort to save the world from global variables in content scripts.
Diffstat (limited to 'data/lib/util.js')
-rw-r--r--data/lib/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/lib/util.js b/data/lib/util.js
index c2989d2..4a46403 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -333,7 +333,7 @@ function removeDuplicates (arr) {
// ============================================
/**
* object to pack messaging. Use as in
- postMessage(new Message("GetPassword", {
+ self.postMessage(new Message("GetPassword", {
login: login,
hostname: location.hostname
}));
@@ -344,7 +344,7 @@ function Message(cmd, data) {
}
function log(msg) {
- postMessage(new Message("LogMessage", msg));
+ self.postMessage(new Message("LogMessage", msg));
}
var NotLoggedinException = function NotLoggedinException (message) {