Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332620

Summary: Multi line Text widget cannot hold it's full textLimit in a single line
Product: [RT] RAP Reporter: Jimmy Selgen Nielsen <jimmy.selgen>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact:
Severity: normal    
Priority: P3 Keywords: needinfo
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jimmy Selgen Nielsen CLA 2010-12-15 07:07:27 EST
Build Identifier: 20100917-0705

When pasting a large amount of text, 100kb or so without linebreaks, into a Text widget, the widget truncates the text at 28230 bytes.

"Splitting" the text into lines of 130 characters works fine, and the widget holds the full amount of text.

Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2010-12-15 07:29:09 EST
Do you observe this behavior in all browsers (IE, FF, Chrome, Safari, Opera) or it is browser specific?
Comment 2 Ivan Furnadjiev CLA 2010-12-15 07:56:14 EST
I did some testing with Controls Demo -> Text Tab. A single line text (102 614 characters) copy and paste into a multi text widget, than CTRL-A to select the complete text, and copy and paste back. FF, IE and Opera don't truncate it, Safari and Chrome (WebKit) truncate the text to 37078 characters. All test are done on Windows 7 64bit. Maybe the problem is OS (RAM) specific too - limit of the clipboard.
Comment 3 Ivan Furnadjiev CLA 2010-12-15 08:05:10 EST
And some more testing on Windows XP SP3 512MB RAM (VirtualBox) with FF and IE6. Same single line text (102 614 characters) is not truncated.
Comment 4 Jimmy Selgen Nielsen CLA 2010-12-15 08:30:22 EST
(In reply to comment #1)
> Do you observe this behavior in all browsers (IE, FF, Chrome, Safari, Opera) or
> it is browser specific?

I guess i was too hasty in reporting the bug as a bug in RAP.
It seems like it's indeed a bug in WebKit, as none of IE or Firefox truncates the text.

I'll report the bug to the WebKit guys instead.
Sorry for the trouble.
Comment 5 Ivan Furnadjiev CLA 2010-12-15 08:45:13 EST
I will close it as NOT_ECLIPSE.