From 4964705f6918eda4cf4c310d261d95242bd2f0ad 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/addAttachmentRow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/lib/addAttachmentRow.js') diff --git a/data/lib/addAttachmentRow.js b/data/lib/addAttachmentRow.js index 13ad226..204192e 100644 --- a/data/lib/addAttachmentRow.js +++ b/data/lib/addAttachmentRow.js @@ -30,7 +30,7 @@ function addAttachment(data, callback, param) { nomail: true }); - postMessage(new Message("MakeXMLRPCall", { + self.postMessage(new Message("MakeXMLRPCall", { url: constantData.XMLRPCData[window.location.hostname].url, login: getLogin(), method: "bugzilla.addAttachment", -- cgit