Replace our broken KURL with Google URL Google wrote its own URL parsing library which is used a bunch internally, and looks to be significantly better than KURL. If nothing else, the several hundred unit tests are useful. I don't think KURL even does any cannonicalization (which gurl does). http://code.google.com/p/google-url/ I think WebKit should just pull in gurl as a dependency. The google coding style is kinda strange, but generally pretty similar to WebKit's own. It might even be published somewhere externally...
bug 16799 is an example where (in complex cases) we would require a url parser which could canonicalize urls.
A pet peeve of mine is that a link to "Apple.com" will not be marked as visited, because the URL is not canonicalized before Safari does a history lookup.
Our URL class is very different now from what it was in 2008.