<?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>43372</bug_id>
          
          <creation_ts>2010-08-02 13:20:34 -0700</creation_ts>
          <short_desc>[wx] Crash during HitTest call</short_desc>
          <delta_ts>2010-08-03 11:46:47 -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>WebKit wx</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>0</everconfirmed>
          <reporter name="Malcolm MacLeod">mmacleod</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kevino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>259064</commentid>
    <comment_count>0</comment_count>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2010-08-02 13:20:34 -0700</bug_when>
    <thetext>Calling HitTest on a wxWebView results in a crash due to a) destruction of an uninitialized variable and b) (after a is fixed) deletion of a variable that has already been freed, presumably due to some kind of smart pointer.
This patch fixes both of these issues so that HitTest can be used ina  functional manner again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259069</commentid>
    <comment_count>1</comment_count>
      <attachid>63249</attachid>
    <who name="Malcolm MacLeod">mmacleod</who>
    <bug_when>2010-08-02 13:31:08 -0700</bug_when>
    <thetext>Created attachment 63249
Patch to fix initialisation crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259446</commentid>
    <comment_count>2</comment_count>
      <attachid>63249</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-08-03 07:34:32 -0700</bug_when>
    <thetext>Comment on attachment 63249
Patch to fix initialisation crash

Would you be willing to submit a patch for review, as described in &lt;http://webkit.org/coding/contributing.html&gt;?

Please don&apos;t comment out code - just delete it if it&apos;s wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259591</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2010-08-03 11:44:58 -0700</bug_when>
    <thetext>Thanks! Landed in r64568. 

A couple remarks for future patches. One, there is a &apos;patch&apos; checkbox which lets the system know the attachment is a patch, and setting ? on the review queue marks it as needing review. (It also actually initiates try-bots which attempt to compile the patch.)

Also, typically patches are supposed to contain a ChangeLog entry, which can be auto-generated using WebKitTools/Scripts/prepare-ChangeLog. Typically patches missing a ChangeLog entry are supposed to be given a bad review and sent back for reworking, but as this was fixing a crash, I felt it was best to be expedient and land this ASAP, adding the ChangeLog entry myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>259593</commentid>
    <comment_count>4</comment_count>
    <who name="Kevin Ollivier">kevino</who>
    <bug_when>2010-08-03 11:46:47 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Thanks! Landed in r64568. 
&gt; 
&gt; A couple remarks for future patches. One, there is a &apos;patch&apos; checkbox which lets the system know the attachment is a patch, and setting ? on the review queue marks it as needing review. (It also actually initiates try-bots which attempt to compile the patch.)
&gt; 
&gt; Also, typically patches are supposed to contain a ChangeLog entry, which can be auto-generated using WebKitTools/Scripts/prepare-ChangeLog. Typically patches missing a ChangeLog entry are supposed to be given a bad review and sent back for reworking, but as this was fixing a crash, I felt it was best to be expedient and land this ASAP, adding the ChangeLog entry myself.

Err, bad review is a poor choice of words. :) I mean an r-, which means it isn&apos;t ready to land.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>63249</attachid>
            <date>2010-08-02 13:31:08 -0700</date>
            <delta_ts>2010-08-03 11:40:29 -0700</delta_ts>
            <desc>Patch to fix initialisation crash</desc>
            <filename>wxwebkit.patch</filename>
            <type>text/plain</type>
            <size>1114</size>
            <attacher name="Malcolm MacLeod">mmacleod</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkZyYW1lLmNwcA0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIFdlYkZyYW1lLmNwcAkocmV2aXNp
b24gNjQ0MzkpDQorKysgV2ViRnJhbWUuY3BwCSh3b3JraW5nIGNvcHkpDQpAQCAtNDU4LDcgKzQ1
OCw3IEBADQogICAgIGlmIChtX2ltcGwtPmZyYW1lLT52aWV3KCkpIHsNCiAgICAgICAgIFdlYkNv
cmU6OkhpdFRlc3RSZXN1bHQgcmVzdWx0ID0gbV9pbXBsLT5mcmFtZS0+ZXZlbnRIYW5kbGVyKCkt
PmhpdFRlc3RSZXN1bHRBdFBvaW50KG1faW1wbC0+ZnJhbWUtPnZpZXcoKS0+d2luZG93VG9Db250
ZW50cyhwb3MpLCBmYWxzZSk7DQogICAgICAgICBpZiAocmVzdWx0LmlubmVyTm9kZSgpKSB7DQot
ICAgICAgICAgICAgZG9tSW5mby5TZXRJbm5lck5vZGUobmV3IFdlYkRPTU5vZGUocmVzdWx0Lmlu
bmVyTm9kZSgpKSk7DQorICAgICAgICAgICAgLy9kb21JbmZvLlNldElubmVyTm9kZShuZXcgV2Vi
RE9NTm9kZShyZXN1bHQuaW5uZXJOb2RlKCkpKTsNCiAgICAgICAgICAgICBkb21JbmZvLlNldExp
bmsocmVzdWx0LmFic29sdXRlTGlua1VSTCgpLnN0cmluZygpKTsNCiAgICAgICAgICAgICBkb21J
bmZvLlNldFRleHQocmVzdWx0LnRleHRDb250ZW50KCkpOw0KICAgICAgICAgICAgIGRvbUluZm8u
U2V0SW1hZ2VTcmMocmVzdWx0LmFic29sdXRlSW1hZ2VVUkwoKS5zdHJpbmcoKSk7DQpJbmRleDog
V2ViVmlldy5jcHANCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT0NCi0tLSBXZWJWaWV3LmNwcAkocmV2aXNpb24gNjQ0Mzkp
DQorKysgV2ViVmlldy5jcHAJKHdvcmtpbmcgY29weSkNCkBAIC0yMzUsNyArMjM1LDkgQEANCiAg
ICAgbV9pc1NlbGVjdGVkKGZhbHNlKSwNCiAgICAgbV90ZXh0KHd4RW1wdHlTdHJpbmcpLA0KICAg
ICBtX2ltYWdlU3JjKHd4RW1wdHlTdHJpbmcpLA0KLSAgICBtX2xpbmsod3hFbXB0eVN0cmluZykN
CisgICAgbV9saW5rKHd4RW1wdHlTdHJpbmcpLA0KKyAgICBtX3VybEVsZW1lbnQoTlVMTCksDQor
ICAgIG1faW5uZXJOb2RlKE5VTEwpDQogew0KIH0NCg==
</data>
<flag name="review"
          id="51698"
          type_id="1"
          status="+"
          setter="kevino"
    />
    <flag name="commit-queue"
          id="51699"
          type_id="3"
          status="-"
          setter="kevino"
    />
          </attachment>
      

    </bug>

</bugzilla>