Open Bug 311760 Opened 19 years ago Updated 1 year ago

Incomplete copying of a textfield that contains a null character

Categories

(Firefox :: General, defect)

1.5.0.x Branch
x86
Windows XP
defect

Tracking

()

People

(Reporter: dog_hiker, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051008 Firefox/1.4.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b5) Gecko/20051008 Firefox/1.4.1

If one selects and copies text from a page that contains a null character,
everything following the null character is ignored.

Reproducible: Always

Steps to Reproduce:
1.Select Text containing a null character.
2.Copy.
3.Paste into another field or document.
Actual Results:  
Only text that was before the null character is copied.  All text following the
null character is ignored.

Expected Results:  
Copied the entire text.
Version: unspecified → 1.5 Branch
Pretty sure this is a windows only bug. An even simpler test case is a page with a null character and try to copy/paste it into the location bar.

On windows, you can check the contents of the clipboard with c:\windows\system32\clipbrd.exe

When copying HelloWorld from data:text/html,Hello%00World! .. only Hello shows up in the clipboard. (It's possible that clipboard stops displaying when it reaches the null character.)

In contrast on Mac OS X, copying HelloWorld and running pbpaste shows the null character ^@ when viewed in something like vim.
Status: UNCONFIRMED → NEW
Ever confirmed: true
This bug is part of a query for Firefox bugs that have Status set to NEW, but have version field set to 2.0 or older and have not changed in over 800 days.

http://tiny.cc/forgottennewbugs

If you still see this bug, or if it is still valid with Firefox 3.6.10 or a firefox 4 nightly build, please update the version field and steps to reproduce.
Severity: normal → S3
See Also: → 1818910
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: