late posting but... || MAIN || my dream machine

March 06, 2004

ask asa supplemental

Earlier in the week I attempted to answer one of the "Ask Asa" questions about websites that use JavaScript to disable context menus. As I was investigating that issue, I called in some expert advisors, Chris Aillon and Johnny Stenback. Well, Chris and JST helped me with the answer and today Chris helps us all with the fix :)

If you're tired of website's disabling your context menu, grab a new build of Firefox or Mozilla tomorrow and set the pref. You can do this by editing your preferences file or by using about:config. To use about:config, type about:config it in the URLbar and right-click anywhere inthe resulting list of preferences. Select New -> Boolean from the context menu and then fill in the values dom.event.contextmenu.enabled and false. That should block sites from being able to suppres your menus :-)

Anyone want to throw together a patch for Firefox's Advanced JavaScript Options window so we can set this with real UI?

Posted by asa at March 6, 2004 02:45 PM
Comments

Ahem, and SeaMonkey too for those of us still lagging behind in the times.

Posted by: Christopher Aillon on March 6, 2004 02:54 PM

Now that's a cool feature. I'm not really a programmer myself but I really hope someone adds that to the UI. Currently I use Tabbrowser Extensions to disable Javascript in that tab, but disabling Javascript entirely seems like overkill.

Posted by: Neil T. on March 6, 2004 03:03 PM

Time from mentioning the issue until having a browser with the feature: 3 days. Not to sound like an Open Source zealot, but this is pretty amazing!

Posted by: lurker on March 6, 2004 10:38 PM

There's already a patch waiting on review :)

Posted by: Mike on March 6, 2004 10:59 PM

It's bug 117532.

Posted by: Robert Accettura on March 7, 2004 10:17 AM

Won't that prevent a site from having a custom context menu? I use that on my blog...

Posted by: wolf550e on March 7, 2004 11:31 AM

wolf550e, I sure hope so :-) Unless I explicitely give your site permission to remove or replace my standard UI elements, then you're out of luck. That's the way I see things, anyway.

Posted by: Asa Dotzler on March 7, 2004 11:47 AM

Post a comment