From: Yunchan Cho Date: Thu, 21 Mar 2013 13:29:41 +0000 (+0900) Subject: Support remote url as PD's start page X-Git-Tag: accepted/tizen_2.1/20130425.023916~18^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ce66c21fc3dc5e816bf28a83b7ef938635f15e2;p=framework%2Fweb%2Fwrt-installer.git Support remote url as PD's start page [Issue#] N/A [Problem] If PD's start page is remote url, improper path is written to manifest(xml) [Cause] wrt-installer doesn't consider that PD's start page is remote [Solution] scheme of PD's start page is checked, and then if the scheme is http(s), remote url is written to manifest Change-Id: Id1ec90355160509059c0307911c727f3fe0e124a --- diff --git a/src/jobs/widget_install/task_manifest_file.cpp b/src/jobs/widget_install/task_manifest_file.cpp index ce8b844..0c66504 100644 --- a/src/jobs/widget_install/task_manifest_file.cpp +++ b/src/jobs/widget_install/task_manifest_file.cpp @@ -963,7 +963,13 @@ void TaskManifestFile::setLiveBoxInfo(Manifest& manifest) && !ConfigInfo->m_boxInfo.m_pdWidth.empty() && !ConfigInfo->m_boxInfo.m_pdHeight.empty()) { - box.pdSrc = defaultLocale + ConfigInfo->m_boxInfo.m_pdSrc; + if ((0 == ConfigInfo->m_boxInfo.m_pdSrc.compare(0, 4, L"http")) + || (0 == ConfigInfo->m_boxInfo.m_pdSrc.compare(0, 5, L"https"))) + { + box.pdSrc = ConfigInfo->m_boxInfo.m_pdSrc; + } else { + box.pdSrc = defaultLocale + ConfigInfo->m_boxInfo.m_pdSrc; + } box.pdWidth = ConfigInfo->m_boxInfo.m_pdWidth; box.pdHeight = ConfigInfo->m_boxInfo.m_pdHeight; }