[ Issue ] http://suprem.sec.samsung.net/jira/browse/TSAM-6252
[ Problem]There is no url name, it can't find the proper app in the app_control
[ Solution] In case of check the mime type, and remove the url name
If there is no file:/// , the Webvie can't open the file.
So just "/opt/" path, it add the file://
[Verify] Check the save link and open the file
Change-Id: Icb090645c5125d0e53d9cd040edffbfa75e085c3
Signed-off-by: HyeKyoung Hwang <cookie@samsung.com>
std::string uri = request_uri != NULL ? std::string(request_uri) : DEFAULT_URL;
std::string caller = request_caller != NULL ? std::string(request_caller) : DEFAULT_CALLER;
+ if((operation && !strcmp(operation, "http://tizen.org/appcontrol/operation/view")) && (request_uri != NULL)) {
+ if (request_uri) {
+ if (!strncmp(request_uri, "/opt/", strlen("/opt/"))) {
+ uri = std::string("file://") + uri;
+ }
+ }
+ }
+
BROWSER_LOGD("[%s] uri=%s", __func__, uri.c_str());
free(request_uri);
free(request_mime_type);
</app-control>
<app-control>
<operation name="http://tizen.org/appcontrol/operation/view" />
- <uri name="file" />
<mime name="application/x-shockwave-flash" />
</app-control>
<app-control>
<operation name="http://tizen.org/appcontrol/operation/view" />
- <uri name="file" />
<mime name="image/svg+xml" />
</app-control>
<app-control>
<operation name="http://tizen.org/appcontrol/operation/view" />
- <uri name="file" />
<mime name="text/html" />
</app-control>
<app-control>
<operation name="http://tizen.org/appcontrol/operation/view" />
- <uri name="file" />
<mime name="application/xml" />
</app-control>
</ui-application>