URLParser should fail to parse percent-encoded invalid UTF-8 sequences
Created attachment 299547 [details] Patch
http://trac.webkit.org/r211067
Comment on attachment 299547 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299547&action=review > Source/WebCore/platform/URLParser.cpp:2465 > ALWAYS_INLINE static bool containsOnlyASCII(const String& string) Why does URLParser have its own version of this function? Shouldn’t we put this into WTF? > Source/WebCore/platform/URLParser.cpp:2467 > + ASSERT(!string.isNull()); Why?
Comment on attachment 299547 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=299547&action=review >> Source/WebCore/platform/URLParser.cpp:2465 >> ALWAYS_INLINE static bool containsOnlyASCII(const String& string) > > Why does URLParser have its own version of this function? Shouldn’t we put this into WTF? probably. >> Source/WebCore/platform/URLParser.cpp:2467 >> + ASSERT(!string.isNull()); > > Why? I just made it so that the one caller of this function can't call it with a null String. If we put this in WTF, that won't necessarily be true.
*** Bug 167730 has been marked as a duplicate of this bug. ***