<?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>65771</bug_id>
          
          <creation_ts>2011-08-05 09:07:00 -0700</creation_ts>
          <short_desc>REGRESSION(r92433): media/video-src-change.html fails</short_desc>
          <delta_ts>2011-08-05 12:49:56 -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>UI Events</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>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>abarth</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>koivisto</cc>
    
    <cc>pilgrim</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>447226</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 09:07:00 -0700</bug_when>
    <thetext>media/video-src-change.html started to fail after http://trac.webkit.org/changeset/92433 because the test assumes the second argument for removeEventListener to be optional.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447229</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 09:10:45 -0700</bug_when>
    <thetext>All regressions are P1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447230</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 09:15:06 -0700</bug_when>
    <thetext>Looking at EventTarget code:
http://trac.webkit.org/browser/trunk/Source/WebCore/dom/EventTarget.cpp#L246

It seems like the test code is wrong.  We should be giving the listener as the second argument:
31	                if (++loadedCount &gt;= 2) {
32	                    mediaElement.removeEventListener(&apos;loadedmetadata&apos;);
33	                    endTest();
34	                    return;
35	                }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447246</commentid>
    <comment_count>3</comment_count>
      <attachid>103079</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 09:46:58 -0700</bug_when>
    <thetext>Created attachment 103079
fixes the test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447264</commentid>
    <comment_count>4</comment_count>
      <attachid>103079</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 10:13:04 -0700</bug_when>
    <thetext>Comment on attachment 103079
fixes the test

Clearing flags on attachment: 103079

Committed r92484: &lt;http://trac.webkit.org/changeset/92484&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447265</commentid>
    <comment_count>5</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-08-05 10:13:07 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>447360</commentid>
    <comment_count>6</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-08-05 12:49:56 -0700</bug_when>
    <thetext>This bug is blowing my mind.  I thought removeEventListener was special-cased by the code generator.  The IDL files shouldn&apos;t affect the generated code.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>103079</attachid>
            <date>2011-08-05 09:46:58 -0700</date>
            <delta_ts>2011-08-05 10:13:03 -0700</delta_ts>
            <desc>fixes the test</desc>
            <filename>bug-65771-20110805094657.patch</filename>
            <type>text/plain</type>
            <size>1238</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDkyNDgyKQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTQgQEAKKzIwMTEtMDgtMDUgIFJ5b3N1a2UgTml3YSAgPHJu
aXdhQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUkVHUkVTU0lPTihyOTI0MzMpOiBtZWRpYS92aWRl
by1zcmMtY2hhbmdlLmh0bWwgZmFpbHMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
c2hvd19idWcuY2dpP2lkPTY1NzcxCisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BT
ISkuCisKKyAgICAgICAgR2l2ZSB0aGUgbGlzdGVuZXIgYXMgdGhlIHNlY29uZCBhcmd1bWVudCB0
byByZW1vdmVFdmVudExpc3RlbmVyLgorCisgICAgICAgICogbWVkaWEvdmlkZW8tc3JjLWNoYW5n
ZS5odG1sOgorCiAyMDExLTA4LTA1ICBZYWVsIEFoYXJvbiAgPHlhZWwuYWhhcm9uQG5va2lhLmNv
bT4KIAogICAgICAgICBkaXI9YXV0byBuZWVkcyB0byB3b3JrIG9uIHZhbHVlIG9mIGlucHV0IGFu
ZCB0ZXh0YXJlYSBlbGVtZW50cwpJbmRleDogTGF5b3V0VGVzdHMvbWVkaWEvdmlkZW8tc3JjLWNo
YW5nZS5odG1sCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT0KLS0tIExheW91dFRlc3RzL21lZGlhL3ZpZGVvLXNyYy1jaGFu
Z2UuaHRtbAkocmV2aXNpb24gOTI0ODEpCisrKyBMYXlvdXRUZXN0cy9tZWRpYS92aWRlby1zcmMt
Y2hhbmdlLmh0bWwJKHdvcmtpbmcgY29weSkKQEAgLTI5LDcgKzI5LDcgQEAKICAgICAgICAgICAg
ICAgICBjb25zb2xlV3JpdGUoIiIpOwogICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAg
IGlmICgrK2xvYWRlZENvdW50ID49IDIpIHsKLSAgICAgICAgICAgICAgICAgICAgbWVkaWFFbGVt
ZW50LnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2xvYWRlZG1ldGFkYXRhJyk7CisgICAgICAgICAgICAg
ICAgICAgIG1lZGlhRWxlbWVudC5yZW1vdmVFdmVudExpc3RlbmVyKCdsb2FkZWRtZXRhZGF0YScs
IGxvYWRlZG1ldGFkYXRhKTsKICAgICAgICAgICAgICAgICAgICAgZW5kVGVzdCgpOwogICAgICAg
ICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICAgICAgfQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>