[Webkit-unassigned] [Bug 21015] New: KURL's getters are inconsitent about returning null or empty strings

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 22 19:58:15 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21015

           Summary: KURL's getters are inconsitent about returning null or
                    empty strings
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: brettw at chromium.org


KURL's getters randomly return either isNull or empty strings. This is
potentially dangerous if some code relies on this.

Returns a null string on empty:
  pass()
  lastPathComponent()
  ref()

Returns an empty string on empty (although at least some of these will return a
null string if the URL is itself null):
  protocol()
  user()
  host()
  query()
  path()

We can make them all return null strings, all return empty strings, or return
null strings only when the URL is itself NULL, and empty the rest of the time
(I think this is currently the dominant behavior).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list