Closed Bug 1261885 Opened 9 years ago Closed 6 years ago

Right click on a link in the console should show a "Copy link" entry in the context menu

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1457111

People

(Reporter: bzbarsky, Unassigned)

References

Details

STEPS TO REPRODUCE: 1) Load a page that has errors in the console, with links to source locations (e.g. https://shop.cyberlink.com/c/shop?curr=EUR&cntr=&ml=EN&LOCALE=en_EU&OFFER_ID=6112WA033101&AFFILIATE_ID=2581_-1_37_CJaffiliate_SID-617e8c1ffb8145a88908cf5f85919deb&AM=1&ID=P11028558 from bug 1261572). 2) Observe that there are links in the console to the source of the errors. 3) Try to copy/paste the url the links are linking to so that you can point someone else to the relevant JS file. ACTUAL RESULTS: No way to copy the link. EXPECTED RESULTS: Have a way to copy the link (e.g. via the context menu).
Component: Developer Tools → Developer Tools: Console
OK, I see that. This should have a 'Copy Link Address' or similar context menu item, similar to img tags in the inspector. In the meantime a workaround is to click on the link to open view-source in a new tab and then copy / paste from the URL bar. One difference between this and the inspector is that the error link displays as url:line:col. Presumably you are wanting just the `url` part out of this?
Flags: needinfo?(bzbarsky)
> In the meantime a workaround is to click on the link to open view-source in a new tab I have view source in new tab disabled via prefs, fwiw. But yes, good point. > Presumably you are wanting just the `url` part out of this? Yep, since the line:col bit would not work for people I give the link to, sadly.
Flags: needinfo?(bzbarsky)
Thinking this is something we should add to the 'frame' component [0] (which displays all of these source links across the tools) so it'll be consistent across the toolbox. Also thinking it should *only* show the 'Copy Link Address' context menu item when right clicking this link ('store as global' / 'open in variables view' / 'select all' don't make sense in this context). [0]: https://dxr.mozilla.org/mozilla-central/source/devtools/client/shared/components/frame.js
See Also: → 1257613
Product: Firefox → DevTools
Priority: -- → P2
Summary: Not possible to copy error links from the console → Right click on a link in the console should show a "Copy link" entry in the context menu

Setting as dupe of Bug 1457111 (and not the opposite since the discussion here is about the old frontend)

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.