Closed Bug 426074 Opened 16 years ago Closed 15 years ago

Right-click on HTML buttons should not display depressed state

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 313459

People

(Reporter: adelfino, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008033007 Minefield/3.0pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008033007 Minefield/3.0pre

Right clicking on a Web page buttons should be ignored; since that happens when you right click any "real" button, at least, in Windows (like Close in title bar). Often, buttons have a "What is this?" menu, but that does not relate to a Web page.

Now, a pressed state is shown.

Reproducible: Always
Version: unspecified → Trunk
Severity: normal → enhancement
Component: Menus → DOM: HTML
Product: Firefox → Core
QA Contact: menus → general
Summary: Ignore right click on Web page buttons → Ignore right click on Web page buttons (form input controls)
Can you please clarify what you mean by "web page buttons"?  Are you referring to <a href="http://www.blah.com"><img src="foo.gif"></a>?  Why do you think web content should be treated as platform-native content?
(In reply to comment #1)
> Can you please clarify what you mean by "web page buttons"?  Are you referring
> to <a href="http://www.blah.com"><img src="foo.gif"></a>?  Why do you think web
> content should be treated as platform-native content?
> 

<input type="button">, <button>.
Where on here do you see context-menu items for Submit or radio buttons, on right-click?

http://www.w3schools.com/html/html_forms.asp
He doesn't. His point was that since there are no context menus, there is no reason to respond to rightclick.

That being said, I at least agree that the current action is quite odd.  If I right click a button, it becomes focused.  This is fine.  But if I then mouseover the focused button, it paints pressed even though it is not being pressed
Blocks: 404536
(In reply to comment #4)
> He doesn't. His point was that since there are no context menus, there is no
> reason to respond to rightclick.

Right.

I still think the behavior is really annoying from a web developer view. I use the context menu -> inspect element from firebug all day, especially when a form is miss behaving. This small patch adds a user pref (contextmenu.allforms.enabled) to turn this behavior off (back on). 

I would like to also not, I do not believe just because Windows does something, it should be a valid basis for firefox development. my 2cents.
No longer blocks: 433168
I think the title of this bug confuses many people, especially within the discussions about context menus (in other bugs, such as bug 433168 for example). I think the title of this bug should be changed to something like:

Right-click on HTML buttons should not display depressed state
(In reply to comment #8)
> I think the title of this bug confuses many people, especially within the
> discussions about context menus (in other bugs, such as bug 433168 for
> example). I think the title of this bug should be changed to something like:
> 
> Right-click on HTML buttons should not display depressed state

Perfect suggestion, thanks!
Summary: Ignore right click on Web page buttons (form input controls) → Right-click on HTML buttons should not display depressed state
Component: DOM: HTML → DOM: Core & HTML
Attachment #315850 - Attachment is patch: true
Attachment #315850 - Attachment mime type: application/octet-stream → text/plain
Confirming. With the context menu gone, right click should be a no-op, IMHO. Regardless, the active state shouldn't persist after the mouseup.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: enhancement → trivial
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: