Bug 78429

Summary: Get rid of WebCore::URLString
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: WebCore Misc.Assignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch abarth: review+

Description Benjamin Poulain 2012-02-11 18:09:28 PST
WebCore::URLString() is totally unused. We introduced WTF::URLString() in https://bugs.webkit.org/show_bug.cgi?id=77291
Comment 1 Benjamin Poulain 2012-02-11 18:16:30 PST
Created attachment 126662 [details]
Patch
Comment 2 Adam Barth 2012-02-11 18:19:39 PST
Comment on attachment 126662 [details]
Patch

Ok.
Comment 3 Adam Barth 2012-02-11 18:20:03 PST
WebCore::URLString was something of a dream.  :)
Comment 4 Benjamin Poulain 2012-02-11 18:21:54 PST
(In reply to comment #3)
> WebCore::URLString was something of a dream.  :)

I think we need a stronger concept for WTF::URLString. I would like the class to enforce the URL is well formed.

Invalid URLs crawling as String keep me up at night.

What is your opinion?
Comment 5 Benjamin Poulain 2012-02-11 18:35:20 PST
Committed r107497: <http://trac.webkit.org/changeset/107497>
Comment 6 Adam Barth 2012-02-11 19:33:05 PST
Yeah, the goal of WebCore::URLString was to keep track of which Strings were actually legitimate/canonicalized URLs.  There was going to a companion class called ParsedURL which would let you extract the various components of a parsed URL (i.e., what KURL can do for you).  We were going to use URLString when the storage overhead of remembering the segmentation of the URL was more costly than just recomputing it as needed.