<?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>72755</bug_id>
          
          <creation_ts>2011-11-18 13:42:33 -0800</creation_ts>
          <short_desc>WebAudio: AudioContext::uninitialize() can cause AudioContext deletion before deleting marked nodes.</short_desc>
          <delta_ts>2011-11-28 10:50:32 -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>Web Audio</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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="Jer Noble">jer.noble</reporter>
          <assigned_to name="Jer Noble">jer.noble</assigned_to>
          <cc>crogers</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>sam</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>506022</commentid>
    <comment_count>0</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-18 13:42:33 -0800</bug_when>
    <thetext>WebAudio: AudioContext::uninitialize() can caused AudioContext deletion before deleting marked nodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506029</commentid>
    <comment_count>1</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-18 13:45:30 -0800</bug_when>
    <thetext>If the AudioContext&apos;s destination nodes hold the only references existing to the AudioContext, then calling m_destinationNode.clear() will cause the context&apos;s refCount to drop to 0, and the context will be deleted before exiting uninitialize().  This will potentially skip a lot of clean up and will cause an assertion in ~AudioContext().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506031</commentid>
    <comment_count>2</comment_count>
      <attachid>115867</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-18 13:47:54 -0800</bug_when>
    <thetext>Created attachment 115867
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506032</commentid>
    <comment_count>3</comment_count>
      <attachid>115867</attachid>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2011-11-18 13:49:18 -0800</bug_when>
    <thetext>Comment on attachment 115867
Patch

Is it possible to create a layout test for this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>506042</commentid>
    <comment_count>4</comment_count>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2011-11-18 14:02:28 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 115867 [details])
&gt; Is it possible to create a layout test for this?

Probably not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509948</commentid>
    <comment_count>5</comment_count>
      <attachid>115867</attachid>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-28 10:50:25 -0800</bug_when>
    <thetext>Comment on attachment 115867
Patch

Clearing flags on attachment: 115867

Committed r101265: &lt;http://trac.webkit.org/changeset/101265&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>509949</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2011-11-28 10:50:32 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>115867</attachid>
            <date>2011-11-18 13:47:54 -0800</date>
            <delta_ts>2011-11-28 10:50:25 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-72755-20111118134752.patch</filename>
            <type>text/plain</type>
            <size>1603</size>
            <attacher name="Jer Noble">jer.noble</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTAwMTc5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZTIwYmFjMWM5M2MzNzY4
MmVmODZlMzc1NzdjZGE2Yjk1ODEyNmUwNy4uYmIxODNlNTFmMDUyNzcxMTA4ODA2ZjYyZjZlN2Y2
NzNkMDkwMDAzOSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE4IEBACisyMDExLTExLTE4ICBKZXIg
Tm9ibGUgIDxqZXIubm9ibGVAYXBwbGUuY29tPgorCisgICAgICAgIFdlYkF1ZGlvOiBBdWRpb0Nv
bnRleHQ6OnVuaW5pdGlhbGl6ZSgpIGNhbiBjYXVzZWQgQXVkaW9Db250ZXh0IGRlbGV0aW9uIGJl
Zm9yZSBkZWxldGluZyBtYXJrZWQgbm9kZXMuCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQu
b3JnL3Nob3dfYnVnLmNnaT9pZD03Mjc1NQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAo
T09QUyEpLgorCisgICAgICAgIE5vIG5ldyB0ZXN0cy4KKworICAgICAgICBQcm90ZWN0IEF1ZGlv
Q29udGV4dCBmcm9tIGJlaW5nIGRlbGV0ZWQgYmVmb3JlIHVuaW5pdGlhbGl6ZSgpIHJldHVybnMu
IEZpeGVzIGFuIGFzc2VydGlvbiBpbiB+QXVkaW9Db250ZXh0KCkgYW5kIAorICAgICAgICBhIHBv
dGVudGlhbCBzb3VyY2Ugb2YgbGVha3MuCisKKyAgICAgICAgKiB3ZWJhdWRpby9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