Closed Bug 783498 Opened 12 years ago Closed 12 years ago

[rule view] Can't copy text from the editor

Categories

(DevTools :: Inspector, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 788458

People

(Reporter: paul, Unassigned)

References

Details

Attachments

(1 file)

When the editor is open, selecting text in it and then doing ctrl-c doesn't copy the right text.
Attached patch FixSplinter Review
This patch fixes this issue but the context menu still does not have "copy selection" enabled. This is because of a browser bug that fails to detect whether text is selected in all situations (in our case within our editor).

Unfortunately, logging a new bug ... or rather, creating a reproduce-able test case would be very difficult.
Attachment #658136 - Flags: review?(paul)
Comment on attachment 658136 [details] [diff] [review]
Fix

After some discussion we have decided to always allow allow copy from the context menu.
Attachment #658136 - Flags: review?(paul)
Comment on attachment 658136 [details] [diff] [review]
Fix

Because we cannot get the selection from the input field we cannot copy the text using the context menu (we would need to know where the range starts and ends).

Seems like this is the best we can do.
Attachment #658136 - Flags: review?(paul)
Comment on attachment 658136 [details] [diff] [review]
Fix

Not sure if I'm supposed to review attachment 658136 [details] [diff] [review] after the discussion we had. 

Anyway:

> Because we cannot get the selection from the input field

Can you file a bug please?

This patch doesn't seem to work for me. Also, I still see the greyed menuitem.
Attachment #658136 - Flags: review?(paul) → review-
Blocks: 794254
Fixed in bug 788458
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: