Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to prevent Firefox from sending Right Click Events to a Server?

  • 3 replies
  • 1 has this problem
  • 9 views
  • Last reply by globus999

more options

Hi, I am getting sick and tired of websites taking action upon a Right Click Even. No, I am not talking about a webserver hijacking the righ-click menu. I have that under control. The problem is that the millisecond something is right-clicked on, the server executes and action, e.g. opening a different page. There used to be an about:config option to prevent this from happening, but I have lost it. If any kind person would be so kind to remind me, I would be eternally grateful.

Hi, I am getting sick and tired of websites taking action upon a Right Click Even. No, I am not talking about a webserver hijacking the righ-click menu. I have that under control. The problem is that the millisecond something is right-clicked on, the server executes and action, e.g. opening a different page. There used to be an about:config option to prevent this from happening, but I have lost it. If any kind person would be so kind to remind me, I would be eternally grateful.

Modified by cor-el

All Replies (3)

more options

I think you are probably looking for the dom.event.contextmenu.enabled preference on the about:config page.

more options

Note that it is quite possible that the website uses JavaScript to monitor mouse events and take action when you left-click or right-click. This action isn't send to the server, but is processed locally on your computer. The above posted pref will only prevent the website from disabling the Firefox context menu (i.e. you can get two drop-down menus: website and Firefox), but websites will still be able to take action when you right) click. You would have to block the script that does this action to prevent this.

more options

cor-el said

Note that it is quite possible that the website uses JavaScript to monitor mouse events and take action when you left-click or right-click. This action isn't send to the server, but is processed locally on your computer. The above posted pref will only prevent the website from disabling the Firefox context menu (i.e. you can get two drop-down menus: website and Firefox), but websites will still be able to take action when you right) click. You would have to block the script that does this action to prevent this.

Tx. Possibly. Problem is, this seems to be the newest stupid trend of the week. Webmasters taking control away from the user "for the greater good", of course. Will try disabling JavaScript, but this is the nuclear option as it breaks down all other functionality. There used to be addons that would allow finer control over this level of stupidity, but they now seem deprecated. Too bad...