<?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>29815</bug_id>
          
          <creation_ts>2009-09-28 10:50:17 -0700</creation_ts>
          <short_desc>REGRESSION (r48698): Cannot enter text in Facebook message content field</short_desc>
          <delta_ts>2009-10-28 03:04:09 -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>Evangelism</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.facebook.com/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>mitz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>adele</cc>
    
    <cc>dhamlin</cc>
    
    <cc>genzuk</cc>
    
    <cc>marcel</cc>
    
    <cc>mathewsb</cc>
    
    <cc>medicatingx742</cc>
    
    <cc>mrowe</cc>
    
    <cc>mtrillo</cc>
    
    <cc>mvernal</cc>
    
    <cc>pete</cc>
    
    <cc>poweruser.webkit</cc>
    
    <cc>sebastianbf</cc>
    
    <cc>tkent</cc>
    
    <cc>vicki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>150558</commentid>
    <comment_count>0</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-09-28 10:50:17 -0700</bug_when>
    <thetext>The Message text field in the Facebook Compose Message box does not accept text entry.

Steps to reproduce:
1. Log in to Facebook
2. Choose Inbox &gt; Compose New Message
3. Click in the Message text field
4. Type some text

Result:
No text appears in the Message text field

Regression:
This is a regression from &lt;http://trac.webkit.org/changeset/48698&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150559</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-09-28 10:50:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/7258171&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150755</commentid>
    <comment_count>2</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 17:30:37 -0700</bug_when>
    <thetext>I have confirmed I couldn&apos;t type anything into a textarea.
However, this &lt;textarea&gt; element actually had maxlength=&quot;0&quot; according to the inspector.  So, this is an expected behavior and a Facebook&apos;s bug.

What should we do in such case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150765</commentid>
    <comment_count>3</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 17:43:44 -0700</bug_when>
    <thetext>&gt; However, this &lt;textarea&gt; element actually had maxlength=&quot;0&quot; according to the
&gt; inspector.  So, this is an expected behavior and a Facebook&apos;s bug.

It doesn&apos;t have maxlength=&quot;0&quot; in an HTML text.  The code seems to call &quot;textarea.maxLength = 0&quot; and it makes a maxlength=&quot;0&quot; attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150778</commentid>
    <comment_count>4</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 18:33:33 -0700</bug_when>
    <thetext>I took a look at a Facebook JS code.
I guess TextInputControl class in it does something like the following:
  textarea.maxLength = textarea.maxLength;

If maxlength= HTML attribute is missing, .maxLength is 0 according to older HTML5 draft, so the new .maxLength becomes 0, of course.

Maybe this bug will be fixed if Bug#29796 is fixed.  I&apos;ll check it soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150784</commentid>
    <comment_count>5</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 19:30:29 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; I took a look at a Facebook JS code.
&gt; I guess TextInputControl class in it does something like the following:
&gt;   textarea.maxLength = textarea.maxLength;

My guess was wrong.  Returning -1 for .maxLength didn&apos;t help.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150789</commentid>
    <comment_count>6</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 20:40:05 -0700</bug_when>
    <thetext>I understand the Facebook code.
In the definition of TextInpuTcontrol.prototype:
    setMaxLength:function(maxlength){
	this.maxLength=maxlength;
	this.getRoot().maxLength=this.maxLength||null;
	return this;
    },

This code is called by UIComposer.prototype.initializeTextarea() like:
    initializeTextarea:function(maxLength,initialHeight){
	new TextAreaControl(this.input)
	.setMaxLength(maxLength)
	.setOriginalHeight(initialHeight)
	.setAutogrow(true)
	.onfocus();
	this.input.onfocus=&apos;&apos;;
    },
where the maxLength parameter is 0.


