Fix ewk_cookie_manager_persistent_storage_set when called before a WebView
authorAntonio Gomes <a1.gomes@samsung.com>
Fri, 8 Jan 2016 17:19:20 +0000 (13:19 -0400)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 07:55:23 +0000 (07:55 +0000)
commitd782c41930a9eca7b545336b64d981eb37f6827c
treef7de11a617909930596f8f2dc41cbd0ee3227c43
parent0b689e3904e1433564034ec96f5ac2fa8f83da00
Fix ewk_cookie_manager_persistent_storage_set when called before a WebView

Patch indirectly creates requestcontext, resourceContextEfl
and cookiemanager instances as part of EWebContext ctor.
These objects end up getting created as part of the

EWebView::InitializeContents routine anyways. The reason on why it
is manually triggered here is because there are ewk_cookie_manager
APIs that can be called before a webview instance is created. In such
circumstances, APIs fail to execute, including
ewk_cookie_manager_persistent_storage_set.

Also, patch sets file:// as a cookieable protocol
for WRT purposes.

Original beta/m47 patch: http://165.213.202.130/gerrit/#/c/102798/

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=15514

Reviewed by: djmix.kim

Change-Id: Ieffcbf1058237e032486aa3c715dbee1282304c9
Signed-off-by: Antonio Gomes <a1.gomes@samsung.com>
tizen_src/ewk/efl_integration/eweb_context.cc
tizen_src/ewk/efl_integration/url_request_context_getter_efl.cc