[Webkit-unassigned] [Bug 44496] [EFL] Password manager for WebKit-Efl

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 31 19:44:38 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44496


Adam Barth <abarth at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65713|review?, commit-queue?      |review-
               Flag|                            |




--- Comment #6 from Adam Barth <abarth at webkit.org>  2010-08-31 19:44:38 PST ---
(From update of attachment 65713)
View in context: https://bugs.webkit.org/attachment.cgi?id=65713&action=prettypatch

> WebKit/efl/ewk/ewk_view.cpp:4046
> +    for (unsigned i = 0; i < forms->length(); i++) {
> +        WebCore::HTMLFormElement *formElement = static_cast<WebCore::HTMLFormElement *> (forms->item(i));
> +        for (unsigned j = 0; j < formElement->associatedElements().size(); j++) {   
> +            WebCore::HTMLFormControlElement *element = formElement->associatedElements()[j];
> +            if (!element->hasLocalName(WebCore::HTMLNames::inputTag))
Why just the localName?  Seems like you'd want to match the namespace too.

> WebKit/efl/ewk/ewk_view.cpp:4051
> +            WebCore::HTMLInputElement *inputElement = static_cast<WebCore::HTMLInputElement *>(element);
> +            if (!inputElement->isEnabledFormControl())
> +                continue;
This not memory safe.  Something can have a localName of "input" without being an HTMLInputElement.

> WebKit/efl/ewk/ewk_view.cpp:4069
> +                    if ((inputElement->inputType() == WebCore::HTMLInputElement::TEXT)) {
> +                        inputElement->setValue(username);
> +                        return true;
> +                    }
This whole thing looks like overly much poking at WebCore from the WebKit layer.  If this logic is right, does every port need to copy/paste this method?  Does this code exist in other ports?  Should we move the correct implementation to WebCore proper?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list