Closed
Bug 1156615
Opened 10 years ago
Closed 10 years ago
(Browser API) ctrl/cmd/middle-click doesn't work if <a> element has children
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: paul, Assigned: paul)
References
Details
Attachments
(1 file)
2.89 KB,
patch
|
kanru
:
review+
|
Details | Diff | Splinter Review |
<a>foo</a> works. <a><span>foo</span></a> doesn't.
Assignee | ||
Comment 1•10 years ago
|
||
We should implement something similar to `hrefAndLinkNodeForClickEvent` (browser/base/content/browser.js).
Assignee | ||
Comment 2•10 years ago
|
||
Updated•10 years ago
|
Attachment #8595136 -
Flags: review?(kchen) → review+
![]() |
||
Comment 3•10 years ago
|
||
That doesn't seem right to me. If I have an <input> inside <a> and I middle-click on Linux to paste into it, won't this patch try to open the anchor href in a new tab?
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Not doing reviews right now from comment #3)
> That doesn't seem right to me. If I have an <input> inside <a> and I
> middle-click on Linux to paste into it, won't this patch try to open the
> anchor href in a new tab?
B2G on Linux doesn't appear to support middle click for pasting.
If that's alright, I'd like to land this patch and file a follow-up bug to support pasting with middle click on Linux. Or maybe you have an idea of a better way to support middle click to open a link in a new tab.
Flags: needinfo?(bzbarsky)
![]() |
||
Comment 5•10 years ago
|
||
Followup sounds fine as long as something is tracking this. It's worth looking at what Firefox does here...
Flags: needinfo?(bzbarsky)
Assignee | ||
Comment 6•10 years ago
|
||
Paste with middle click: bug 1158101.
Assignee | ||
Comment 7•10 years ago
|
||
Keywords: checkin-needed
Comment 8•10 years ago
|
||
Keywords: checkin-needed
Comment 9•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•