RESOLVED FIXED 85006
[EFL][DRT] EFL's DRT navigation_policy_decision implementation
https://bugs.webkit.org/show_bug.cgi?id=85006
Summary [EFL][DRT] EFL's DRT navigation_policy_decision implementation
Mikhail Pozdnyakov
Reported 2012-04-26 14:33:20 PDT
EFL's DRT (DumpRenderTreeView) needs to implement navigation_policy_decision in order to unskip fast/encoding/mailto-always-utf-8.html fast/forms/mailto/advanced-get.html fast/forms/mailto/advanced-put.html fast/forms/mailto/formenctype-attribute-button-html.html fast/forms/mailto/formenctype-attribute-input-html.html fast/forms/mailto/get-multiple-items-text-plain.html fast/forms/mailto/get-multiple-items-x-www-form-urlencoded.html fast/forms/mailto/get-multiple-items.html fast/forms/mailto/get-non-ascii-always-utf-8.html fast/forms/mailto/get-non-ascii-text-plain-latin-1.html fast/forms/mailto/get-non-ascii-text-plain.html fast/forms/mailto/get-non-ascii.html fast/forms/mailto/get-overwrite-query.html fast/forms/mailto/post-append-query.html fast/forms/mailto/post-multiple-items-multipart-form-data.html fast/forms/mailto/post-multiple-items-text-plain.html fast/forms/mailto/post-multiple-items-x-www-form-urlencoded.html fast/forms/mailto/post-multiple-items.html fast/forms/mailto/post-text-plain-with-accept-charset.html fast/forms/mailto/post-text-plain.html
Attachments
navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate (10.71 KB, patch)
2012-04-27 05:51 PDT, Mikhail Pozdnyakov
gyuyoung.kim: commit-queue-
navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate (10.80 KB, patch)
2012-05-04 00:59 PDT, Mikhail Pozdnyakov
gyuyoung.kim: commit-queue-
patch v3 (rebased) (10.88 KB, patch)
2012-05-21 01:38 PDT, Mikhail Pozdnyakov
no flags
patch v4 (fixed comments from Gyuyoung) (10.88 KB, patch)
2012-05-21 05:26 PDT, Mikhail Pozdnyakov
webkit-ews: commit-queue-
patch v4 (resubmitted) (10.88 KB, patch)
2012-05-23 01:20 PDT, Mikhail Pozdnyakov
no flags
patch v5(rebased) (10.86 KB, patch)
2012-05-23 01:36 PDT, Mikhail Pozdnyakov
no flags
patch v6 (Skipped list clean up) (11.30 KB, patch)
2012-05-23 02:31 PDT, Mikhail Pozdnyakov
no flags
patch v7 (Review comments are met. Thanks Chris) (11.02 KB, patch)
2012-05-31 07:49 PDT, Mikhail Pozdnyakov
no flags
Mikhail Pozdnyakov
Comment 1 2012-04-27 05:51:30 PDT
Created attachment 139177 [details] navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate
Gyuyoung Kim
Comment 2 2012-04-30 05:55:31 PDT
Comment on attachment 139177 [details] navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate Attachment 139177 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/12584241
Mikhail Pozdnyakov
Comment 3 2012-05-02 00:46:46 PDT
(In reply to comment #2) > (From update of attachment 139177 [details]) > Attachment 139177 [details] did not pass efl-ews (efl): > Output: http://queues.webkit.org/results/12584241 This patch depends on other patch from bug85048.
Gyuyoung Kim
Comment 4 2012-05-03 04:28:10 PDT
Comment on attachment 139177 [details] navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate View in context: https://bugs.webkit.org/attachment.cgi?id=139177&action=review > Tools/DumpRenderTree/efl/DumpRenderTreeView.cpp:160 > + String output = String("Policy delegate: attempt to load ") + urlSuitableForTestResult(request->url) + Why don't use use makeString() ?
Mikhail Pozdnyakov
Comment 5 2012-05-04 00:59:24 PDT
Created attachment 140175 [details] navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate use makeString
Mikhail Pozdnyakov
Comment 6 2012-05-04 01:00:42 PDT
(In reply to comment #4) > (From update of attachment 139177 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=139177&action=review > > > Tools/DumpRenderTree/efl/DumpRenderTreeView.cpp:160 > > + String output = String("Policy delegate: attempt to load ") + urlSuitableForTestResult(request->url) + > > Why don't use use makeString() ? Thanks for the hint! Done.
Gyuyoung Kim
Comment 7 2012-05-04 01:05:01 PDT
Comment on attachment 140175 [details] navigation_policy_decision + LayoutTestController::setCustomPolicyDelegate Attachment 140175 [details] did not pass efl-ews (efl): Output: http://queues.webkit.org/results/12627070
Mikhail Pozdnyakov
Comment 8 2012-05-21 01:38:50 PDT
Created attachment 142968 [details] patch v3 (rebased)
Gyuyoung Kim
Comment 9 2012-05-21 02:01:12 PDT
Comment on attachment 142968 [details] patch v3 (rebased) View in context: https://bugs.webkit.org/attachment.cgi?id=142968&action=review > Tools/DumpRenderTree/efl/DumpRenderTreeView.cpp:176 > +static Eina_Bool onNavigationPolicyDecision(Ewk_View_Smart_Data*, Ewk_Frame_Resource_Request* request, Ewk_Navigation_Type navigationType ) Style nit : remove a space at the end of this line. > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:213 > + setCustomPolicyDelegate(true, true); Does these test cases assumes policy delegation and permissive are always enabled?
Mikhail Pozdnyakov
Comment 10 2012-05-21 05:23:45 PDT
(In reply to comment #9) > > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:213 > > + setCustomPolicyDelegate(true, true); > > Does these test cases assumes policy delegation and permissive are always enabled? LayoutTestController::waitForPolicyDelegate is used in fast/forms/mailto/* (which are unskipped by this patch) and http/tests/download/inherited-encoding.html http/tests/download/inherited-encoding-form-submission-result.html http/tests/download/default-encoding.html For all of the mentioned tests policy delegation enabled flag is crucial as affects logging, permissive flag is not crucial and tests can pass either with or without this flag. However Qt port for instance keeps permissive flag as false so we can do the same keeping consistency.
Mikhail Pozdnyakov
Comment 11 2012-05-21 05:26:46 PDT
Created attachment 143008 [details] patch v4 (fixed comments from Gyuyoung)
Early Warning System Bot
Comment 12 2012-05-21 05:46:39 PDT
Comment on attachment 143008 [details] patch v4 (fixed comments from Gyuyoung) Attachment 143008 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/12748015
Csaba Osztrogonác
Comment 13 2012-05-21 06:07:36 PDT
(In reply to comment #12) > (From update of attachment 143008 [details]) > Attachment 143008 [details] did not pass qt-wk2-ews (qt): > Output: http://queues.webkit.org/results/12748015 Sorry, it was false positive alarm.
Mikhail Pozdnyakov
Comment 14 2012-05-21 07:06:57 PDT
*** Bug 84842 has been marked as a duplicate of this bug. ***
Gyuyoung Kim
Comment 15 2012-05-23 01:17:49 PDT
It looks qt-wk2 ews had some problems. I think you need to submit patch again. Let's see ews result again.
Mikhail Pozdnyakov
Comment 16 2012-05-23 01:20:11 PDT
Created attachment 143495 [details] patch v4 (resubmitted)
Mikhail Pozdnyakov
Comment 17 2012-05-23 01:36:08 PDT
Created attachment 143497 [details] patch v5(rebased)
WebKit Review Bot
Comment 18 2012-05-23 01:41:29 PDT
Attachment 143497 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1 LayoutTests/platform/efl/test_expectations.txt:305: fast/loader/policy-delegate-action-hit-test-zoomed.html is also in a Skipped file. [test/expectations] [5] Total errors found: 1 in 9 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mikhail Pozdnyakov
Comment 19 2012-05-23 02:31:22 PDT
Created attachment 143509 [details] patch v6 (Skipped list clean up)
Chris Dumez
Comment 20 2012-05-29 08:43:20 PDT
Comment on attachment 143509 [details] patch v6 (Skipped list clean up) View in context: https://bugs.webkit.org/attachment.cgi?id=143509&action=review > LayoutTests/platform/efl/test_expectations.txt:301 > +// Needs custom policy delegate enhancement to log downloads - EFL port is missing api for getting header fields from HTTP responses. It would be nice to open bug reports for those. We try to avoid using BUGWKEFL in test_expectations.txt > LayoutTests/platform/efl/test_expectations.txt:304 > +// Needs custom policy delegate enhancement to log DOM node info - EFL port is missing DOM node abstraction Ditto. > Tools/DumpRenderTree/efl/DumpRenderTreeView.cpp:181 > + const String& output = makeString("Policy delegate: attempt to load ", urlSuitableForTestResult(request->url), Why construct a WTF::String here? You could just put all that as printf arguments.
Mikhail Pozdnyakov
Comment 21 2012-05-31 07:49:18 PDT
Created attachment 145091 [details] patch v7 (Review comments are met. Thanks Chris)
Chris Dumez
Comment 22 2012-05-31 07:53:50 PDT
Comment on attachment 145091 [details] patch v7 (Review comments are met. Thanks Chris) LGTM. Thanks.
Gyuyoung Kim
Comment 23 2012-05-31 08:06:06 PDT
Comment on attachment 145091 [details] patch v7 (Review comments are met. Thanks Chris) View in context: https://bugs.webkit.org/attachment.cgi?id=145091&action=review Looks good to me. > LayoutTests/platform/efl/test_expectations.txt:356 > +// Needs custom policy delegate enhancement to log downloads - EFL port is missing api for getting header fields from HTTP responses. Does *api* needs uppercase ?
Chris Dumez
Comment 24 2012-05-31 08:13:33 PDT
Comment on attachment 145091 [details] patch v7 (Review comments are met. Thanks Chris) View in context: https://bugs.webkit.org/attachment.cgi?id=145091&action=review >> LayoutTests/platform/efl/test_expectations.txt:356 >> +// Needs custom policy delegate enhancement to log downloads - EFL port is missing api for getting header fields from HTTP responses. > > Does *api* needs uppercase ? Right.
WebKit Review Bot
Comment 25 2012-05-31 10:15:37 PDT
Comment on attachment 145091 [details] patch v7 (Review comments are met. Thanks Chris) Clearing flags on attachment: 145091 Committed r119116: <http://trac.webkit.org/changeset/119116>
WebKit Review Bot
Comment 26 2012-05-31 10:15:46 PDT
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.