<?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>130000</bug_id>
          
          <creation_ts>2014-03-09 21:38:09 -0700</creation_ts>
          <short_desc>AudioBufferSourceNode stop attribute shouldn&apos;t throw exception in finished state</short_desc>
          <delta_ts>2014-03-16 20:42: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>Web Audio</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="Praveen Jadhav">praveen.j</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cdumez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>crogers</cc>
    
    <cc>dev_sachin</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>glenn</cc>
    
    <cc>gyuyoung.kim</cc>
    
    <cc>jer.noble</cc>
    
    <cc>philipj</cc>
    
    <cc>sergio</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>988797</commentid>
    <comment_count>0</comment_count>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2014-03-09 21:38:09 -0700</bug_when>
    <thetext>AudioBufferSourceNode may go to FINISHED_STATE even before stop method is called. AudioBufferSource will render silence if data is played completely and is not looping. In these cases, finish() is called which sets source node to FINISHED_STATE without waiting for stop call. A call to &quot;stop&quot; method after this shouldn&apos;t throw exception. This issue can be observed in http://www.kiddnation.com/wp-content/themes/kiddnation/flappyalfinal/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>988798</commentid>
    <comment_count>1</comment_count>
      <attachid>226278</attachid>
    <who name="Praveen Jadhav">praveen.j</who>
    <bug_when>2014-03-09 21:59:55 -0700</bug_when>
    <thetext>Created attachment 226278
Patch

Patch provided here ensures that call to &quot;stop&quot; method when source is in FINISHED_STATE won&apos;t trigger exception.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>990517</commentid>
    <comment_count>2</comment_count>
      <attachid>226278</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2014-03-14 09:28:43 -0700</bug_when>
    <thetext>Comment on attachment 226278
Patch

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>990532</commentid>
    <comment_count>3</comment_count>
      <attachid>226278</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-03-14 10:01:36 -0700</bug_when>
    <thetext>Comment on attachment 226278
Patch

Rejecting attachment 226278 from commit-queue.

Failed to run &quot;[&apos;/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch&apos;, &apos;--status-host=webkit-queues.appspot.com&apos;, &apos;--bot-id=webkit-cq-03&apos;, &apos;land-attachment&apos;, &apos;--force-clean&apos;, &apos;--non-interactive&apos;, &apos;--parent-command=commit-queue&apos;, 226278, &apos;--port=mac&apos;]&quot; exit_code: 2 cwd: /Volumes/Data/EWS/WebKit

Last 500 characters of output:
ostname `svn.webkit.org&apos;: Host not found (http://svn.webkit.org) at /usr/share/git-core/perl/Git/SVN.pm line 697

Died at Tools/Scripts/update-webkit line 123.

Failed to run &quot;[&apos;Tools/Scripts/update-webkit&apos;]&quot; exit_code: 1
Updating OpenSource
RA layer request failed: OPTIONS of &apos;http://svn.webkit.org/repository/webkit&apos;: Could not resolve hostname `svn.webkit.org&apos;: Host not found (http://svn.webkit.org) at /usr/share/git-core/perl/Git/SVN.pm line 697

Died at Tools/Scripts/update-webkit line 123.

Full output: http://webkit-queues.appspot.com/results/6162593727119360</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>991076</commentid>
    <comment_count>4</comment_count>
      <attachid>226278</attachid>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-16 20:42:00 -0700</bug_when>
    <thetext>Comment on attachment 226278
Patch

Clearing flags on attachment: 226278

Committed r165716: &lt;http://trac.webkit.org/changeset/165716&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>991077</commentid>
    <comment_count>5</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2014-03-16 20:42:09 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>226278</attachid>
            <date>2014-03-09 21:59:55 -0700</date>
            <delta_ts>2014-03-16 20:42:00 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>WebAudio-130000.txt</filename>
            <type>text/plain</type>
            <size>1672</size>
            <attacher name="Praveen Jadhav">praveen.j</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE2NTM1OCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE3IEBACisyMDE0LTAzLTA5ICBQcmF2ZWVu
IFIgSmFkaGF2ICA8cHJhdmVlbi5qQHNhbXN1bmcuY29tPgorCisgICAgICAgIEF1ZGlvQnVmZmVy
U291cmNlTm9kZSBzdG9wIGF0dHJpYnV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