This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Firefox 40 disable javascript control

  • 2 replies
  • 79 have this problem
  • 1 view
  • Last reply by RBV

more options

For Firefox 40 on Windows 7 laptop.

I today noticed that a Web site did not enable me to right-click links or indeed anywhere. A quick test with a different Firefox 40 profile equipped with NoScript demonstrated that if I blocked that page's JavaScript, right-click functionality was restored. Clearly, then, the page was using JavaScript to disable context menus and so on.

I then looked in the FF profile where J'Script was disabling right-clicking for the controls that enabled me to control whether or not JavaScript was allowed to disable right-clicks / prevent menus / et cetera. Evidently this control has been removed? (Oh dear, is this another example of FF's "take control out of the hands of the user" improvements?)

■ Am I correct in my conclusion that in Firefox 40 (and perhaps even in prior releases), control over JavaScript has been removed from FF's options? (I currently have Classic Theme Restorer in all my FF profiles. I note in passing that the number of FF features and behaviors that extremely important addon needs to put back into the users hands grows with each release of FF. Sigh...)

■ If I am correct, is there an addon that restores that basic functionality? Or an about:config trick? Or?

Cheers & thanks for your help...

For Firefox 40 on Windows 7 laptop. I today noticed that a Web site did not enable me to right-click links or indeed anywhere. A quick test with a different Firefox 40 profile equipped with NoScript demonstrated that if I blocked that page's JavaScript, right-click functionality was restored. Clearly, then, the page was using JavaScript to disable context menus and so on. I then looked in the FF profile where J'Script was disabling right-clicking for the controls that enabled me to control whether or not JavaScript was allowed to disable right-clicks / prevent menus / et cetera. Evidently this control has been removed? (Oh dear, is this another example of FF's "take control out of the hands of the user" improvements?) ■ Am I correct in my conclusion that in Firefox 40 (and perhaps even in prior releases), control over JavaScript has been removed from FF's options? (I currently have Classic Theme Restorer in all my FF profiles. I note in passing that the number of FF features and behaviors that extremely important addon needs to put back into the users hands grows with each release of FF. Sigh...) ■ If I am correct, is there an addon that restores that basic functionality? Or an about:config trick? Or? Cheers & thanks for your help...

Chosen solution

That was done before FF 24. I have an extension called "Controle de Scripts" which works with FF 24 (even though the description says it only goes up to FF 21). Whether it works with FF 40 is another question. If not, there are a number of dom... settings in about:config (if they have not been removed). The one that controls the context menu is dom.event.contextmenu.enabled. Set that to false to get back control of the context menu.

Read this answer in context 👍 17

All Replies (2)

more options

Chosen Solution

That was done before FF 24. I have an extension called "Controle de Scripts" which works with FF 24 (even though the description says it only goes up to FF 21). Whether it works with FF 40 is another question. If not, there are a number of dom... settings in about:config (if they have not been removed). The one that controls the context menu is dom.event.contextmenu.enabled. Set that to false to get back control of the context menu.

more options

Thank you finitarry!

dom.event.contextmenu.enabled' did indeed' re-enable the right-click menu that the site had disabled via JavaScript. (Happy to learn that this setting still exists in FF 40 even though the user-facing controls have been removed.)

Cheers & thanks 'gain RBV SFO