From cb82da27fc37ebe74aa9678506e72eb1a7308ca3 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Apr 2011 00:39:52 +0200 Subject: 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. --- data/lib/fixingAttMIME.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/lib/fixingAttMIME.js') diff --git a/data/lib/fixingAttMIME.js b/data/lib/fixingAttMIME.js index 99c32f7..a016fe6 100644 --- a/data/lib/fixingAttMIME.js +++ b/data/lib/fixingAttMIME.js @@ -62,7 +62,7 @@ function fixAttachById(id, XMLRPCURL, type, email) { 'nomail' : !email }); - postMessage(new Message("MakeXMLRPCall", { + self.postMessage(new Message("MakeXMLRPCall", { url: XMLRPCURL, login: getLogin(), method: "bugzilla.updateAttachMimeType", -- cgit