Closed
Bug 717645
Opened 12 years ago
Closed 12 years ago
contextMenu.SelectionContext() doesn't work until page has been loaded
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 714914
People
(Reporter: whimboo, Unassigned)
Details
Today I have started to dig into the Add-on SDK. And while stepping through the tutorial I have noticed that for the first example add-on the context menu is not displayed until the page has been finished loading. file:///addon-sdk/doc/dev-guide/addon-development/implementing-simple-addon.html Here the code snippet: exports.main = function(options, callbacks) { // Create a new context menu item. var menuItem = contextMenu.Item({ label: "What's this?", // Show this item when a selection exists. context: contextMenu.SelectionContext() }); }; Given that the context menu is not displayed something is wrong with contextMenu.SelectionContext(). Steps: 1. Run cfx run for your add-on 2. Start loading a page 3. While the page loads select some text and open the context menu With step 3 you will see that the menu entry is not visible. I have tested this with the latest version of the AddonSDK on Github.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•