enable right-click context menu for firefox webextension popup - contextmenu

When I open my firefox web extension popup, and try to right click it, nothing happens. How do I enable right-clicking in a firefox web extension popup, so that the context menu appears? I want users to be able to right-click an image and copy it

Related

In Visual Studio 2019 how to ensure tab stays open after Go-To-Definition

In Visual Studio, if I Go-To-Definition on e.g. a class by Ctrl+Click or F12, the class is opened in a new tab but the tab is not part of the open tabs (not sure if that is the correct wording). The tab heading is to the right. The tab heading has a little button "Keep Tab Open Ctrl+Alt+Home".
If I make no edits in the opened tab and navigate back using Ctrl-Minus, the new tab is closed.
What do I need to do to always have Go-To-Definition windows open and never close e.g. when navigate away?
Here some pictures #hellip;
This is the start situation:
This is the actual situation after Ctrl+Click on Class1:
This is what I expect:
Tools -> Options -> Environment -> Tabs And Windows
Uncheck "Allow new files to be opened in the preview tab"
You may need to restart Visual Studio for the setting to take effect.
Click on the enlightened square in the opened tab. It will show the pin. Click on the pin so that it will always remain there.

"Right Click" in Selenium IDE to bring up the Context Menu

How can you bring up the context menu (as if you were right clicking on an element on a page) so you can see the context menu in the browser?
I see the contextMenu and contextMenuAt commands are available, but they always seem to pass the "T" flag so that the link opens in a new tab. I don't want that. I want the menu to come up so I can simulate a 'k' keypress and have the file download to my desktop.
How do you pass a switch/param to contextMenu and/or contextMenuAt so that you can actually do more than just open whatever in a new tab?

Why Won't Firefox Add-on Browser-Action Pop-Up Close?

I'm working on a Browser extension/add-on. We have it working in Chrome, so I'm trying to get it working in Firefox.
I've only gotten my extension to load in Firefox Developer Edition 49.0a2 (2016-07-25) (I'm not sure why it doesn't work normally, but have asked elsewhere).
My add-on uses a browser_action to add a button to the toolbar and open a pop-up, which opens fine, but once it's open, it seems impossible to close without quitting Firefox entirely.
In fact, it's so pernicious, the pop-up then appears over other applications!
Is this just a current bug in Firefox, or is there a way for me to fix this?
You might have accidentally clicked the "only close the popup on ESC" button in the firefox debugger, which keeps a popup open until you press Escape. Source: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Debugging#Debugging_popups
IF your browser extension popups (and right-click context menus, bookmark menu etc.) persist and refuse to go away unless you press Esc AND you have the ’Browser Toolbox’ window open—then you have probably left the ‘Disable Popup Auto-Hide’ option enabled. (This setting is only in effect when the Browser Toolbox window is open.)
To disable this setting, go to the Browser Toolbox window (the window title is ‘Developer Tools – Debugging’), then, in the upper right-hand corner, press open the three-dots menu, and uncheck ‘Disable Popup Auto-Hide’. (If checked you get sticky popups/context menus. If unchecked the popup/context menu will close if you click outside it).
Browser Toolbox
NOTE: If your browser menu does not have a ‘More tools > Browser Toolbox’ option, then the Browser Toolbox is disabled, and cannot be causing the sticky popup behavior.
The Browser Toolbox window can be opened through the browser main menu (the little hamburger icon, rightmost in the URL bar of the browser) ‘More tools > Browser Toolbox’ (or Ctrl-Shift-Alt-I).
The Browser Toolbox is disabled by default, so, for the above paragraph to work must first be enabled. To do this click on main menu icon, then ‘More Tools > Web Developer Tools’ (Ctrl-Shift-I), then, in the Developer Tools frame (or window) click the three dots menu icon (top right) and select ‘Settings’.
In the settings, scroll down to the bottom right (under the ‘Advanced settings’) and check the last two options:
[✔️] Enable browser chrome and add-on debugging toolboxes
[✔️] Enable remote debugging
Your browser menu should now contain the ‘More tools > Browser Toolbox’ option. (From the MDN Web Docs ‘Enabling the Browser Toolbox’.)
This answer (just like #Lakinator’s answer) is based off of information found on Mozilla's official site.

How can I inspect the contents of an add-on panel in Firefox's Inspector?

I am authoring an add-on for Firefox that generates a panel when the user clicks the button in the add-on bar.
In Chrome, my popup renders the way that I want it to, but I can right-click on the popup and select "Inspect element" from the context menu to debug the rendering.
In Firefox, the panel is rendering strangely, but right-clicking on it doesn't give me a context menu. Selecting Debug from the add-on tab allows me to see the content scripts and set breakpoints, but no Inspector there either.
The "inspect element" in chrome is probably visible while you are in developer mode right?
I'm not sure about the firefox inspector yet, but it is possible using:
https://addons.mozilla.org/en-us/firefox/addon/dom-inspector-6622/
and then an addon for this inspector called:
https://addons.mozilla.org/en-US/firefox/addon/element-inspector/
This addon really enables catching context menus and other temporally displayed elements. Shift + Right click and it will popup in inspector.
This DOM INspector is how we used to do it before firefox devtools came up. I'm sure there is a way, I just havent explored it too much yet.

How i can call the system popup menu from a TSynEdit component

When I make a right click in a TMemocomponent the system display a popup menu like this
but when I use a TSynEdit component this popup menu is not shown, the question is exist any way to activate this system popup menu in a TSynEdit component or do I have to implement myself a right-click popup menu for the TSynEdit component to get right-click Cut,Copy,Paste,Delete functionality ?
The popup menu you're showing is added by Windows itself to Edit controls (TMemo is a wrapper around a multiline Edit control). Since SynEdit isn't based on the Windows Edit control, but is implemented fully itself, Windows doesn't provide that menu.
If SynEdit doesn't provide a popup menu itself, you'll have to implement your own.

Resources