Hi there,
I’m trying to get a new item using context-menu on every popup window I’m forced to use, but I get this new item on the context menu of the parent window, but not on any of it’s children windows.
What I am using I think it’s quite simple code:
var self = require("sdk/self");
var contextMenu = require("sdk/context-menu");
// Create a new context menu item.
var menuItem = contextMenu.Item({
label: "DEBUG: Cool option here",
contentScriptWhen: 'ready',
contentScriptFile: self.data.url("getdata.js"),
onMessage: function () {
...some processing here...
}
});
Any tip on how to get this item available on any window?.
Cheers, Ibon.