Closed
Bug 1156615
Opened 6 years ago
Closed 6 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•6 years ago
|
||
We should implement something similar to `hrefAndLinkNodeForClickEvent` (browser/base/content/browser.js).
Assignee | ||
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Attachment #8595136 -
Flags: review?(kchen) → review+
![]() |
||
Comment 3•6 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•6 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•6 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•6 years ago
|
||
Paste with middle click: bug 1158101.
Assignee | ||
Comment 7•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8bb7223ea7fc
Keywords: checkin-needed
Comment 8•6 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/c01be883059b
Keywords: checkin-needed
Comment 9•6 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c01be883059b
Status: ASSIGNED → RESOLVED
Closed: 6 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
•