<?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>106482</bug_id>
          
          <creation_ts>2013-01-09 12:14:13 -0800</creation_ts>
          <short_desc>fast/forms/min-content-form-controls.html fails on some platforms</short_desc>
          <delta_ts>2013-01-09 15:02:18 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ojan Vafai">ojan</reporter>
          <assigned_to name="Ojan Vafai">ojan</assigned_to>
          <cc>eric</cc>
    
    <cc>rniwa</cc>
    
    <cc>tony</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>803567</commentid>
    <comment_count>0</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 12:14:13 -0800</bug_when>
    <thetext>fast/forms/min-content-form-controls.html fails on some platforms</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803570</commentid>
    <comment_count>1</comment_count>
      <attachid>181965</attachid>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 12:15:43 -0800</bug_when>
    <thetext>Created attachment 181965
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803575</commentid>
    <comment_count>2</comment_count>
      <attachid>181965</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2013-01-09 12:19:27 -0800</bug_when>
    <thetext>Comment on attachment 181965
Patch

rs=me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803577</commentid>
    <comment_count>3</comment_count>
      <attachid>181965</attachid>
    <who name="Tony Chang">tony</who>
    <bug_when>2013-01-09 12:19:41 -0800</bug_when>
    <thetext>Comment on attachment 181965
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181965&amp;action=review

&gt; LayoutTests/ChangeLog:10
&gt; +        The text dump for some form controls (menulists?) is different
&gt; +        on different platforms. Remove the form controls to avoid adding
&gt; +        platform-specific expectations for this test.

How are they different?

&gt; LayoutTests/fast/forms/min-content-form-controls.html:42
&gt; +    // Remove these elements since some of the text dumps are different platforms.

What does &quot;some of the text dumps are different platforms&quot; mean?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803578</commentid>
    <comment_count>4</comment_count>
      <attachid>181965</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-01-09 12:20:16 -0800</bug_when>
    <thetext>Comment on attachment 181965
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181965&amp;action=review

&gt; LayoutTests/fast/forms/min-content-form-controls.html:47
&gt; +function remove(id) {
&gt; +    var node = document.getElementById(id);
&gt; +    node.parentNode.removeChild(node);
&gt; +}
&gt; +
&gt; +if (window.testRunner) {
&gt; +    // Remove these elements since some of the text dumps are different platforms.
&gt; +    ids.forEach(function(id) {
&gt; +        remove(id + &apos;-a&apos;);
&gt; +        remove(id + &apos;-b&apos;);
&gt; +    });
&gt; +}

Why don’t we just delete all input and select elements or simply wrap them in div and set innerHTML on that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803581</commentid>
    <comment_count>5</comment_count>
      <attachid>181965</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-01-09 12:20:52 -0800</bug_when>
    <thetext>Comment on attachment 181965
Patch

Oops, I apparently overrode tony’s cq-.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803588</commentid>
    <comment_count>6</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 12:25:23 -0800</bug_when>
    <thetext>Committed r139221: &lt;http://trac.webkit.org/changeset/139221&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803625</commentid>
    <comment_count>7</comment_count>
      <attachid>181965</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-01-09 12:51:51 -0800</bug_when>
    <thetext>Comment on attachment 181965
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=181965&amp;action=review

&gt;&gt; LayoutTests/ChangeLog:10
&gt;&gt; +        The text dump for some form controls (menulists?) is different
&gt;&gt; +        on different platforms. Remove the form controls to avoid adding
&gt;&gt; +        platform-specific expectations for this test.
&gt; 
&gt; How are they different?

Why is the text dump for these form controls different on different platforms? This seems a fine workaround for that problem, but is it something we could easily fix in the form control code?

&gt;&gt; LayoutTests/fast/forms/min-content-form-controls.html:42
&gt;&gt; +    // Remove these elements since some of the text dumps are different platforms.
&gt; 
&gt; What does &quot;some of the text dumps are different platforms&quot; mean?

Missing words here. I think you mean &quot;are different on different platforms&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803728</commentid>
    <comment_count>8</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 14:46:25 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; (From update of attachment 181965 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=181965&amp;action=review
&gt; 
&gt; &gt;&gt; LayoutTests/ChangeLog:10
&gt; &gt;&gt; +        The text dump for some form controls (menulists?) is different
&gt; &gt;&gt; +        on different platforms. Remove the form controls to avoid adding
&gt; &gt;&gt; +        platform-specific expectations for this test.
&gt; &gt; 
&gt; &gt; How are they different?
&gt; 
&gt; Why is the text dump for these form controls different on different platforms? This seems a fine workaround for that problem, but is it something we could easily fix in the form control code?

Yeah, sorry, I was being overly lazy. Looking closer, I was confused about what was going on. The issue is that there was line wrapping on some platforms due to differently sized form controls, which lead to a different number of spaces in the innerText output.

An alternate workaround for this test would have been to put a &lt;br&gt; after each form control.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803730</commentid>
    <comment_count>9</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 14:47:32 -0800</bug_when>
    <thetext>In fact, I like the explicit break solution better since we don&apos;t then have to do something different for being in the test runner. I&apos;ll commit a followup patch with that change. Thanks for calling me out on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>803755</commentid>
    <comment_count>10</comment_count>
    <who name="Ojan Vafai">ojan</who>
    <bug_when>2013-01-09 15:02:18 -0800</bug_when>
    <thetext>http://trac.webkit.org/changeset/139245</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>181965</attachid>
            <date>2013-01-09 12:15:43 -0800</date>
            <delta_ts>2013-01-09 12:51:51 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-106482-20130109201247.patch</filename>
            <type>text/plain</type>
            <size>3502</size>
            <attacher name="Ojan Vafai">ojan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTM5MjE2CmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggMjRhN2QwYmFjMzE2MDAyMWVmYjgy
MWMzZmExODAzMGZhNDUyMDNhYS4uZTZhNDkwZTI0ZmJjZmU0YjEzODA3N2YxYmYxNWFkOWYzYWU1
ZjE0NyAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDEzLTAxLTA5ICBPamFuIFZhZmFpICA8b2ph
b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1vcnBob2xvZ3lFbGVtZW50LWRvbS1yYWRpdXMt
YXR0ci5odG1sIFsgUGFzcyBDcmFzaCBdCg==
</data>
<flag name="review"
          id="199791"
          type_id="1"
          status="+"
          setter="eric"
    />
    <flag name="commit-queue"
          id="199795"
          type_id="3"
          status="-"
          setter="rniwa"
    />
          </attachment>
      

    </bug>

</bugzilla>