<?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>62332</bug_id>
          
          <creation_ts>2011-06-08 15:15:23 -0700</creation_ts>
          <short_desc>[WKView _setDragImage:at:linkDrag:] can crash if WKView is dealloc&apos;ed during drag</short_desc>
          <delta_ts>2011-06-08 16:04:39 -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>WebKit2</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John Sullivan">sullivan</reporter>
          <assigned_to name="John Sullivan">sullivan</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>417586</commentid>
    <comment_count>0</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-06-08 15:15:23 -0700</bug_when>
    <thetext>[WKView _setDragImage:at:linkDrag:] contains a call to super that performs a drag. It&apos;s possible for this call to super to end up dealloc&apos;ing self, and then WebKit will crash on the line of code that runs after the call to [super dragImage::::::].

This is in Radar as 9355199</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417591</commentid>
    <comment_count>1</comment_count>
      <attachid>96492</attachid>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-06-08 15:22:01 -0700</bug_when>
    <thetext>Created attachment 96492
Patch to retain self during this method</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417644</commentid>
    <comment_count>2</comment_count>
      <attachid>96492</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-06-08 15:57:08 -0700</bug_when>
    <thetext>Comment on attachment 96492
Patch to retain self during this method

View in context: https://bugs.webkit.org/attachment.cgi?id=96492&amp;action=review

&gt; Source/WebKit2/UIProcess/API/mac/WKView.mm:2342
&gt; +    RetainPtr&lt;WKView&gt; protect(self);

It’s better to use a noun for the name of the local variable. Say, protector, instead of protect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417653</commentid>
    <comment_count>3</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-06-08 16:00:54 -0700</bug_when>
    <thetext>Will change to &quot;protector&quot;. I used &quot;protect&quot; in mimicry of another function in this file. I&apos;ll change that one too while I&apos;m in here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>417655</commentid>
    <comment_count>4</comment_count>
    <who name="John Sullivan">sullivan</who>
    <bug_when>2011-06-08 16:04:39 -0700</bug_when>
    <thetext>Fixed in &lt;http://trac.webkit.org/changeset/88401&gt;.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>96492</attachid>
            <date>2011-06-08 15:22:01 -0700</date>
            <delta_ts>2011-06-08 15:57:08 -0700</delta_ts>
            <desc>Patch to retain self during this method</desc>
            <filename>62332_patch.txt</filename>
            <type>text/plain</type>
            <size>1288</size>
            <attacher name="John Sullivan">sullivan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
S2l0Mi9DaGFuZ2VMb2cJKHJldmlzaW9uIDg4Mzk1KQorKysgU291cmNlL1dlYktpdDIvQ2hhbmd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3LDEwIEBAIC0gKHZvaWQpX3NldERyYWdJbWFnZTooTlNJbWFnZSAqKWlt
YWdlIGEKICAgICAgICAgcmV0dXJuOwogICAgIAogICAgIF9kYXRhLT5fZHJhZ0hhc1N0YXJ0ZWQg
PSBZRVM7CisgICAgCisgICAgLy8gVGhlIGNhbGwgdG8gc3VwZXIgY291bGQgcmVsZWFzZSB0aGlz
IFdLVmlldy4KKyAgICBSZXRhaW5QdHI8V0tWaWV3PiBwcm90ZWN0KHNlbGYpOworICAgIAogICAg
IFtzdXBlciBkcmFnSW1hZ2U6aW1hZ2UKICAgICAgICAgICAgICAgICAgIGF0OmNsaWVudFBvaW50
CiAgICAgICAgICAgICAgIG9mZnNldDpOU1plcm9TaXplCg==
</data>
<flag name="review"
          id="90196"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>