<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16092</bug_id>
          
          <creation_ts>2012-02-23 18:25:01 +0000</creation_ts>
          <short_desc>MutationObserver.disconnect() should cancel any pending deliveries</short_desc>
          <delta_ts>2012-02-27 22:56:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</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="Adam Klein">adamk</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>annevk</cc>
    
    <cc>bugs</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>rafaelw</cc>
    
    <cc>rniwa</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64494</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Klein">adamk</who>
    <bug_when>2012-02-23 18:25:01 +0000</bug_when>
    <thetext>From rafaelw, in https://bugs.webkit.org/show_bug.cgi?id=78639:

&quot;It&apos;s pretty strange to call disconnect() and still *possibly* get one invocation of your callback. We should just clear any pending deliveries.

It&apos;s possible that script way want to know immediately prior to calling disconnect() *what* mutation records are pending delivery. If this happens in practice, we can add a method to synchronously retrieve &amp; clear pending mutation records.&quot;

This is easy for WebKit to change, but want to make sure it makes sense and get it fixed in the spec first.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64583</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-25 12:20:00 +0000</bug_when>
    <thetext>Olli, Jonas?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64639</commentid>
    <comment_count>2</comment_count>
    <who name="Jonas Sicking (Not reading bugmail)">jonas</who>
    <bug_when>2012-02-27 08:18:48 +0000</bug_when>
    <thetext>I agree we should cancel pending deliveries. addEventListener does the same thing FWIW.

I don&apos;t think we should bother with getting a list of pending deliveries unless use cases come up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64643</commentid>
    <comment_count>3</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-02-27 13:28:04 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I agree we should cancel pending deliveries. addEventListener does the same
&gt; thing FWIW.
You mean removeEventListener.

I don&apos;t have strong opinion. Either way is ok to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64657</commentid>
    <comment_count>4</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-02-27 22:55:44 +0000</bug_when>
    <thetext>No need to cc me if I&apos;m the assignee. On the other hand, this once it made me fix the bug a little quicker: https://bitbucket.org/ms2ger/dom-core/changeset/d5065a7d4427

Assuming the above means to empty the record queue per new terminology.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>