<?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>11402</bug_id>
          
          <creation_ts>2006-10-24 09:28:59 -0700</creation_ts>
          <short_desc>REGRESSION: onChange does not work anymore for 1st item in popup</short_desc>
          <delta_ts>2006-11-05 00:44:57 -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>DOM</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>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Scheck">opendarwin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>dev+webkit</cc>
    
    <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50832</commentid>
    <comment_count>0</comment_count>
    <who name="David Scheck">opendarwin</who>
    <bug_when>2006-10-24 09:28:59 -0700</bug_when>
    <thetext>Something broke and now my popup boxes that have an onChange are not executing the onChange when you switch to the first item in the popup.
It still works with Safari and Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50828</commentid>
    <comment_count>1</comment_count>
    <who name="">mitz</who>
    <bug_when>2006-10-24 10:23:22 -0700</bug_when>
    <thetext>I couldn&apos;t reproduce with&lt;select onchange=&quot;alert()&quot;&gt;&lt;option&gt;1&lt;/option&gt;&lt;option&gt;2&lt;/option&gt;&lt;option&gt;3&lt;/option&gt;&lt;/select&gt;
i.e. the alert showed up every time.
Can you provide a test case?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50033</commentid>
    <comment_count>2</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2006-10-24 18:18:51 -0700</bug_when>
    <thetext>Confirming this bug.  It only happens when the first option is not the default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50034</commentid>
    <comment_count>3</comment_count>
      <attachid>11198</attachid>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2006-10-24 18:22:28 -0700</bug_when>
    <thetext>Created attachment 11198
Testcase

Testcase using Mitz&apos;s code from above.  The second option is selected when the page loads, selecting 1 does not fire the alert on the first selection of 1, selecting 2 or 3 then selecting 1 again does fire the alert.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50018</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-10-24 21:31:19 -0700</bug_when>
    <thetext>Fixing keywords/component/priority/severity (blocker is for bugs that block WebKit development).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49036</commentid>
    <comment_count>5</comment_count>
    <who name="Matt Lilek">dev+webkit</who>
    <bug_when>2006-10-27 18:07:22 -0700</bug_when>
    <thetext>Filed in radar as 4808112</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46873</commentid>
    <comment_count>6</comment_count>
      <attachid>11378</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-11-04 05:09:38 -0800</bug_when>
    <thetext>Created attachment 11378
proposed fix

I do not see how to make an automated test (AFAICT onchange only fires for mouse actions, and only when the popup menu is actually opened, and DRT doesn&apos;t seem to be able to simulate this) - and I&apos;m not sure if adding a manual test is worth it in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46795</commentid>
    <comment_count>7</comment_count>
      <attachid>11378</attachid>
    <who name="David Harrison">harrison</who>
    <bug_when>2006-11-04 13:59:45 -0800</bug_when>
    <thetext>Comment on attachment 11378
proposed fix

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46809</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-11-05 00:44:57 -0800</bug_when>
    <thetext>Committed revision 17603.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>11198</attachid>
            <date>2006-10-24 18:22:28 -0700</date>
            <delta_ts>2006-10-24 18:22:28 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>11402.html</filename>
            <type>text/html</type>
            <size>167</size>
            <attacher name="Matt Lilek">dev+webkit</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KICAgIDxzZWxlY3Qgb25jaGFuZ2U9ImFsZXJ0KCkiPgogICAgICAgIDxv
cHRpb24+MTwvb3B0aW9uPgogICAgICAgIDxvcHRpb24gc2VsZWN0ZWQ+Mjwvb3B0aW9uPgogICAg
ICAgIDxvcHRpb24+Mzwvb3B0aW9uPgogICAgPC9zZWxlY3Q+CjwvYm9keT4KCjwvaHRtbD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>11378</attachid>
            <date>2006-11-04 05:09:38 -0800</date>
            <delta_ts>2006-11-04 13:59:45 -0800</delta_ts>
            <desc>proposed fix</desc>
            <filename>11402r1_patch.txt</filename>
            <type>text/plain</type>
            <size>1488</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAxNzU5MSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCS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
ICAgLCBtX211bHRpcGxlKGZhbHNlKQogICAgICwgbV9yZWNhbGNMaXN0SXRlbXMoZmFsc2UpCi0g
ICAgLCBtX2xhc3RPbkNoYW5nZUluZGV4KDApCisgICAgLCBtX2xhc3RPbkNoYW5nZUluZGV4KC0x
KQogICAgICwgbV9hY3RpdmVTZWxlY3Rpb25BbmNob3JJbmRleCgtMSkKICAgICAsIG1fYWN0aXZl
U2VsZWN0aW9uRW5kSW5kZXgoLTEpCiAgICAgLCBtX2FjdGl2ZVNlbGVjdGlvblN0YXRlKGZhbHNl
KQpAQCAtNTA0LDYgKzUwNCw3IEBAIHZvaWQgSFRNTFNlbGVjdEVsZW1lbnQ6OnJlc2V0KCkKICAg
ICBpZiAoIW9wdGlvblNlbGVjdGVkICYmIGZpcnN0T3B0aW9uKQogICAgICAgICBmaXJzdE9wdGlv
bi0+c2V0U2VsZWN0ZWQodHJ1ZSk7CiAgICAgc2V0Q2hhbmdlZCh0cnVlKTsKKyAgICBtX2xhc3RP
bkNoYW5nZUluZGV4ID0gLTE7CiB9CiAKIHZvaWQgSFRNTFNlbGVjdEVsZW1lbnQ6Om5vdGlmeU9w
dGlvblNlbGVjdGVkKEhUTUxPcHRpb25FbGVtZW50ICpzZWxlY3RlZE9wdGlvbiwgYm9vbCBzZWxl
Y3RlZCkK
</data>
<flag name="review"
          id="3974"
          type_id="1"
          status="+"
          setter="harrison"
    />
          </attachment>
      

    </bug>

</bugzilla>