Closed Bug 52311 Opened 24 years ago Closed 20 years ago

Right-clicking image inside an anchor should focus anchor

Categories

(Core :: Layout, enhancement, P4)

enhancement

Tracking

()

VERIFIED WORKSFORME
Future

People

(Reporter: wd, Assigned: attinasi)

References

()

Details

Attachments

(1 file)

When you (left) click on an image that is a link in Mozilla, it puts a dotted-line box around the link you just clicked on. This is a nice feature to let you know where you are and have been. Mozilla should also do this when *right*-clicking on an image link. I have an FTP program that monitors the clipboard for URL's. I right-click on an image and hit "Copy link location". Now let's say I have a page with 100 links I want to copy. With mozilla, it's nearly impossible to remember where I have left off. I use IE in such a case, because it does put such a box around the image when right-clicking. (and left-clicking, as Mozilla does) For an example of this, check out http://ifihada.com/sp/ Right-clicking on any of the stars does not but a box around it. An image link should display a box when right-clicked, just as a text link does.
I don't know what this would be, but not selection. reassigning to html element for possible further triage
Assignee: mjudge → clayton
Component: Selection → HTML Element
QA Contact: blakeross → lorca
Blake- Call me silly, but I'm not seeing how this could be related to Element-if the selection is working with the item with left click and not with a right click- wouldn't that place it squarely under a "Selection Recognizer Widget" problem umbrella?
Nope. Selection typically has to do with drag-highlighting content of a website, not right clicking on an image. I don't know why this is happening, though. Obviously the proper styling is in html.css, so maybe it's a focus bug? However, I was under the impression that saari's fix not all that long ago set focus to *all* elements on right click before the context menu appeared. Ian or Saari, any ideas?
Sounds like what you want is a right-click to set focus on links. Nothing to do with images per se. Sending to rod for further triage.
Assignee: clayton → rods
Priority: P3 → P4
Summary: [RFE] Right-clicking image link should put dotted box around it → [RFE] Right-clicking link should focus it
Target Milestone: --- → Future
Nope. Links *are* focused on right-click. That's what makes this bug so weird.
Summary: [RFE] Right-clicking link should focus it → [RFE] Right-clicking image should focus it
Blake: Not in my build they ain't...
Summary: [RFE] Right-clicking image should focus it → [RFE] Right-clicking image inside an anchor should focus anchor
Yep, this is a strange one. I went to the test case with a FreeBSD build from last night and saw exactly as described: <A HREF=foo>text</A> Left mouse down -> focus ring around text Right mouse down -> context menu + focus ring around text <A HREF=foo><IMG SRC=bar></A> Left mouse down -> focus ring around image Right mouse down -> context menu + NO focus ring!
I see what I was doing wrong. When you already have a context menu up, and then right click on a link, it is not focussed. That is probably a separate bug.
reassigning to core layout
Assignee: rods → karnaze
Hixie: did you find the bug you mentioned on 2000-09-18?
Jesse: nope; I didn't really look though. Feel free to deal with it. :-)
Ok, filed bug 64849.
WARNING: making right clicks take focus could potentially cause a raft of bugs. Be careful here.
Reassigning QA Contact for all open and unverified bugs previously under Lorca's care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
qa contact updated.
QA Contact: gerardok → bsharma
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
QA Contact: bsharma → moied
->attinasi
Assignee: karnaze → attinasi
Changing qa contact. Also attaching a testcase with four examples: an image link, a text link, an image link in a table cell, a text link in a table cell. The images have no dotted line around them whether you right click or left click. The text has dotted lines around it when you left click AND when you right click. The behavior is already there for text. I'm not sure what the behavior should be for image links.
QA Contact: moied → chrisd
Above testcase with 10_03_05_0.9.4 build.
Changing QA contact
QA Contact: chrisd → petersen
Summary: [RFE] Right-clicking image inside an anchor should focus anchor → Right-clicking image inside an anchor should focus anchor
Attachment #52101 - Attachment mime type: application/x-compressed → application/x-zip-compressed
This worksforme (try the banner image at the top of this very page -- right-clicking on it shows a focus outline) in a current build.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
V. WFM
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: