Closed Bug 1587086 Opened 5 years ago Closed 4 years ago

"Copy" (ctrl/cmd+c) on a selected url copies the url into the clipboard

Categories

(DevTools :: Netmonitor, enhancement, P3)

71 Branch
enhancement

Tracking

(firefox74 fixed)

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: m+mozilla, Assigned: ksenia, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

[Feature Request]

"Copy" (ctrl/cmd+c) on a selected url copies the url into the clipboard

Component: Untriaged → Netmonitor
Product: Firefox → DevTools

Honza, would this be a good first bug?

Flags: needinfo?(odvarko)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3

Some instruction for anyone interested in this bug:

  1. Here is a place where we handle key-shortcut for opening the Search panel
    https://searchfox.org/mozilla-central/rev/5cb522c7baba24e55874809e0e206b001494c1e9/devtools/client/netmonitor/src/components/Toolbar.js#178

  2. we can introduce a new similar handler for copying the URl

this.shortcuts.on(COPY_URL_KEY_SHORTCUT, event => {
  event.preventDefault();
  
 // get selected request and copy its URL into the clipboard
});
  1. Here is a place showing how to get the selected request
    https://searchfox.org/mozilla-central/rev/5cb522c7baba24e55874809e0e206b001494c1e9/devtools/client/netmonitor/src/components/MonitorPanel.js#246

Similar thing should be done in the Toolbar component (mentioned in #1)

Honza

Flags: needinfo?(odvarko)
Keywords: good-first-bug

I would like to work on this issue.

If :shivamrawat6670 is not working on this, is it ok to take it?

Flags: needinfo?(shivamrawat6670)
Flags: needinfo?(odvarko)

(In reply to Ksenia Berezina [:ksenia] from comment #4)

If :shivamrawat6670 is not working on this, is it ok to take it?

Absolutely, thanks for the help!

Honza

Assignee: nobody → kberezina
Status: NEW → ASSIGNED
Flags: needinfo?(odvarko)
Pushed by jodvarko@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2e32694af97f
Add a listener to be able to "Copy" (ctrl/cmd+c) a selected url to the clipboard r=Honza
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: