(cross-post from https://bugs.eclipse.org/bugs/show_bug.cgi?id=362835 )
1. Open Scratchpad.
2. Select some HTML from any tab and Paste into Scratchpad.
3. Notice how the pasted text shows twice.
If you use Edit > Paste you also get:
Error: An error occurred executing the cmd_paste command: [Exception...
"Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsIController.doCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: chrome://global/content/globalOverlay.js :: goDoCommand
:: line 96" data: no]
Source File: chrome://global/content/globalOverlay.js
(in the Error Console)
Created attachment 571751 [details] [diff] [review]
This is the proposed fix and a test.
I provided detailed description of the fix upstream. Please see:
Please let me know if anything needs to change. Thank you!
Forgot to mention I also pushed the patch to the try server:
This fix has also landed upstream.