<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8107</bug_id>
          
          <creation_ts>2006-03-31 11:54:36 -0800</creation_ts>
          <short_desc>REGRESSION (NativeTextField): Paste adds extra space in empty text field elements</short_desc>
          <delta_ts>2006-04-03 16:10:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Steven Fisher">sdfisher</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38095</commentid>
    <comment_count>0</comment_count>
    <who name="Steven Fisher">sdfisher</who>
    <bug_when>2006-03-31 11:54:36 -0800</bug_when>
    <thetext>1. Open TextEdit.
2. Use rich text mode.
3. Type &quot;word&quot; (without quotes or new line).
4. Select All.
5. Copy.
6. Switch to Safari.
7. Paste the text into an empty, single line TEXTAREA element (the URL field in bugzilla works).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38096</commentid>
    <comment_count>1</comment_count>
    <who name="Steven Fisher">sdfisher</who>
    <bug_when>2006-03-31 11:55:28 -0800</bug_when>
    <thetext>Forgot to mention the effect: Text is pasted in with a carriage return after it. It shouldn&apos;t have one.

(Also, I&apos;m fixing the version and adding keywords.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38097</commentid>
    <comment_count>2</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-03-31 12:08:56 -0800</bug_when>
    <thetext>See also bug 8104</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38104</commentid>
    <comment_count>3</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-03-31 13:00:10 -0800</bug_when>
    <thetext>I think the originator meant text field, instead of textarea.  Actually, this is a dupe of 8104, so I&apos;ll mark it as such.

Steven, if you don&apos;t think this is a dupe, please let us know!  Thanks!

*** This bug has been marked as a duplicate of 8104 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38107</commentid>
    <comment_count>4</comment_count>
    <who name="Steven Fisher">sdfisher</who>
    <bug_when>2006-03-31 13:05:26 -0800</bug_when>
    <thetext>They may be duplicates, but I am not entirely convinced. The other defect is that pasting does not stop at newline characters. This one is that paste seems to actually make up newline characters if none are present. However, maybe this is a TextEdit bug (it is adding newline characters to the end of the clipboard). I&apos;ll see if I can find a clipboard inspector.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38110</commentid>
    <comment_count>5</comment_count>
    <who name="Steven Fisher">sdfisher</who>
    <bug_when>2006-03-31 13:13:19 -0800</bug_when>
    <thetext>I believe the extra linefeeds are coming from the RTF clipboard flavour. Although the RTF doesn&apos;t specify newlines in the text, RTF flavor includes newlines because of the nature of RTF (&quot;never say in 1 word what you can say in 8 lines&quot;):

{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf330
{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural\pardirnatural

\f0\fs24 \cf0 text}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38115</commentid>
    <comment_count>6</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-03-31 14:09:05 -0800</bug_when>
    <thetext>Ah, I understand now.  reopening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38355</commentid>
    <comment_count>7</comment_count>
    <who name="Maciej Stachowiak">mjs</who>
    <bug_when>2006-04-02 23:25:43 -0700</bug_when>
    <thetext>These are all text field regressions so they should all be P1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38437</commentid>
    <comment_count>8</comment_count>
    <who name="Steven Fisher">sdfisher</who>
    <bug_when>2006-04-03 16:03:22 -0700</bug_when>
    <thetext>Adele asked me to check this again. I can&apos;t reproduce it with recent builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38438</commentid>
    <comment_count>9</comment_count>
    <who name="Adele Peterson">adele</who>
    <bug_when>2006-04-03 16:10:14 -0700</bug_when>
    <thetext>I&apos;m guessing that one of the changes from this weekend fixed this issue also.

Resolving as fixed.

Thanks Steven!

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>