Clean-up GlobalDAO (WhiteURIList)
authorJihoon Chung <jihoon.chung@samsaung.com>
Thu, 17 Oct 2013 04:45:47 +0000 (13:45 +0900)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Wed, 23 Oct 2013 14:37:48 +0000 (23:37 +0900)
[Issue#]   LINUXWRT-1029
[Problem]  GlobalDAO has unnecessary API.
[Cause]    N/A
[Solution] Remove "WhiteURIList" API
           - "WhiteURIList" stores uri to allow using plugin even uri is external uri.(http, https)
           - Moreover, tizen plugin doesn't have plan to support tizen web api to external uri.
           - Current usage case is checking "WhiteURIList" before load plugin object to JS engine.
[Verification] Checking plugin object is available in external page
[SCMRequest] N/A

Change-Id: Ib35ec9a13babb31a50a9a8b8835d8ee8eebaee85

src/view/webkit/injected-bundle/injected_bundle_uri_handling.cpp

index 75741eb..6ed9810 100644 (file)
@@ -39,8 +39,6 @@
 // allow-navigation check
 #include <pcrecpp.h>
 #include <iri.h>
-// WhiteList check
-#include <dpl/wrt-dao-ro/global_dao_read_only.h>
 
 namespace {
 char const * const SCHEME_TYPE_FILE = "file";
@@ -134,8 +132,7 @@ bool checkWhitelist(const char *url)
         return true;
     }
 
-    WidgetAccessList whiteURIList(WrtDB::GlobalDAOReadOnly::GetWhiteURIList());
-    return whiteURIList.isRequiredIRI(DPL::FromUTF8String(host));
+    return false;
 }
 
 bool checkAllowNavigation(const char *url, const DPL::String& tizenId)