RESOLVED FIXED 79237
[EFL][DRT] Implement setValueForUser and setAutofilled
https://bugs.webkit.org/show_bug.cgi?id=79237
Summary [EFL][DRT] Implement setValueForUser and setAutofilled
Grzegorz Czajkowski
Reported 2012-02-22 06:54:10 PST
Add missing implementation setValueForUser and setAutofilled to EFL's LayoutTestController. Those implementations are related with input fields and allow to pass following tests: - fast/forms/onchange-setvalueforuser.html - fast/forms/input-autofilled.html - fast/forms/reset-autofilled.html
Attachments
proposed patch (8.88 KB, patch)
2012-02-22 07:11 PST, Grzegorz Czajkowski
kling: review+
patch for landing (9.34 KB, patch)
2012-02-24 06:20 PST, Grzegorz Czajkowski
no flags
Grzegorz Czajkowski
Comment 1 2012-02-22 07:11:49 PST
Created attachment 128208 [details] proposed patch
Grzegorz Czajkowski
Comment 2 2012-02-22 07:21:11 PST
CC'ing developers involved in LayoutTests/DRT
Hajime Morrita
Comment 3 2012-02-22 23:43:20 PST
Comment on attachment 128208 [details] proposed patch Accessing JSValueRef smells wrong. When you notice you're doing it, it will indicate something wrong. IMHO, what you need is WebKit level API to access WebCore::Element and its autofill methods. For example, Mac port has DOMElement obj-c class and Chromium has WebElement as a wrapper of WebCore::Element. I think you need similar for EFL. Just making bot green doesn't help in this case. Please consult some expert in your team and discuss what is the good API for EFL port.
Hajime Morrita
Comment 4 2012-02-22 23:47:55 PST
Point here is that you cannot implement auto-complete feature for your browser with EFL API. You'll need such an API and DRT should demonstrate it.
Martin Robinson
Comment 5 2012-02-23 08:53:29 PST
(In reply to comment #4) > Point here is that you cannot implement auto-complete feature for your browser with EFL API. > You'll need such an API and DRT should demonstrate it. DumpRenderTreeSupport is actually a private part of the EFL API that predates WebCore.internals and fulfills much the same purpose. GTK+, Qt, and EFL use it to add private API for the DRT.
Hajime Morrita
Comment 6 2012-02-23 20:32:39 PST
Comment on attachment 128208 [details] proposed patch (In reply to comment #5) > (In reply to comment #4) > > Point here is that you cannot implement auto-complete feature for your browser with EFL API. > > You'll need such an API and DRT should demonstrate it. > > DumpRenderTreeSupport is actually a private part of the EFL API that predates WebCore.internals and fulfills much the same purpose. GTK+, Qt, and EFL use it to add private API for the DRT. Hmm interesting. In general I understand DumpRenderTree serves such purposes. But for this case, is it making sense to make the test pass even if the port doesn't support the feature? Clearing r- since I realized that I don't have enough understanding of the background context.
Grzegorz Czajkowski
Comment 7 2012-02-23 23:00:40 PST
Comment on attachment 128208 [details] proposed patch I added request for the review again. Martin could you review it because you've already reviewed the similar patch for WebKit-GTK port?
Andreas Kling
Comment 8 2012-02-24 05:12:31 PST
Comment on attachment 128208 [details] proposed patch rs=me as this looks like pretty much exactly like the Gtk+ implementation of the same functionality.
Grzegorz Czajkowski
Comment 9 2012-02-24 06:20:12 PST
Created attachment 128724 [details] patch for landing Rebased to head.
WebKit Review Bot
Comment 10 2012-02-24 08:35:08 PST
Comment on attachment 128724 [details] patch for landing Clearing flags on attachment: 128724 Committed r108806: <http://trac.webkit.org/changeset/108806>
WebKit Review Bot
Comment 11 2012-02-24 08:35:13 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.