Summary: | Simplify KURL's checkEncodedString() | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Benjamin Poulain <benjamin> | ||||||
Component: | WebCore Misc. | Assignee: | Benjamin Poulain <benjamin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | kling, ossy, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | 73915 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Benjamin Poulain
2011-12-05 23:11:44 PST
Created attachment 117997 [details]
Patch
Comment on attachment 117997 [details]
Patch
Thanks
Comment on attachment 117997 [details] Patch Clearing flags on attachment: 117997 Committed r102123: <http://trac.webkit.org/changeset/102123> All reviewed patches have been landed. Closing bug. It made all tests fail in debug mode. (GTK and Qt too) ASSERTION FAILED: !url.isEmpty() || isSchemeFirstChar(url[0]) ../../../../Source/WebCore/platform/KURL.cpp(300) : void WebCore::checkEncodedString(const WTF::String&) Could you guys fix it as soon as possible? Assertion fixed with <http://trac.webkit.org/changeset/102128> Thanks Andreas and Ossy. I was a bit too fast on that one... Comment on attachment 117997 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=117997&action=review > Source/WebCore/platform/KURL.cpp:300 > + UNUSED_PARAM(url); > + ASSERT(url.containsOnlyASCII()); > + ASSERT(!url.isEmpty() || isSchemeFirstChar(url[0])); This should use ASSERT_UNUSED instead of a separate UNUSED_PARAM. In the future, UNUSED_PARAM will be changed to warn if the parameter is used, so we don’t want to compile it in, in any cases where the parameter is used. (In reply to comment #8) > In the future, UNUSED_PARAM will be changed to warn if the parameter is used, so we don’t want to compile it in, in any cases where the parameter is used. I did not know that is the plan. I will update then. Reopening to attach new patch. Created attachment 118135 [details]
Patch
Comment on attachment 118135 [details] Patch Clearing flags on attachment: 118135 Committed r102214: <http://trac.webkit.org/changeset/102214> All reviewed patches have been landed. Closing bug. |