&gt;	this.getRoot().maxLength=this.maxLength||null;
this.getRoot() is a &lt;textarea&gt; element.  In the case of maxLength==0, null is set. null is converted to 0.  So textarea.maxLength becomes 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>150791</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-09-28 20:54:15 -0700</bug_when>
    <thetext>I reported this issue to Facebook.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151397</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-09-30 17:07:15 -0700</bug_when>
    <thetext>I just CCd all of the facebook.com folks with Bugzilla accounts on this bug to hopefully get this some attention.  If this requires a fix on the Facebook side it would be nice to get an ETA for the fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151400</commentid>
    <comment_count>9</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-09-30 17:11:09 -0700</bug_when>
    <thetext>*** Bug 29922 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151403</commentid>
    <comment_count>10</comment_count>
      <attachid>40410</attachid>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-09-30 17:34:04 -0700</bug_when>
    <thetext>Created attachment 40410
Reduction

I&apos;ve attached a reduction that demonstrates that Facebook is relying on behavior that works in Firefox but is incorrect per the HTML 5 specification.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151632</commentid>
    <comment_count>11</comment_count>
    <who name="Michael">genzuk</who>
    <bug_when>2009-10-01 11:25:42 -0700</bug_when>
    <thetext>I want to confirm this bug.  Unable to insert text in response box on facebook&apos;s &quot;inbox&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151769</commentid>
    <comment_count>12</comment_count>
    <who name="Ben Mathews">mathewsb</who>
    <bug_when>2009-10-01 22:12:10 -0700</bug_when>
    <thetext>I&apos;ve fixed this in our trunk;  the fix will go out on Tuesday afternoon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>151770</commentid>
    <comment_count>13</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-10-01 22:19:16 -0700</bug_when>
    <thetext>Thanks for the info, Ben!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152085</commentid>
    <comment_count>14</comment_count>
    <who name="">mitz</who>
    <bug_when>2009-10-03 10:33:02 -0700</bug_when>
    <thetext>*** Bug 30046 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152152</commentid>
    <comment_count>15</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-10-04 03:52:31 -0700</bug_when>
    <thetext>*** Bug 30056 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>152186</commentid>
    <comment_count>16</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-10-04 13:23:33 -0700</bug_when>
    <thetext>*** Bug 30058 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>158503</commentid>
    <comment_count>17</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2009-10-28 03:04:09 -0700</bug_when>
    <thetext>I confirmed Facebook&apos;s code has no problem now.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>40410</attachid>
            <date>2009-09-30 17:34:04 -0700</date>
            <delta_ts>2009-09-30 17:34:04 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1843</size>
            <attacher name="Mark Rowe (bdash)">mrowe</attacher>
            
              <data encoding="base64">PHA+RHVyaW5nIHBhZ2UgbG9hZCBzb21lIEphdmFTY3JpcHQgc2V0cyB0aGUgbWF4TGVuZ3RoIHBy
b3BlcnR5IG9mIHRoZSB0ZXh0IGFyZWEgYmVsb3cgdG8gbnVsbC4gIFBlciA8YSBocmVmPSdodHRw
Oi8vZGV2LnczLm9yZy9odG1sNS9zcGVjL092ZXJ2aWV3Lmh0bWwjYXR0ci10ZXh0YXJlYS1tYXhs
ZW5ndGgnPkhUTUwgNTwvYT4gInRoZSBtYXhMZW5ndGggSURMIGF0dHJpYnV0ZSBtdXN0IHJlZmxl
Y3QgdGhlIG1heGxlbmd0aCBjb250ZW50IGF0dHJpYnV0ZSwgbGltaXRlZCB0byBvbmx5IHBvc2l0
aXZlIG51bWJlcnMiLiAgVGhlIHNwZWNpZmljYXRpb24gaGFzIHRoZSBmb2xsb3dpbmcgdG8gc2F5
IGFib3V0IDxhIGhyZWY9J2h0dHA6Ly9kZXYudzMub3JnL2h0bWw1L3NwZWMvT3ZlcnZpZXcuaHRt
bCNyZWZsZWN0Jz5yZWZsZWN0aW5nIGNvbnRlbnQgYXR0cmlidXRlcyBpbiBJREwgYXR0cmlidXRl
czwvYT4gKGVtcGhh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