<?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>16487</bug_id>
          
          <creation_ts>2007-12-17 14:48:40 -0800</creation_ts>
          <short_desc>KURL doesn&apos;t preserve isNull when constructed with a DeprecatedString</short_desc>
          <delta_ts>2008-02-16 08:18:37 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</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>
          
          <blocked>16480</blocked>
    
    <blocked>16538</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brett Wilson (Google)">brettw</reporter>
          <assigned_to name="Brett Wilson (Google)">brettw</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64580</commentid>
    <comment_count>0</comment_count>
    <who name="Brett Wilson (Google)">brettw</who>
    <bug_when>2007-12-17 14:48:40 -0800</bug_when>
    <thetext>This means for this code:
  KURL empty;
  KURL second(empty.url());
then empty.isNull() != second.isNull().

This is the pattern executed in DocLoader::requestResource when it does completeURL(). See bug 16480 for this extra string-&gt;KURL conversion.

The issue is that if completeURL generated an empty KURL, the urlString will be NULL (as in fast/loader/simultaneous-reloads-assert.html where the base is a data: URL), and then completeURL will convert it to a [Depricated]String, which will then be used to create a new KURL that is now empty but not NULL.

This masks bug 16485, where DocLoader::checkForReload will crash if the string isNull.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70864</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-02-16 08:18:37 -0800</bug_when>
    <thetext>http://trac.webkit.org/projects/webkit/changeset/30243</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>