Add support for monitoring allow-navigation occurrence.
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Fri, 12 Jul 2013 09:34:55 +0000 (11:34 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 15 Jul 2013 07:09:47 +0000 (07:09 +0000)
[Issue#] https://bugs.tizendev.org/jira/browse/TDIS-6856
[Problem] All allow-navigation elements from web application's
configuration document are parsed but only the first one should be
processed.
[Cause] N/A
[Solution] Add flag for monitoring whether allow-navigation element has
already occurred.
[Verification]
1. Build repository

[Notes]
Utilized in configuration parser (in wrt-installer).

Change-Id: I9f67822ada3fc547d02ac80c08d595281740b91c

modules/widget_dao/include/dpl/wrt-dao-ro/config_parser_data.h

index eceaaec..399cbde 100644 (file)
@@ -331,6 +331,7 @@ class ConfigParserData
     DPL::OptionalString tizenAppId;
 
     // allow-navigation
+    bool allowNavigationEncountered;
     AllowNavigationInfoList allowNavigationInfoList;
 
     //csp polic for widget
@@ -361,6 +362,7 @@ class ConfigParserData
         backSupported(false),
         accessNetwork(false),
         startFileEncountered(false),
+        allowNavigationEncountered(false),
         securityModelVersion(SecurityModelVersion::SECURITY_MODEL_V1)
     {}
 };