This patch addresses the issue reported by [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1645887 | Bug 1645887 ]] where the context menu items in the `Editor` were not copying the expected text to the clipboard.
Regarding the context menu in the `Editor` this patch modifies the menu items so that:
1. 'Copy to clipboard' => Copies the text that has been selected by a user to the clipboard.
2. 'Copy source text' => Copies all of the text from a source to the clipboard.
In addition to the above fix, this patch also modifies a related item in the `Tab` context menu so that:
1. The text for the ‘Copy to clipboard’ menu item is now replaced with ‘Copy source text’.
As with the context menu in the `Editor`, the pre-existing ‘Copy to clipboard’ menu item in the `Tab` copied all of the text from a source to the clipboard. However, instead of modifying the functionality of this menu item, the decision was made to replace the ‘Copy to clipboard’ text with ‘Copy source text’. This was done as the `Tab` and its context menu typically provides the user with general information about the file being displayed instead of being concerned with details such as the state of the editor.
{F2332380}
Differential Revision: https://phabricator.services.mozilla.com/D81887