RESOLVED FIXED84577
[EFL] [DRT] Implement setDomainRelaxationForbiddenForURLScheme in EFL DRT
https://bugs.webkit.org/show_bug.cgi?id=84577
Summary [EFL] [DRT] Implement setDomainRelaxationForbiddenForURLScheme in EFL DRT
Sudarsana Nagineni (babu)
Reported 2012-04-23 02:04:23 PDT
Implement setDomainRelaxationForbiddenForURLScheme method in EFL's LayoutTestController.
Attachments
Patch (5.23 KB, patch)
2012-04-23 07:01 PDT, Sudarsana Nagineni (babu)
no flags
patch (5.24 KB, patch)
2012-04-24 05:35 PDT, Sudarsana Nagineni (babu)
no flags
Patch (5.19 KB, patch)
2012-05-09 03:54 PDT, Sudarsana Nagineni (babu)
gyuyoung.kim: review-
Patch (1.27 KB, patch)
2012-05-17 05:24 PDT, Sudarsana Nagineni (babu)
no flags
patch (5.17 KB, patch)
2012-05-29 06:15 PDT, Sudarsana Nagineni (babu)
no flags
Sudarsana Nagineni (babu)
Comment 1 2012-04-23 07:01:31 PDT
Created attachment 138340 [details] Patch Implement setDomainRelaxationForbiddenForURLScheme
Raphael Kubo da Costa (:rakuco)
Comment 2 2012-04-23 19:01:56 PDT
Comment on attachment 138340 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=138340&action=review > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:611 > + DumpRenderTreeSupportEfl::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme->ustring().utf8().data()); Please pass a WTF::String directly in the second argument to avoid unneeded const char* conversions. You can create a WTF::String very easily via String(scheme->ustring().impl()).
Sudarsana Nagineni (babu)
Comment 3 2012-04-24 05:33:50 PDT
(In reply to comment #2) > (From update of attachment 138340 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138340&action=review > > > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:611 > > + DumpRenderTreeSupportEfl::setDomainRelaxationForbiddenForURLScheme(forbidden, scheme->ustring().utf8().data()); > > Please pass a WTF::String directly in the second argument to avoid unneeded const char* conversions. You can create a WTF::String very easily via String(scheme->ustring().impl()). Thanks for the review Raphael.
Sudarsana Nagineni (babu)
Comment 4 2012-04-24 05:35:14 PDT
Raphael Kubo da Costa (:rakuco)
Comment 5 2012-04-24 13:43:18 PDT
Comment on attachment 138542 [details] patch Looks good.
Martin Robinson
Comment 6 2012-04-27 09:35:45 PDT
Comment on attachment 138542 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=138542&action=review > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:612 > + DumpRenderTreeSupportEfl::setDomainRelaxationForbiddenForURLScheme(forbidden, String(scheme->ustring().impl())); Is it common to reach into the guts of a JSStringRef. From what I've seen of the DRT, typically you use the JavaScriptCore API to convert into a char* or a String.
Martin Robinson
Comment 7 2012-04-27 09:35:54 PDT
Comment on attachment 138542 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=138542&action=review > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:612 > + DumpRenderTreeSupportEfl::setDomainRelaxationForbiddenForURLScheme(forbidden, String(scheme->ustring().impl())); Is it common to reach into the guts of a JSStringRef? From what I've seen of the DRT, typically you use the JavaScriptCore API to convert into a char* or a String.
Sudarsana Nagineni (babu)
Comment 8 2012-04-27 14:39:00 PDT
(In reply to comment #7) > (From update of attachment 138542 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=138542&action=review > > > Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp:612 > > + DumpRenderTreeSupportEfl::setDomainRelaxationForbiddenForURLScheme(forbidden, String(scheme->ustring().impl())); > > Is it common to reach into the guts of a JSStringRef? From what I've seen of the DRT, typically you use the JavaScriptCore API to convert into a char* or a String. Thanks for the review. Looked around the EFL's DRT code and this is how we have been doing the convertion everywhere. For example we are converting JSStringRef into a char* like 'jsstringref'->ustring().utf8().data(). So, I thought it's Ok to construct a String directly without using JavaScriptCore API.
Sudarsana Nagineni (babu)
Comment 9 2012-05-09 03:54:07 PDT
Created attachment 140907 [details] Patch rebased
Sudarsana Nagineni (babu)
Comment 10 2012-05-10 06:36:58 PDT
Martin, could you please have a look at this bug again?
Sudarsana Nagineni (babu)
Comment 11 2012-05-16 07:48:47 PDT
Comment on attachment 140907 [details] Patch Needs rebasing.
Gyuyoung Kim
Comment 12 2012-05-16 17:53:00 PDT
Comment on attachment 140907 [details] Patch Looks fine.
Gyuyoung Kim
Comment 13 2012-05-17 04:16:26 PDT
Comment on attachment 140907 [details] Patch R117428 moves setDomainRelaxationForbiddenForURLScheme to InternalSettings. http://trac.webkit.org/changeset/117428 So, this patch just is enough to touches LayoutTests/platform/efl/Skipped file. Could you please modify this patch ?
Sudarsana Nagineni (babu)
Comment 14 2012-05-17 05:14:04 PDT
(In reply to comment #13) > (From update of attachment 140907 [details]) > R117428 moves setDomainRelaxationForbiddenForURLScheme to InternalSettings. > http://trac.webkit.org/changeset/117428 > > So, this patch just is enough to touches LayoutTests/platform/efl/Skipped file. Could you please modify this patch ? Thanks for notifying me. I will update the patch now.
Sudarsana Nagineni (babu)
Comment 15 2012-05-17 05:24:51 PDT
Created attachment 142457 [details] Patch Unskip passing test case.
Grzegorz Czajkowski
Comment 16 2012-05-17 06:12:05 PDT
Comment on attachment 142457 [details] Patch It is possible that r117428 will be reverted because it may cause build break on Safari. Let's wait for final decision
Grzegorz Czajkowski
Comment 17 2012-05-21 02:37:20 PDT
Hi Gyuyoung, Do you think that the previous Sudarsana Nagineni's patch with setDomainRelaxationForbiddenForURLScheme implementation should be restored? It looks like there are some discussion about 86704 so we cannot just unskip http/tests/security/setDomainRelaxationForbiddenForURLScheme.html.
Gyuyoung Kim
Comment 18 2012-05-29 02:05:27 PDT
(In reply to comment #17) > Hi Gyuyoung, > Do you think that the previous Sudarsana Nagineni's patch with setDomainRelaxationForbiddenForURLScheme implementation should be restored? It looks like there are some discussion about 86704 so we cannot just unskip http/tests/security/setDomainRelaxationForbiddenForURLScheme.html. Yes, please restore this patch. My original patch was reverted because of Safari build.
Sudarsana Nagineni (babu)
Comment 19 2012-05-29 06:15:57 PDT
Created attachment 144537 [details] patch r117428 from 86704 was rolled out, so restoring the original patch.
Gyuyoung Kim
Comment 20 2012-05-29 09:37:21 PDT
Comment on attachment 144537 [details] patch Looks good to me.
WebKit Review Bot
Comment 21 2012-06-14 01:01:07 PDT
Comment on attachment 144537 [details] patch Clearing flags on attachment: 144537 Committed r120294: <http://trac.webkit.org/changeset/120294>
WebKit Review Bot
Comment 22 2012-06-14 01:01:13 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.