Ever since bug 404536 has landed, a number of users have been angry. What that bug did was removing the context menu for HTML form elements. This change annoyed mainly two classes of users: those who were accustomed to those context menus, and those who used extensions which add menu items to the context menus for form elements (along with other elements, possibly), most notably, Firebug.
Exactly one year later, I am releasing the Form Control Context Menu extension, with the sole purpose of reverting back to the old behavior of showing the context menus for HTML form elements. So, if you've been affected by this in the past, jump up and install this extension. It can be installed on anything from Firefox 3.0 Beta 4 to the latest trunk builds.
Remember that the extension is currently in sandbox, so you need to log in before installing it. Make sure to leave your comments if you find the extension useful, because moving it out of the sandbox needs your comment love. 
If you are an extension developer, and your extension adds something to those context menus, and is hence affected by that fix, you can either ask your users to install the Form Control Context Menu extension, or use the below code inside your own extension. This code needs to run exactly once for each browser window, so you can add it to the load event handler of the XUL window.
-
let setTargetOriginal = nsContextMenu.prototype.setTarget;
-
nsContextMenu.prototype.setTarget = function(aNode, aRangeParent, aRangeOffset) {
-
setTargetOriginal.apply(this, arguments);
-
if (this.isTargetAFormControl(aNode))
-
this.shouldDisplay = true;
-
};
For the curious, this is exactly the same code used inside the extension. You can browse the extension's source code on AMO, but there's nothing too interesting there. 


Comments
Hey
I live in Kuwait I used to communicate online with someone named Ehsan who immigrated to canada after the Tir events in Tehran University. And he had a nice weblog. I was wondering if you are him.
Re: Hey
No, I'm not the one that you had met online.
feedback va zabane farsi
salam.
kash mishod ma betoonim feedback ro be zabane farsi baraye teame firefox ersal konim.
alan moshkelate asasi ke man ba firefox daram:
1. work offline kheili zaeefe va bishtare vaghta kar namikone.
2. vaghti az menu view page source ro mizanim codha baraye namayesh dade shodan az no bargozari mishan.
3. safahat sari zakhire namishan. kheili vaghta safhati ke kamelan load shodan baraye save zakhire shodan tool mikashan.
be khatere in moshkelat kheili vaghta majboor hastam az Opera estefade konam.
Pingback
[...] H. Stephen McMinn wrote an interesting post today onHere’s a quick excerptSo, if you’ve been affected by this in the past, jump up and install this extension. It can be installed on anything from Firefox 3.0 Beta 4 to the latest trunk builds. Remember that the extension is currently in sandbox, so you need to … [...]
Pingback
[...] Blog Vecindad Gráfica Diseño Gráfico wrote an interesting post today on Show right-click menus on form elementsHere’s a quick excerpt…you’ve been affected by this in the past, jump up and install this extension. It can be installed on anything from Firefox 3.0 Beta 4 to the… [...]
Post new comment