<?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>116251</bug_id>
          
          <creation_ts>2013-05-16 16:29:21 -0700</creation_ts>
          <short_desc>[wk2] didGetImageForFindMatch can return a null image</short_desc>
          <delta_ts>2013-05-16 16:48:35 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Horton">thorton</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>andersca</cc>
    
    <cc>commit-queue</cc>
    
    <cc>sam</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>890034</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-16 16:29:21 -0700</bug_when>
    <thetext>FindController::getFindIndicatorBitmapAndRect says:

// Selection rect can be empty for matches that are currently obscured from view.

And then returns a null handle. Which we then try to create a ShareableBitmap from, and then a WebImage from that. We end up getting a null ShareableBitmap in debug builds, or crashing when trying to use the WebImage in release builds (because m_bitmap is null).

We should not didGetImageForFindMatch if we didn&apos;t get an image for the find match...

&lt;rdar://problem/13277246&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890039</commentid>
    <comment_count>1</comment_count>
      <attachid>201999</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-16 16:39:50 -0700</bug_when>
    <thetext>Created attachment 201999
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890040</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2013-05-16 16:41:55 -0700</bug_when>
    <thetext>Attachment 201999 did not pass style-queue:

Failed to run &quot;[&apos;Tools/Scripts/check-webkit-style&apos;, &apos;--diff-files&apos;, u&apos;Source/WebKit2/ChangeLog&apos;, u&apos;Source/WebKit2/WebProcess/WebPage/FindController.cpp&apos;]&quot; exit_code: 1
Source/WebKit2/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890042</commentid>
    <comment_count>3</comment_count>
      <attachid>201999</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-16 16:43:40 -0700</bug_when>
    <thetext>Comment on attachment 201999
patch

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

&gt; Source/WebKit2/ChangeLog:4
&gt; +        https://bugs.webkit.org/process_bug.cgi

:\</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890044</commentid>
    <comment_count>4</comment_count>
      <attachid>201999</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-05-16 16:45:49 -0700</bug_when>
    <thetext>Comment on attachment 201999
patch

r=me if you fix stuff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>890046</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-05-16 16:48:35 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/150212</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>201999</attachid>
            <date>2013-05-16 16:39:50 -0700</date>
            <delta_ts>2013-05-16 16:45:48 -0700</delta_ts>
            <desc>patch</desc>
            <filename>find.diff</filename>
            <type>text/plain</type>
            <size>1360</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL0NoYW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQyL0No
YW5nZUxvZwppbmRleCA2NDljMWFkLi43ZGYyMjExIDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViS2l0
Mi9DaGFuZ2VMb2cKKysrIGIvU291cmNlL1dlYktpdDIvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTcg
QEAKKzIwMTMtMDUtMTYgIFRpbSBIb3J0b24gIDx0aW1vdGh5X2hvcnRvbkBhcHBsZS5jb20+CisK
KyAgICAgICAgW3drMl0gZGlkR2V0SW1hZ2VGb3JGaW5kTWF0Y2ggY2FuIHJldHVybiBhIG51bGwg
aW1hZ2UKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvcHJvY2Vzc19idWcuY2dpCisg
ICAgICAgIDxyZGFyOi8vcHJvYmxlbS8xMzI3NzI0Nj4KKworICAgICAgICBSZXZpZXdlZCBieSBO
T0JPRFkgKE9PUFMhKS4KKworICAgICAgICBEb24ndCBzZW5kIGRpZEdldEltYWdlRm9yRmluZE1h
dGNoIGlmIHdlIGRpZG4ndCBnZXQgYW4gaW1hZ2UgZm9yCisgICAgICAgIHRoZSBmaW5kIG1hdGNo
LCB3aGljaCBjYW4gaGFwcGVuIGlmIHRoZSBzZWxlY3Rpb24gaXMgbm90IHZpc2libGUuCisKKyAg
ICAgICAgKiBXZWJQcm9jZXNzL1dlYlBhZ2UvRmluZENvbnRyb2xsZXIuY3BwOgorICAgICAgICAo
V2ViS2l0OjpGaW5kQ29udHJvbGxlcjo6Z2V0SW1hZ2VGb3JGaW5kTWF0Y2gpOgorCiAyMDEzLTA1
LTE2ICBUaW1vdGh5IEhhdGNoZXIgIDx0aW1vdGh5QGFwcGxlLmNvbT4KIAogICAgICAgICBNYWtl
IHRoZSBGaW5kIEJhbm5lciBpbiBTYWZhcmkgd29yayBhZ2FpbiB3aXRoIHRoZSBkb2NrZWQgV2Vi
IEluc3BlY3Rvci4KZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJLaXQyL1dlYlByb2Nlc3MvV2ViUGFn
ZS9GaW5kQ29udHJvbGxlci5jcHAgYi9Tb3VyY2UvV2ViS2l0Mi9XZWJQcm9jZXNzL1dlYlBhZ2Uv
RmluZENvbnRyb2xsZXIuY3BwCmluZGV4IDM1MGU2OTguLmQ4MGQxZGIgMTAwNjQ0Ci0tLSBhL1Nv
dXJjZS9XZWJLaXQyL1dlYlByb2Nlc3MvV2ViUGFnZS9GaW5kQ29udHJvbGxlci5jcHAKKysrIGIv
U291cmNlL1dlYktpdDIvV2ViUHJvY2Vzcy9XZWJQYWdlL0ZpbmRDb250cm9sbGVyLmNwcApAQCAt
MjUxLDYgKzI1MSw5IEBAIHZvaWQgRmluZENvbnRyb2xsZXI6OmdldEltYWdlRm9yRmluZE1hdGNo
KHVpbnQzMl90IG1hdGNoSW5kZXgpCiAKICAgICBmcmFtZS0+c2VsZWN0aW9uKCktPnNldFNlbGVj
dGlvbihvbGRTZWxlY3Rpb24pOwogCisgICAgaWYgKGhhbmRsZS5pc051bGwoKSkKKyAgICAgICAg
cmV0dXJuOworCiAgICAgbV93ZWJQYWdlLT5zZW5kKE1lc3NhZ2VzOjpXZWJQYWdlUHJveHk6OkRp
ZEdldEltYWdlRm9yRmluZE1hdGNoKGhhbmRsZSwgbWF0Y2hJbmRleCkpOwogfQogCg==
</data>
<flag name="review"
          id="223414"
          type_id="1"
          status="+"
          setter="simon.fraser"
    />
          </attachment>
      

    </bug>

</bugzilla>