WebCore::URLString() is totally unused. We introduced WTF::URLString() in https://bugs.webkit.org/show_bug.cgi?id=77291
Created attachment 126662 [details]
Comment on attachment 126662 [details]
WebCore::URLString was something of a dream. :)
(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?
Committed r107497: <http://trac.webkit.org/changeset/107497>
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.