Bug 121095 - [EFL] Add parameter to MiniBrowser to disable web security
Summary: [EFL] Add parameter to MiniBrowser to disable web security
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 06:33 PDT by Andrzej Badowski
Modified: 2014-06-09 03:30 PDT (History)
9 users (show)

See Also:


Attachments
proposed patch (5.77 KB, patch)
2013-09-10 06:49 PDT, Andrzej Badowski
no flags Details | Formatted Diff | Diff
proposed patch 2 (6.10 KB, patch)
2013-09-11 03:58 PDT, Andrzej Badowski
no flags Details | Formatted Diff | Diff
proposed patch 3 (6.10 KB, patch)
2013-09-11 06:11 PDT, Andrzej Badowski
no flags Details | Formatted Diff | Diff
proposed_patch_4 (7.96 KB, patch)
2014-05-28 08:36 PDT, Andrzej Badowski
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (633.16 KB, application/zip)
2014-05-28 14:40 PDT, Build Bot
no flags Details
proposed patch 4 (7.96 KB, patch)
2014-05-29 01:52 PDT, Andrzej Badowski
gyuyoung.kim: review+
gyuyoung.kim: commit-queue-
Details | Formatted Diff | Diff
proposed patch (7.89 KB, patch)
2014-06-09 02:26 PDT, Andrzej Badowski
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej Badowski 2013-09-10 06:33:58 PDT
-w (--web-security) commandline allows to disable/enable web security (enabled by default).
Comment 1 Andrzej Badowski 2013-09-10 06:49:03 PDT
Created attachment 211198 [details]
proposed patch
Comment 2 Chris Dumez 2013-09-10 07:03:45 PDT
Comment on attachment 211198 [details]
proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=211198&action=review

> Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp:294
> +

Please test the default value first

> Tools/ChangeLog:8
> +        -w (--web-security) commandline allows to disable/enable web security (enabled by default).

Please explain why it is needed.
Comment 3 Andrzej Badowski 2013-09-11 03:58:49 PDT
Created attachment 211296 [details]
proposed patch 2

as the first patch + supplement according to comments No.1 and No. 2
Comment 4 WebKit Commit Bot 2013-09-11 04:01:28 PDT
Attachment 211296 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/UIProcess/API/efl/ewk_settings.cpp', u'Source/WebKit2/UIProcess/API/efl/ewk_settings.h', u'Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp', u'Tools/ChangeLog', u'Tools/MiniBrowser/efl/main.c']" exit_code: 1
Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_settings.cpp:297:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 5 Andrzej Badowski 2013-09-11 06:11:04 PDT
Created attachment 211303 [details]
proposed patch 3
Comment 6 Andrzej Badowski 2013-09-11 06:41:55 PDT
Comment on attachment 211303 [details]
proposed patch 3

style bug fixed
Comment 7 Andrzej Badowski 2014-05-26 02:32:16 PDT
The first reason for this, as I mentioned in the last ChangeLog file,  is to test and debug (using, for example, MiniBrowser) scripts accessing resources from other domains (cross-domain requests) such as access map location on another server.
The second reason. A colleague is currently preparing certain types of future tests that will be implemented in the local file and that  will refer to the links in the website http loaded in an iframe. It will not be possible without deactivation of web security.
Comment 8 Andrzej Badowski 2014-05-28 08:36:11 PDT
Created attachment 232196 [details]
proposed_patch_4

update patch webkit.org 121095 - adapt to subsequent changes in webkit.org that occurred after the last patch
Comment 9 Build Bot 2014-05-28 14:40:10 PDT
Comment on attachment 232196 [details]
proposed_patch_4

Attachment 232196 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5203471846342656

New failing tests:
media/media-fragments/TC0001.html
Comment 10 Build Bot 2014-05-28 14:40:14 PDT
Created attachment 232213 [details]
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-12  Port: mac-mountainlion-wk2  Platform: Mac OS X 10.8.5
Comment 11 Andrzej Badowski 2014-05-29 01:52:42 PDT
Created attachment 232239 [details]
proposed patch 4

Patch no 4 contains only the files from the efl directories.
Comment 12 Grzegorz Czajkowski 2014-06-01 23:56:40 PDT
Comment on attachment 232239 [details]
proposed patch 4

View in context: https://bugs.webkit.org/attachment.cgi?id=232239&action=review

Thanks for picking it up. Patch itself looks good to me.

> Source/WebKit2/UIProcess/API/efl/ewk_settings.h:481
> +EAPI Eina_Bool ewk_settings_web_security_enabled_set(Ewk_Settings* settings, Eina_Bool enable);

Before landing, please update public APIs (headers only) in compliance with EFL coding style, "*" operator should be placed next to variable.

> Source/WebKit2/UIProcess/API/efl/ewk_settings.h:491
> +EAPI Eina_Bool ewk_settings_web_security_enabled_get(const Ewk_Settings* settings);

Ditto,
Comment 13 Gyuyoung Kim 2014-06-08 23:40:38 PDT
Comment on attachment 232239 [details]
proposed patch 4

LGTM except for Greg's comments. Please land this after fixing those.
Comment 14 Andrzej Badowski 2014-06-09 02:26:31 PDT
Created attachment 232700 [details]
proposed patch

minor style amendments after a positive review
Comment 15 WebKit Commit Bot 2014-06-09 03:30:20 PDT
Comment on attachment 232700 [details]
proposed patch

Clearing flags on attachment: 232700

Committed r169688: <http://trac.webkit.org/changeset/169688>
Comment 16 WebKit Commit Bot 2014-06-09 03:30:27 PDT
All reviewed patches have been landed.  Closing bug.