kubuzetto / behind

behind! addon source code repository
https://addons.mozilla.org/en-US/firefox/addon/behind/
Mozilla Public License 2.0
89 stars 3 forks source link

[Bug] Shift-Right-Click Context menu item gets removed when clicked #19

Closed brazenvoid closed 3 years ago

brazenvoid commented 3 years ago

I had made that review on Firefox where you suggested to use Shift Right Click on websites that disable right click.

This is an odd one and I think its a Firefox bug instead as it happens to the containers extension's menu item as well but am throwing it, just in case.

So what happens is either it does not show up at all or when it does, either it detects images but says no images found in the new tab or it does pick up the images and for all next occurrences the menu item never shows up until I restart Firefox

brazenvoid commented 3 years ago

I am trying to make it work on ViewBug

jscher2000 commented 3 years ago

Using Shift+right-click can bypass both in-page event handlers and content script event handlers for the contextmenu event. Menu items that don't depend on the results of an event handler aren't affected.

One possible workaround for extension authors might be to monitor click events, check for the right-button, etc.

For now, here's a possible end-user workaround:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste dom.event.contextmenu.enabled and pause while the list is filtered

(3) Double-click the preference to switch the value from true to false. With this value, if Firefox is blocking the site's context menu, you can tap the menu access key (on Windows, it's the Alt key) to peel off Firefox's menu and use the site's menu.


I am trying to make it work on ViewBug

This site uses inline frames (<iframe>) for photographs, at least in some galleries. The first step could be to right-click the image and then click This Frame > Open Frame in New Tab.