Closed Bug 1708386 Opened 3 years ago Closed 2 years ago

Add an evaluation result message when using the `copy` helper


(DevTools :: Console, enhancement)



(firefox92 fixed)

92 Branch
Tracking Status
firefox92 --- fixed


(Reporter: nchevobbe, Assigned: claubatista, Mentored)



(1 file)

Steps to reproduce

  1. Open the console
  2. Evaluate copy(1 + 1)

Expected results

A message is added in the console telling the user that a message was added to the clipboard, for example:

The following string was copied to clipboard: "2"

Actual results

No messages are displayed and the user has no way to know if the evaluation was successful or not.

Hi! I was able to reproduce.
I'd like to work on this bug. :)

Thanks Claudia,

So you might want to take a look at where we do put the string (that the server sent us) into the clipboard.

In the same function, you can see how we add message to the console here
(the message is localized so we can have translation in multiple languages; the string is defined in

Let me know if you have any question!

Assignee: nobody → contatodaclau
Pushed by
[devtools] Add an evaluation result message when using the `copy` helper. r=nchevobbe
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.