Pasted HTML shows twice in Orion

RESOLVED FIXED in Firefox 10

Status

()

Firefox
Developer Tools
P1
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: msucan, Assigned: msucan)

Tracking

Trunk
Firefox 10
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [sourceeditor][orion][fixed-in-fx-team])

Attachments

(1 attachment)

(Assignee)

Description

6 years ago
(cross-post from https://bugs.eclipse.org/bugs/show_bug.cgi?id=362835 )

STR:

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
Line: 100

(in the Error Console)
(Assignee)

Comment 1

6 years ago
Created attachment 571751 [details] [diff] [review]
proposed fix

This is the proposed fix and a test.

I provided detailed description of the fix upstream. Please see:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=362835#c0

Please let me know if anything needs to change. Thank you!
Attachment #571751 - Flags: review?(rcampbell)
(Assignee)

Comment 2

6 years ago
Forgot to mention I also pushed the patch to the try server:

https://tbpl.mozilla.org/?tree=Try&rev=11995cd8f63f
Attachment #571751 - Flags: review?(rcampbell) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/8a0ec6782f96
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
(Assignee)

Comment 4

6 years ago
This fix has also landed upstream.
Whiteboard: [fixed-in-fx-team] → [sourceeditor][orion][fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/8a0ec6782f96
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 10
You need to log in before you can comment on or make changes to this bug.