Fix bug regarding app service on specific scenario
authorYunchan Cho <yunchan.cho@samsung.com>
Thu, 21 Feb 2013 15:20:51 +0000 (00:20 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Thu, 21 Feb 2013 15:30:50 +0000 (00:30 +0900)
[Issue#] N/A
[Problem] when webapp is launched by specific appservice operation and then default operation is request,
          start page of the webapp is not loaded.
[Cause] ViewLogic code regarding setting start page is wrong.
[Solution] ViewLogic is modified to set always its m_startUri member to initial start page's path passed by executable.

Change-Id: Ia23ba3ef1835e44fa3092cd11b92e940e38737ba

src/view/webkit/view_logic.cpp

index 0baefef..4d3bf0c 100644 (file)
@@ -217,7 +217,7 @@ void ViewLogic::prepareView(WidgetModel* m, const std::string &startUrl)
 
     Assert(m);
     m_model = m;
-    m_startUrl = ViewModule::UriSupport::getUri(m_model, startUrl);
+    m_startUrl = startUrl;
     Assert(NULL != m_ewkContext);
     Assert(m_window);
 
@@ -605,7 +605,7 @@ void ViewLogic::setStartPage()
 {
     /* Start URI (as other uris) is now localized
      * on WebProcess side */
-    m_currentUri = m_startUrl;
+    m_currentUri = ViewModule::UriSupport::getUri(m_model, m_startUrl);
 }
 
 void ViewLogic::prepareEwkView(Evas_Object *wkView)