WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
83121
[EFL] Add setting API for allow universal/file access from file URLs.
https://bugs.webkit.org/show_bug.cgi?id=83121
Summary
[EFL] Add setting API for allow universal/file access from file URLs.
Kamil Blank
Reported
2012-04-04 00:44:28 PDT
Add setting API for allow universal/file access from file URLs. Patch contains: + API for EWK + Enable layout test connected with setAllowUniversalAccessFromFileURLs and setAllowFileAccessFromFileURLs. + DRT: Implementation of setAllowUniversalAccessFromFileURLs and setAllowFileAccessFromFileURLs.
Attachments
patch
(9.94 KB, patch)
2012-04-04 00:48 PDT
,
Kamil Blank
no flags
Details
Formatted Diff
Diff
patch
(10.45 KB, patch)
2012-04-06 03:26 PDT
,
Kamil Blank
no flags
Details
Formatted Diff
Diff
patch
(11.08 KB, patch)
2012-04-20 07:10 PDT
,
Kamil Blank
no flags
Details
Formatted Diff
Diff
patch
(11.12 KB, patch)
2012-04-27 01:19 PDT
,
Kamil Blank
no flags
Details
Formatted Diff
Diff
patch
(11.15 KB, patch)
2012-04-27 03:19 PDT
,
Kamil Blank
eric
: review+
webkit.review.bot
: commit-queue-
Details
Formatted Diff
Diff
patch
(10.70 KB, patch)
2012-08-29 00:04 PDT
,
Kamil Blank
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Kamil Blank
Comment 1
2012-04-04 00:48:56 PDT
Created
attachment 135526
[details]
patch
Gyuyoung Kim
Comment 2
2012-04-04 01:58:33 PDT
Comment on
attachment 135526
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135526&action=review
> Source/WebKit/efl/ewk/ewk_view.cpp:2445 > +Eina_Bool ewk_view_setting_allow_universal_access_from_file_urls_set(Evas_Object* ewkView, Eina_Bool enable)
I'm not sure whether we add new APIs for this setting obstinately. According to I take a look other ports, almost ports don't support this feature as APIs. If you don't think that EFL port should support this setting feature, I think it is better to move from ewk_view to DumpRenderTreeSupportEfl for just testing.
Kamil Blank
Comment 3
2012-04-04 03:12:41 PDT
(In reply to
comment #2
)
> (From update of
attachment 135526
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135526&action=review
> > > Source/WebKit/efl/ewk/ewk_view.cpp:2445 > > +Eina_Bool ewk_view_setting_allow_universal_access_from_file_urls_set(Evas_Object* ewkView, Eina_Bool enable) > > I'm not sure whether we add new APIs for this setting obstinately. According to I take a look other ports, almost ports don't support this feature as APIs. If you don't think that EFL port should support this setting feature, I think it is better to move from ewk_view to DumpRenderTreeSupportEfl for just testing.
As I checked both settings are supported by API in QT, GTK and Chromium ports. Isn't it a good reason to add them also in EFL port?
Gyuyoung Kim
Comment 4
2012-04-05 01:22:03 PDT
Comment on
attachment 135526
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=135526&action=review
>>> Source/WebKit/efl/ewk/ewk_view.cpp:2445 >>> +Eina_Bool ewk_view_setting_allow_universal_access_from_file_urls_set(Evas_Object* ewkView, Eina_Bool enable) >> >> I'm not sure whether we add new APIs for this setting obstinately. According to I take a look other ports, almost ports don't support this feature as APIs. If you don't think that EFL port should support this setting feature, I think it is better to move from ewk_view to DumpRenderTreeSupportEfl for just testing. > > As I checked both settings are supported by API in QT, GTK and Chromium ports. Isn't it a good reason to add them also in EFL port?
I don't think we can add new APIs without obvious reason. I think you can add this API to DumpRenderTreeSupportEfl first for testing, then we can move this function to API layer when we need to support this functionality for application. If you have obvious reason, please let me know.
Kamil Blank
Comment 5
2012-04-05 01:46:07 PDT
(In reply to
comment #4
)
> (From update of
attachment 135526
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135526&action=review
> > >>> Source/WebKit/efl/ewk/ewk_view.cpp:2445 > >>> +Eina_Bool ewk_view_setting_allow_universal_access_from_file_urls_set(Evas_Object* ewkView, Eina_Bool enable) > >> > >> I'm not sure whether we add new APIs for this setting obstinately. According to I take a look other ports, almost ports don't support this feature as APIs. If you don't think that EFL port should support this setting feature, I think it is better to move from ewk_view to DumpRenderTreeSupportEfl for just testing. > > > > As I checked both settings are supported by API in QT, GTK and Chromium ports. Isn't it a good reason to add them also in EFL port? > > I don't think we can add new APIs without obvious reason.
What defines obvious reason?
Tomasz Morawski
Comment 6
2012-04-05 01:59:02 PDT
(In reply to
comment #2
)
> (From update of
attachment 135526
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=135526&action=review
> > > Source/WebKit/efl/ewk/ewk_view.cpp:2445 > > +Eina_Bool ewk_view_setting_allow_universal_access_from_file_urls_set(Evas_Object* ewkView, Eina_Bool enable) > > I'm not sure whether we add new APIs for this setting obstinately. According to I take a look other ports, almost ports don't support this feature as APIs. If you don't think that EFL port should support this setting feature, I think it is better to move from ewk_view to DumpRenderTreeSupportEfl for just testing.
I take a look other ports too it seems that Chromium port and win port use this setting as API. Please see: Source/WebKit/chromium/public/WebSettings.h Source/WebKit/win/WebPreferences.h After adding this settings, the DRT code will look more clear and objective. Anyway, after removing all setting functions by replace it by single get/set setting functions will resolve your concerns related to API changes.
Gyuyoung Kim
Comment 7
2012-04-05 02:51:47 PDT
(In reply to
comment #5
)
> > > As I checked both settings are supported by API in QT, GTK and Chromium ports. Isn't it a good reason to add them also in EFL port? > > > > I don't think we can add new APIs without obvious reason. > > What defines obvious reason?
I mean obvious reason is that application needs to set this setting for specific functionality. For example, web app needs to access file access by file name. If we wanna add new API, in my humble opinion, we need to show this API's role or functionality. I think it is not enough to add new APIs because other ports has similar APIs. You didn't explain when this API will be used or when application needs this functionality. By the way, If
bug 83007
supports universal setting set/get APIs, it looks argument like this will be reduced.
Kamil Blank
Comment 8
2012-04-05 06:21:41 PDT
(In reply to
comment #7
)
> (In reply to
comment #5
) > > > > > As I checked both settings are supported by API in QT, GTK and Chromium ports. Isn't it a good reason to add them also in EFL port? > > > > > > I don't think we can add new APIs without obvious reason. > > > > What defines obvious reason? > > I mean obvious reason is that application needs to set this setting for specific functionality. For example, web app needs to access file access by file name. If we wanna add new API, in my humble opinion, we need to show this API's role or functionality. I think it is not enough to add new APIs because other ports has similar APIs. You didn't explain when this API will be used or when application needs this functionality. >
Following Qt documentation: 1) setAllowUniversalAccessFromFileURLs - Specifies whether locally loaded documents are allowed to access remote urls 2) setAllowFileAccessFromFileURLs - Specifies whether locally loaded documents are allowed to access other local urls. Do you want me to add it in bug description (Changelog) ?
Raphael Kubo da Costa (:rakuco)
Comment 9
2012-04-05 16:16:42 PDT
Comment on
attachment 135526
[details]
patch IMO it makes sense to keep this as publicly exposed API: being able to control feels useful enough to me (I admit this is subjective, though). The documentation should be improved with the details from the previous comment; the more detailed the documentation, the better.
Gyuyoung Kim
Comment 10
2012-04-05 17:56:12 PDT
(In reply to
comment #8
)
> Following Qt documentation: > 1) setAllowUniversalAccessFromFileURLs - Specifies whether locally loaded documents are allowed to access remote urls > > 2) setAllowFileAccessFromFileURLs - Specifies whether locally loaded documents are allowed to access other local urls. > > Do you want me to add it in bug description (Changelog) ?
Ok, I think it is better to add above description to ChangeLog.
Kamil Blank
Comment 11
2012-04-06 03:26:32 PDT
Created
attachment 135998
[details]
patch Added description in: Source/WebKit/efl/ChangeLog Source/WebKit/efl/ewk/ewk_view.h
Grzegorz Czajkowski
Comment 12
2012-04-10 00:42:20 PDT
LGTM.
Kamil Blank
Comment 13
2012-04-17 02:42:56 PDT
Do you have any comments to current patch?
Grzegorz Czajkowski
Comment 14
2012-04-17 02:50:38 PDT
(In reply to
comment #13
)
> Do you have any comments to current patch?
From my side LGTM.
Kamil Blank
Comment 15
2012-04-20 03:25:14 PDT
To prevent similar situation to
https://bugs.webkit.org/show_bug.cgi?id=82860
I'll add reset settings inside DRT
Kamil Blank
Comment 16
2012-04-20 07:10:22 PDT
Created
attachment 138090
[details]
patch Changes: + Added reset for settings insideDumpRenderTree/efl/DumpRenderTreeChrome.cpp + 1 test more is removed from Skipped list - missing function were implemented in the meantime (fast/xmlhttprequest/xmlhttprequest-no-file-access.html)
Gyuyoung Kim
Comment 17
2012-04-20 09:18:49 PDT
Comment on
attachment 138090
[details]
patch In my opinion, it is better to split this patch into two patches. But, looks fine.
Kamil Blank
Comment 18
2012-04-20 10:43:06 PDT
(In reply to
comment #17
)
> (From update of
attachment 138090
[details]
) > In my opinion, it is better to split this patch into two patches. But, looks fine.
Do you think about 1 patch containing only EWK API and 2nd one containing DRT things? Is it really needed? It's not that big patch ;)
Raphael Kubo da Costa (:rakuco)
Comment 19
2012-04-26 18:23:06 PDT
Comment on
attachment 138090
[details]
patch The patch looks mostly OK to me, but please document what the default for each of the newly introduced settings is.
Kamil Blank
Comment 20
2012-04-27 01:19:04 PDT
Created
attachment 139145
[details]
patch
Kamil Blank
Comment 21
2012-04-27 03:19:00 PDT
Created
attachment 139160
[details]
patch
Kamil Blank
Comment 22
2012-04-27 03:35:17 PDT
(In reply to
comment #19
)
> (From update of
attachment 138090
[details]
) > The patch looks mostly OK to me, but please document what the default for each of the newly introduced settings is.
Done.
Gyuyoung Kim
Comment 23
2012-06-06 22:14:18 PDT
Comment on
attachment 139160
[details]
patch LGTM.
Thiago Marcos P. Santos
Comment 24
2012-07-25 02:37:59 PDT
Is there anyone working on this for WK2? We have a test suite here that really needs this feature to be configurable via command line option at the MiniBrowser.
Eric Seidel (no email)
Comment 25
2012-08-22 15:39:11 PDT
Comment on
attachment 139160
[details]
patch r+, based on above LGTMs.
WebKit Review Bot
Comment 26
2012-08-22 15:40:46 PDT
Comment on
attachment 139160
[details]
patch Rejecting
attachment 139160
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: eChrome.cpp Hunk #1 FAILED at 221. 1 out of 1 hunk FAILED -- saving rejects to file Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp.rej patching file Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp Hunk #1 FAILED at 352. 1 out of 1 hunk FAILED -- saving rejects to file Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp.rej Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Eric Seidel']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue/ Full output:
http://queues.webkit.org/results/13565452
Kamil Blank
Comment 27
2012-08-29 00:04:18 PDT
Created
attachment 161150
[details]
patch Patch rebased.
Chris Dumez
Comment 28
2012-08-29 01:12:19 PDT
Comment on
attachment 161150
[details]
patch No cq flag?
WebKit Review Bot
Comment 29
2012-08-29 11:15:52 PDT
Comment on
attachment 161150
[details]
patch Clearing flags on attachment: 161150 Committed
r127024
: <
http://trac.webkit.org/changeset/127024
>
WebKit Review Bot
Comment 30
2012-08-29 11:15:58 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.
Top of Page
Format For Printing
XML
Clone This Bug