#4547 Right-click in Firefox triggers nested comment expansion

Comments (601)

System: Firefox 4.0 , any story URL (say, http://hardware.slashdot.org/story/11/04/01/0026202/Robots-Dive-Deep-To-Solve-Airliner-Crash-Mystery, scroll down to martyb's comment whose parent isn't shown by default, right click on any text in the comment) - right clicking on a nested/hidden/one-line comment, causes the parent to open. This also occurs with a comment that is not collapsed (e.g. martyb's).

This is a bug in Firefox, https://bugzilla.mozilla.org/show_bug.cgi?id=184051 , and from there you can see a great example of what occurs at http://yuiblog.com/sandbox/yui/v270/examples/menu/click-test.html . The Yahoo interface appears to have a workaround at http://developer.yahoo.com/yui/docs/menumanager.js.html (search for Firefox, it'll be near the first hit). I have copied the code below. While it would be awesome if Firefox could fix this, a workaround in Slashdot would be nice, so that I can open links in deeply nested comments (because the context menu doesn't trigger in this scenario) without having to click until all the parent comments in the thread are open.

This doesn't happen elsewhere on the page. If this is by design, could you point me to where in code it happens so that I can greasemonkey the event handler to not trigger on right clicks?

I am more than happy to provide more info or a demonstration screencap if you'd like.

if (sEventType == "click" && (UA.gecko && oMenu.platform != "mac") && p_oEvent.button > 0) {
bFireEvent = false;


  • Comment has been marked as spam. 

    You can see all pending comments posted by this user  here

    Anonymous - 2011-04-23

    This also happens when you left click on a link. I'll be honest: overall the click to expand has caused me nothing but frustration, and I would prefer if it only did that when you clicked on the title of the comment.

    Last edit: Anonymous 2014-10-18
  • Leak

    Leak - 2011-05-02

    It also happens when middle-clicking on a link, which doesn't work until you have expanded every parent post, which is even more irritating as it'll immediately jump somewhere else on the page even though a middle click isn't supposed to move the page at all...

  • Ciprian Csordas

    Ciprian Csordas - 2011-07-04

    I concur with akb825. In all my 3 browsers (Chrome/Firefox/IE)) browsers (left/middle/right) clicking on comments body has only caused frustrations to such level that I close the web page and go somewhere else. That (especially) includes links present inside comments.

    This bug blocks access to very basic features. It should only toggle on title.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks