[webkit-reviews] review requested: [Bug 19079] Send the submissions character encoding in hidden _charset_ field : [Attachment 113692] Updated patch as per review comments
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 4 11:51:52 PDT 2011
Vineet Chaudhary (vineetc) <rgf748 at motorola.com> has asked for review:
Bug 19079: Send the submissions character encoding in hidden _charset_ field
https://bugs.webkit.org/show_bug.cgi?id=19079
Attachment 113692: Updated patch as per review comments
https://bugs.webkit.org/attachment.cgi?id=113692&action=review
------- Additional Comments from Vineet Chaudhary (vineetc)
<rgf748 at motorola.com>
Thanks Darin for review.
(In reply to comment #10)
> > Source/WebCore/html/InputType.cpp:178
> > + if (equalIgnoringCase(element()->name(), "_charset_") &&
element()->isInputTypeHidden())
>
> This is the wrong way to code something that’s type specific in InputType
objects. Instead, HiddenInputType should override the appendFormData function.
>
> The InputType objects were created to avoid having type-specific code mixed
in with type-independent code, making use of isXXX checks like the one here.
Done.
> > Source/WebCore/html/InputType.cpp:179
> > + encoding.appendData(element()->name(),
String(encoding.encoding().name()));
> Why is an explicit String() needed here? Did you try compiling without it?
Yes I tried compiling it without String but it gives compile error as
encoding().name() returns char*.
> HiddenInputType::appendFormData should check for the special case, and if
it’s not the special case call through to InputType::appendFormData.
Done.
More information about the webkit-reviews
mailing list