<?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>9732</bug_id>
          
          <creation_ts>2006-07-04 13:02:59 -0700</creation_ts>
          <short_desc>[Drosera] calling removeListener to many times will cause WebKit&apos;s listener count to underflow/wraparound</short_desc>
          <delta_ts>2008-05-17 09:55:53 -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>New Bugs</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Timothy Hatcher">timothy</reporter>
          <assigned_to name="Timothy Hatcher">timothy</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48190</commentid>
    <comment_count>0</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-07-04 13:02:59 -0700</bug_when>
    <thetext>We will decrement the listener count even if the listener is not in the listeners set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48192</commentid>
    <comment_count>1</comment_count>
      <attachid>9196</attachid>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-07-04 13:10:27 -0700</bug_when>
    <thetext>Created attachment 9196
Patch to fix the count underflow/wraparound</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48195</commentid>
    <comment_count>2</comment_count>
      <attachid>9196</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2006-07-04 14:40:05 -0700</bug_when>
    <thetext>Comment on attachment 9196
Patch to fix the count underflow/wraparound

Check for nil does not seem necessary. We&apos;ll just get nil for the class which is != [NSDistantObject class].

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48302</commentid>
    <comment_count>3</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2006-07-04 21:29:27 -0700</bug_when>
    <thetext>Landed in r15157.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80743</commentid>
    <comment_count>4</comment_count>
    <who name="Timothy Hatcher">timothy</who>
    <bug_when>2008-05-17 09:55:53 -0700</bug_when>
    <thetext>Closing since Drosera has been replaced by the new Web Inspector debugger. Moving to the New Bugs component so the Drosera component can be closed and removed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>9196</attachid>
            <date>2006-07-04 13:10:27 -0700</date>
            <delta_ts>2006-07-04 14:40:05 -0700</delta_ts>
            <desc>Patch to fix the count underflow/wraparound</desc>
            <filename>9732.patch</filename>
            <type>text/plain</type>
            <size>2150</size>
            <attacher name="Timothy Hatcher">timothy</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDE1MTUw
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTkgQEAKKzIwMDYtMDct
MDQgIFRpbW90aHkgSGF0Y2hlciAgPHRpbW90aHlAYXBwbGUuY29tPgorCisgICAgICAgIFJldmll
d2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEJ1ZyA5NzMyOiBbRHJvc2VyYV0gY2Fs
bGluZyByZW1vdmVMaXN0ZW5lciB0byBtYW55IHR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0ZW5lcl0pCisgICAgICAgIHJldHVybjsK
ICAgICBBU1NFUlQobGlzdGVuZXJDb3VudCA+PSAxKTsKICAgICBsaXN0ZW5lckNvdW50LS07CiAg
ICAgW1tOU05vdGlmaWNhdGlvbkNlbnRlciBkZWZhdWx0Q2VudGVyXSByZW1vdmVPYnNlcnZlcjpz
ZWxmIG5hbWU6TlNDb25uZWN0aW9uRGlkRGllTm90aWZpY2F0aW9uIG9iamVjdDpbKE5TRGlzdGFu
dE9iamVjdCAqKWxpc3RlbmVyIGNvbm5lY3Rpb25Gb3JQcm94eV1dOwo=
</data>
<flag name="review"
          id="2765"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>