Align URL setters with spec for URLs that cannot be a base URL
Created attachment 300511 [details] Patch
Comment on attachment 300511 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=300511&action=review r=me with a possible improvement suggestion. > Source/WebCore/html/URLUtils.h:246 > void URLUtils<T>::setPathname(const String& value) For the pathname getter above, the spec says: "If context object’s url’s cannot-be-a-base-URL flag is set, then return context object’s url’s path[0]." I don't see any special handling in our code, do we really do the right thing?
I'm not sure, but I'm not touching that code in this patch. It's possible I'll need to add a check in a future patch to pass a future web platform test.
http://trac.webkit.org/r211636
(In reply to comment #3) > I'm not sure, but I'm not touching that code in this patch. It's possible > I'll need to add a check in a future patch to pass a future web platform > test. Sure, merely suggesting we look into this in a follow-up.