<?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>26076</bug_id>
          
          <creation_ts>2009-05-29 03:08:34 -0700</creation_ts>
          <short_desc>Custom highlighting (via -webkit-highlight) can crash</short_desc>
          <delta_ts>2017-06-16 22:32:22 -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 API</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=128456</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Kai Brüning">kai</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>123533</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Brüning">kai</who>
    <bug_when>2009-05-29 03:08:34 -0700</bug_when>
    <thetext>The functions WebChromeClient::customHighlightRect() and WebChromeClient::paintCustomHighlight() get passed a node. With Changeset 40871 (committed 2009-02-11), the passed node can be 0, which results in a crash.

I include a test case which crashes when opening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123534</commentid>
    <comment_count>1</comment_count>
      <attachid>30771</attachid>
    <who name="Kai Brüning">kai</who>
    <bug_when>2009-05-29 03:09:28 -0700</bug_when>
    <thetext>Created attachment 30771
Test case - crashes on loading</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123535</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Brüning">kai</who>
    <bug_when>2009-05-29 03:16:37 -0700</bug_when>
    <thetext>I forgot to mention that the problem is triggered by having generated content in the document (via h1:empty:before {content:&quot;some text&quot;;} in this case).

I do not know whether this is the only way to trigger the problem, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1320344</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2017-06-16 22:32:22 -0700</bug_when>
    <thetext>paintCustomHighlight and the SPI that relied on it have been removed via bug 128456.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>30771</attachid>
            <date>2009-05-29 03:09:28 -0700</date>
            <delta_ts>2009-05-29 03:09:28 -0700</delta_ts>
            <desc>Test case - crashes on loading</desc>
            <filename>paintCustomHighlight-regression.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>475</size>
            <attacher name="Kai Brüning">kai</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgU3RyaWN0Ly9FTiIK
ICAgICJodHRwOi8vd3d3LnczLm9yZy9UUi94aHRtbDEvRFREL3hodG1sMS1zdHJpY3QuZHRkIj4K
PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgo8c3R5bGU+CiAgICBo
MTplbXB0eTpiZWZvcmUKICAgIHsKICAgICAgICBjb250ZW50OiJwYWludEN1c3RvbUhpZ2hsaWdo
dCBjcmFzaCAocmVncmVzc2lvbikiOwogICAgfQogICAgKgogICAgewogICAgICAgIC13ZWJraXQt
aGlnaGxpZ2h0OidTZWxlY3Rpb24nOwogICAgfQo8L3N0eWxlPgo8aGVhZD4KICAgIDx0aXRsZT48
L3RpdGxlPgo8L2hlYWQ+Cjxib2R5PgogICAgPGgxLz4KICAgIDxwPkluIGJ1aWxkcyB3aGljaCBp
bmNsdWRlIGNoYW5nZXNldCA0MDg3MSB0aGlzIHBhZ2Ugd2lsbCBjcmFzaCBvbiBvcGVuaW5nLjwv
cD4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>