<?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>44441</bug_id>
          
          <creation_ts>2010-08-23 11:03:52 -0700</creation_ts>
          <short_desc>WebPDFView should remove itself as the delegate of its PDFView before being dealloced</short_desc>
          <delta_ts>2010-08-23 11:29:03 -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>PDF</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.6</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="Mike Thole">mthole</reporter>
          <assigned_to name="Mike Thole">mthole</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>268004</commentid>
    <comment_count>0</comment_count>
    <who name="Mike Thole">mthole</who>
    <bug_when>2010-08-23 11:03:52 -0700</bug_when>
    <thetext>WebKit should nil out the PDFView&apos;s delegate before releasing it.  This is required to fix &lt;rdar://problem/6978204&gt; in PDFKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268006</commentid>
    <comment_count>1</comment_count>
      <attachid>65141</attachid>
    <who name="Mike Thole">mthole</who>
    <bug_when>2010-08-23 11:06:05 -0700</bug_when>
    <thetext>Created attachment 65141
Proposed patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268014</commentid>
    <comment_count>2</comment_count>
      <attachid>65141</attachid>
    <who name="">mitz</who>
    <bug_when>2010-08-23 11:19:55 -0700</bug_when>
    <thetext>Comment on attachment 65141
Proposed patch

&gt; Index: WebKit/mac/ChangeLog
&gt; ===================================================================
&gt; --- WebKit/mac/ChangeLog	(revision 65818)
&gt; +++ WebKit/mac/ChangeLog	(working copy)
&gt; @@ -1,3 +1,13 @@
&gt; +2010-08-23  Mike Thole  &lt;mthole@apple.com&gt;
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        WebKit should nil out PDFView&apos;s delegate before releasing it

The change is good, but the description isn’t totally accurate. The problem is that the WebPDFView is deallocated while it is still the delegate, not that the PDFView is being released while having a non-nil delegate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268017</commentid>
    <comment_count>3</comment_count>
    <who name="Mike Thole">mthole</who>
    <bug_when>2010-08-23 11:27:58 -0700</bug_when>
    <thetext>Good point Dan.  I&apos;ve updated the title to more accurately reflect the actual problem: &quot;WebPDFView should remove itself as the delegate of its PDFView before being dealloced&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>268019</commentid>
    <comment_count>4</comment_count>
    <who name="Mike Thole">mthole</who>
    <bug_when>2010-08-23 11:29:03 -0700</bug_when>
    <thetext>Committed revision 65820.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>65141</attachid>
            <date>2010-08-23 11:06:05 -0700</date>
            <delta_ts>2010-08-23 11:19:55 -0700</delta_ts>
            <desc>Proposed patch</desc>
            <filename>textmate stdin ODVYZj.txt</filename>
            <type>text/plain</type>
            <size>1035</size>
            <attacher name="Mike Thole">mthole</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYktpdC9tYWMvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYktpdC9tYWMvQ2hh
bmdlTG9nCShyZ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GVnYXRlOm5pbF07CiAgICAgW1BERlN1YnZp
ZXcgcmVsZWFzZV07CiAgICAgW3BhdGggcmVsZWFzZV07CiAgICAgW1BERlN1YnZpZXdQcm94eSBy
ZWxlYXNlXTsK
</data>
<flag name="review"
          id="53826"
          type_id="1"
          status="+"
          setter="mitz"
    />
          </attachment>
      

    </bug>

</bugzilla>