<?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>28151</bug_id>
          
          <creation_ts>2009-08-10 09:41:14 -0700</creation_ts>
          <short_desc>KURL hasFragmentIdentifier()/removeFragmentIdentifier() should be cleaned up and made a little smarter</short_desc>
          <delta_ts>2023-05-22 03:44: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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>37641</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Brady Eidson">beidson</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>annevk</cc>
    
    <cc>chinmaya</cc>
    
    <cc>ddkilzer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>138698</commentid>
    <comment_count>0</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2009-08-10 09:41:14 -0700</bug_when>
    <thetext>KURL hasFragmentIdentifier()/removeFragmentIdentifier() should be cleaned up and made a little smarter.

There&apos;s a handful of callsites that always say:
if (someURL.hasFragmentIdentifier())
    someURL.removeFragmentIdentifier();

Which is kind of silly and might be cleaner as one line of code...
...except that removeFragmentIdentifier() always allocs a new string and reparses it, when it should really do its own &quot;if I don&apos;t have a fragment ID, don&apos;t do anything&quot; check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1956895</commentid>
    <comment_count>1</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-05-22 03:44:35 -0700</bug_when>
    <thetext>KURL is gone.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>