Answer the question
In order to leave comments, you need to log in
Flash object context menu extension from addon?
Good morning, habr!
Faced a difficulty in expanding the context menu (by the right mouse button gets out) for a flash-object.
This is happening in the context of an addon on a fresh firefox addon SDK .
The code is something like this:
var CONTEXT_MENU = require("sdk/context-menu");
var menuItem = CONTEXT_MENU.Item({
context: CONTEXT_MENU.URLContext(['*.dsga.me',]),
contentScriptFile: self.data.url('context-menu-actions.js'),
onMessage: function(text) {
var searchUrl = "http://dseye.ru/service/addon-search.html?term=" + require("sdk/querystring").escape(text);
TABS.open(searchUrl);
}
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question