• Hello Keith,

    I hope you are well. I’ve just installed your plugin and it seems to be working well on desktop Chrome, Opera and Edge, but for some reason the right-click context menu is still enabled in Firefox?

    I am logged in to my WP dashboard in Firefox – does that have something to do with it? The setting for logged in users is unchecked so I guess it may not:

    https://www.dropbox.com/s/6ynvkkr0nc8cgnt/no-right-click-settings.jpg?dl=0

    I have cleared the WP and broswer caches.

    I also wanted to clarify this:

    “If you have uploaded your images to WordPress so that the images from the gallery can be opened in their own window, then this plugin will not work on the clicked image.”

    I see no options within the Media Library or Settings Media to have images open in a new window? Please can you tell me what I’m missing or misunderstanding?

    Many thanks for your help.

    Michael.

    • This topic was modified 4 years, 5 months ago by michaelmartin73. Reason: Settings screenshot
    • This topic was modified 4 years, 5 months ago by michaelmartin73.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Firefox, by default, does not allow JavaScript to access the properties that the plugin uses to prevent the right click menu from appearing. The plugin uses JavaScript so that it does not break pages by altering their HTML code. I tried to use a direct modification of the code and it broke more things than it fixed.
    I have spent many hours trying to bypass this prohibition in Firefox without luck.
    Firefox considers this a security issue because there are other things on the right click menu that they consider necessary. I disagree, but there is little I can do about it except to leave a strongly worded complaint on their developer forums that was ignored.
    There are other plugins that do things like cover the image with a div or replace the image with a blank if there is a right click. Believe me, I have already tried all of them, but they often change the functionality of a web page too much. Perhaps you can try one of those.

    Keith

    Thread Starter michaelmartin73

    (@michaelmartin73)

    Hi Keith, thanks very much for getting back to me. I didn’t realize Firefox doesn’t allow for that functionality. I am sure you have spent many hours on attempting to fix – I can 100% relate. I feel like all I’m doing lately is fixing (or trying to fix) problems!

    Can I just check please (I’m fairly new to WordPress) – where is the setting or option you mention regarding opening images in a new window? I may well have misunderstood what you meant, and my apologies if that’s the case.

    Thank you for your help.

    Michael.

    Most themes support opening an image in a new window by default. The problem with this is that it is outside of WordPress. There is now way to control if a person right clicks it or not.
    I may have referenced opening in a new window because I have a separate plugin that enforces that for external links in order to prevent the current site being replaced by a link. Both plugins use the same basic JavaScript approach. (I am sorry for the confusion but I 70 years old and not as sharp as I used to be.)
    I checked and there are literally dozens of plugins that say they are capable of preventing right clicking on images. Most of them claim that they create HTML standards compliant code so they won’t break your site. It would be interesting to see how well they work with Firefox.
    In any case they might not work at all with image gallery or image library plugins.

    Good luck,

    Keith

    Thread Starter michaelmartin73

    (@michaelmartin73)

    Thanks very much Keith for the info – I appreciate it. Keep well.

    Michael.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Firefox right click remains enabled’ is closed to new replies.