Closed Bug 601357 Opened 15 years ago Closed 15 years ago

right clicking anything (selected text or link) doesn't trigger a context menu

Categories

(Firefox :: Menus, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: LogosZer0, Unassigned)

Details

(Whiteboard: [closeme 2010-10-20])

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b7pre) Gecko/20101001 Firefox/4.0b7pre Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b7pre) Gecko/20101001 Firefox/4.0b7pre exactly what the title says, it happens off and on and exclusively in Firefox 4 beta series (pre-builds like final betas). Reproducible: Sometimes Steps to Reproduce: 1.select text on a web page 2.right click 3. Actual Results: no context menu appears Expected Results: a context menu :) it just happens off and on. Gnerally closing the browser and re-opening it "fixes" the problem until next time.
Version: unspecified → Trunk
should have mentioned that of course, in the same conditions, right clicking a link on a web page doesn't trigger a context menu either. So this is a general issue with the "right click"
Summary: selecting text on a web page and right clicking doesn't trigger a context menu → right clicking anything (selected text or link) doesn't trigger a context menu
Do you see any failure in the error console?
sorry that's a bit stupid because it happened again a few minutes ago, and I didn't check. Good though as I realized that the error console wasn't enabled like it was by default on FF3.* . It's running now, there are a few events that I can't link to this issue, because I have no idea how to interpret them. All I can say is that the right click issue often happens after a session has been opened for a while, and that it's definitely in firefox as I got the right click still working anywhere else on my desktop when it happens. I got many warnings and errors in the console. If you told me what to look for that would help. Thanks ps: ...no luck, I just very stupidly clicked on the "clear" button, so there's nothing now. I'll just open the console next time the right click problem happens, and report back here.
I got this error message, seems related to a VirusTotal extension that I installed not long ago. var vtzilla = { onLoad: function() { // initialization code this.initialized = true; document.getElementById("contentAreaContextMenu").addEventListener("popupshowing", this.showContextMenu, false); document.getElementById("messagePaneContext").addEventListener("popupshowing", this.showContextMenu, false); }, showContextMenu: function(event) { // show or hide the menuitem based on what the context menu is on // see http://kb.mozillazine.org/Adding_items_to_menus var menuitem = document.getElementById("context-vtzilla"); menuitem.hidden = ! gContextMenu.onLink; }, onMenuItemCommand: function(e) { if (gContextMenu.onLink) { var href = 'getLinkURL' in gContextMenu ? gContextMenu.getLinkURL() : gContextMenu.linkURL(); url_to_check = escape( href ); forceScan(url_to_check); } }, onScanthisButtonCommand: function(e) { // just reuse the function above. you can change this, obviously! var current_url = window.top.getBrowser().selectedBrowser.contentWindow.location.href; if (current_url != "about:blank") { forceScan(current_url); } else { var vtzillaStrings = srGetStrBundle("chrome://vtzilla/locale/vtzilla.properties"); var noSite = vtzillaStrings.GetStringFromName("noSite"); alert(noSite); } } }; function forceScan(url){ parameters = "force=1&url="+url; http_request = new XMLHttpRequest(); http_request.onreadystatechange = getReport; http_request.open('POST', force_scan_url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", parameters.length); http_request.setRequestHeader("Connection", "close"); http_request.send(parameters); } function getReport() { try { var vtzillaStrings = srGetStrBundle("chrome://vtzilla/locale/vtzilla.properties"); var scanError = vtzillaStrings.GetStringFromName("scanError"); } catch(e) { scanError = "Sorry, there was an error with your scan request."; } if (http_request.readyState == 4) { if (http_request.status == 200) { result = eval(http_request.responseText); if (result[0] == 1) { var win = Components.classes['@mozilla.org/appshell/window-mediator;1'] .getService(Components.interfaces.nsIWindowMediator) .getMostRecentWindow('navigator:browser'); win.openUILinkIn(main_site+result[1], 'tab'); } else { alert(scanError); } } else { alert(scanError); } } } function virustotalSearch() { var term = document.getElementById("vtzilla-search-term").value; var dataString = "chain="+term; // POST method requests must wrap the encoded text in a MIME // stream const Cc = Components.classes; const Ci = Components.interfaces; var stringStream = Cc["@mozilla.org/io/string-input-stream;1"]. createInstance(Ci.nsIStringInputStream); if ("data" in stringStream){ // Gecko 1.9 or newer stringStream.data = dataString; } else { // 1.8 or older stringStream.setData(dataString, dataString.length); } var postData = Cc["@mozilla.org/network/mime-input-stream;1"]. createInstance(Ci.nsIMIMEInputStream); postData.addHeader("Content-Type", "application/x-www-form-urlencoded"); postData.addContentLength = true; postData.setData(stringStream); // Add tab, then make active gBrowser.selectedTab = gBrowser.addTab(search_url, null, null, postData); } function capEnterKey(aEvent) { if (aEvent.keyCode == KeyEvent.DOM_VK_RETURN) { virustotalSearch(); } } window.addEventListener("load", function(e) { vtzilla.onLoad(e); }, false);
Please run Firefox in safe mode for a while, simply to check if an extension is causing this problem. If that's the case you should disable those step by step until the issue is solved.
I see Error: statusbar is null Source File: chrome://snaplinks/content/snaplinks.js Line: 128 so perhaps In my case (I haven't tested by disabling) snaplinks addon is involved.
URL: na
Whiteboard: [closeme 2010-10-20]
(In reply to comment #6) > so perhaps In my case (I haven't tested by disabling) snaplinks addon is > involved. and indeed it worked fine after I disabled snaplinks
No reply, INCOMPLETE. Please retest with Firefox 3.6.11 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.