From: Jiyeon Kim Date: Thu, 4 Apr 2013 05:32:46 +0000 (+0900) Subject: If applicationCachePermissionCallback does not define or set, call replayApplicationC... X-Git-Tag: 2.1_release~222^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=877e1cdd4fc28fcd67d0fafc036fc4d90580a36b;p=platform%2Fframework%2Fweb%2Fwebkit-efl.git If applicationCachePermissionCallback does not define or set, call replayApplicationCachePermission(true) [Title] If applicationCachePermissionCallback does not define or set, call replayApplicationCachePermission(true) [Problem] Application cache doesn't work [Cause] N/A [Solution] I'll change returning value true to false after implementing permission popup on browser side Change-Id: If5592b1c00f52b7dbfdc8267c6f70466f668f130 --- diff --git a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp index c5aad6c..5fb8017 100755 --- a/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp +++ b/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp @@ -4443,7 +4443,7 @@ Eina_Bool ewkViewRequestApplicationCachePermission(Evas_Object* ewkView, WKSecur EWK_VIEW_IMPL_GET_OR_RETURN(smartData, impl, false); if (!impl->applicationCachePermissionContext || !impl->applicationCachePermissionContext->applicationCachePermissionCallback) - return true; + return false; impl->isWaitingForApplicationCachePermission = true; if (impl->applicationCachePermissionOrigin) diff --git a/Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp b/Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp index 3941c5b..92a8f8b 100755 --- a/Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp +++ b/Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp @@ -1013,7 +1013,7 @@ void WebPageProxy::requestApplicationCachePermission(uint64_t frameID, const Str RefPtr origin = WebSecurityOrigin::createFromDatabaseIdentifier(originIdentifier); if (!m_tizenClient.decidePolicyForApplicationCachePermissionRequest(this, origin.get(), frame)) - replyApplicationCachePermission(false); + replyApplicationCachePermission(true); } void WebPageProxy::replyApplicationCachePermission(bool allow)