If applicationCachePermissionCallback does not define or set, call replayApplicationC...
authorJiyeon Kim <jiyeon0402.kim@samsung.com>
Thu, 4 Apr 2013 05:32:46 +0000 (14:32 +0900)
committerJiyeon Kim <jiyeon0402.kim@samsung.com>
Thu, 4 Apr 2013 05:35:14 +0000 (14:35 +0900)
[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

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp

index c5aad6c..5fb8017 100755 (executable)
@@ -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)
index 3941c5b..92a8f8b 100755 (executable)
@@ -1013,7 +1013,7 @@ void WebPageProxy::requestApplicationCachePermission(uint64_t frameID, const Str
     RefPtr<WebSecurityOrigin> origin = WebSecurityOrigin::createFromDatabaseIdentifier(originIdentifier);
 
     if (!m_tizenClient.decidePolicyForApplicationCachePermissionRequest(this, origin.get(), frame))
-        replyApplicationCachePermission(false);
+        replyApplicationCachePermission(true);
 }
 
 void WebPageProxy::replyApplicationCachePermission(bool allow)