Closed
Bug 65070
Opened 24 years ago
Closed 24 years ago
paste into a textarea results in gibberish
Categories
(SeaMonkey :: UI Design, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: colin, Assigned: colin)
Details
(Keywords: qawanted)
Attachments
(2 files)
1.66 KB,
text/plain
|
Details | |
488 bytes,
patch
|
Details | Diff | Splinter Review |
Attempting to paste text into a textarea results in gibberish being inserted.
Pasting the other way, into say a DECterm, works but a LF is always appended.
This worked fine on M18, but is broken in M0.6 and M0.7.
Assignee | ||
Comment 1•24 years ago
|
||
In case it means something to someone, I'll attach the output I receive from
nsClipboard.cpp with DEBUG_CLIPBOARD defined.
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
In widget/src/gtk/nsClipboard.cpp, if I change the order of the calls in the
following code:
r = DoRealConvert(gdk_atom_intern("UTF8_STRING", FALSE), aSelectionAtom);
if (r) return r;
r = DoRealConvert(gdk_atom_intern("COMPOUND_TEXT", FALSE), aSelectionAtom);
if (r) return r;
r = DoRealConvert(GDK_SELECTION_TYPE_STRING, aSelectionAtom);
if (r) return r;
so that COMPOUND_TEXT is first, then pasting works again. Unfortunately I don't
know enough of GTK and X to know what this is. Could it be that UTF8_STRING
requires X11R6 (OpenVMS is only R5)?
Assignee | ||
Comment 4•24 years ago
|
||
When DoRealConvert is called with UTF8_STRING, I see the message:
error retrieving selection: length was -1
on the console. But in DoRealConvert mSelectionData.length is a positive integer
and so DoRealConvert returns as if everything is well and good.
Assignee | ||
Comment 5•24 years ago
|
||
Assignee | ||
Comment 6•24 years ago
|
||
DoRealConvert expects mSelectionData to be greater than 0 if the conversion was
successful, but in SelectionReceiver we just return if the conversion failed.
The patch I just attached makes sure that mSelectionData is set to something
negative in the event of no conversion.
Looking for a review and super-review. Pav and Chris?
Status: NEW → ASSIGNED
Comment 7•24 years ago
|
||
r=pavlov
Comment 9•24 years ago
|
||
r=blizzard
Assignee | ||
Comment 10•24 years ago
|
||
Checked in.
widget/src/gtk/nsClipboard.cpp rev 1.89
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 11•24 years ago
|
||
->tpreston for copy/paste [dunno if she has access to vms, tho'].
QA Contact: sairuh → tpreston
Updated•20 years ago
|
Product: Core → Mozilla Application Suite
You need to log in
before you can comment on or make changes to this bug.
Description
•