Is it possible to check if the context menu is visible (ie. after a user has clicked the right mouse button), and if visible, to hide it again ? (with Javascript)
I'm going to try to hide it after a series of events have happened, so it won't be the case the user will be not able to right-click to open the context menu. (so nothing hacky :p)
EDIT: this should be the scenario (part of an addon):
* user double clicks with right mouse button twice
-> i catch the event and close the current tab
* if the user has Linux sometimes the context menu pops up (the one of the browser with: Back, Forward, Save As,...)
-> hide the context menu again if it's visible (see step above this one)