Open Bug 490374 Opened 16 years ago Updated 3 years ago

Input (type="button") and buttons with a background image should have a context menu

Categories

(Firefox :: Menus, enhancement)

enhancement

Tracking

()

People

(Reporter: Natch, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug, )

Details

Attachments

(1 file, 3 obsolete files)

Attached file youtube-style image
For all the same reasons in bug 424101 and because to the user this looks the same as a regular image, for consistency this should be enabled. See the url (yes, youtube) the logo image is unreachable.
Attached patch patch w/test (obsolete) — Splinter Review
Had to move the check down a bit as it was being overriden by the variables set after the call to isTargetAFormControl. I'm not even sure why those values are being reset there, isn't there a new nsContextMenu for every click? If so, all those values are already being set in the constructor, so it's Just Weird. Added a test to an existing test file, renamed it et al.
Assignee: nobody → highmind63
Status: NEW → ASSIGNED
Attachment #395513 - Flags: review?(gavin.sharp)
Oh, forgot to mention, the change to getComputedURL was necessary as the call would result in a CSSValueList, the first item being the url...
Comment on attachment 395513 [details] [diff] [review] patch w/test Gonna revise a bit, which will include a fix for bug 287048.
Attachment #395513 - Attachment is obsolete: true
Attachment #395513 - Flags: review?(gavin.sharp)
Blocks: 287048
Attached patch patch (obsolete) — Splinter Review
Ok, fixes this and the dependent bug, right-clicks that aren't over actual links (or the actual links child) will allow still for background image viewing. For this bug, inputs and buttons with background images will sprout the background-image context menu.
Attachment #406607 - Flags: review?(gavin.sharp)
Attached patch updated to tip + some fixes (obsolete) — Splinter Review
Updated to catch some bitrot, also fixed a small mistake.
Attachment #406607 - Attachment is obsolete: true
Attachment #408256 - Flags: review?(gavin.sharp)
Attachment #406607 - Flags: review?(gavin.sharp)
Depends on: 544710
Ping. Any chance of getting a review here?
->default
Assignee: highmind63 → nobody
Status: ASSIGNED → NEW
Attachment #408256 - Attachment is obsolete: true
Attachment #408256 - Flags: review?(gavin.sharp)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: