[M40 Merge] Use old url instead of new url when new url is empty in WrtWidget::ParseUrl
authoryh106.jung <yh106.jung@samsung.com>
Tue, 28 Apr 2015 11:12:57 +0000 (20:12 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Page loading was failed when new url was empty after
DynamicUrlParsing.
In that case, use old url as new url.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12822
Reviewed by: Antonio Gomes, Hyunhak Kim, Piotr Tworek

Change-Id: Idff2a940dd009a1f87c537a1536b8a691481a6da
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
tizen_src/ewk/efl_integration/wrt/wrtwidget.cc

index 21407a7..51f5150 100644 (file)
@@ -81,7 +81,10 @@ void WrtWidget::ParseUrl(const GURL& url, GURL& new_url) {
     std::string old_url = url.possibly_invalid_spec();
     std::string s_new_url;
     DynamicPlugin::instance().parseURL(&old_url, &s_new_url, widgetHandle_);
-    new_url = GURL(s_new_url);
+    if (s_new_url.empty())
+      new_url = url;
+    else
+      new_url = GURL(s_new_url);
   } else {
     new_url = url;
   }