Support remote url as PD's start page
authorYunchan Cho <yunchan.cho@samsung.com>
Thu, 21 Mar 2013 13:29:41 +0000 (22:29 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Thu, 21 Mar 2013 13:31:23 +0000 (22:31 +0900)
[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

src/jobs/widget_install/task_manifest_file.cpp

index ce8b844..0c66504 100644 (file)
@@ -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;
             }