Fix bug that title is treated as url.
authorSangYong Park <sy302.park@samsung.com>
Wed, 5 Sep 2012 11:29:08 +0000 (20:29 +0900)
committerSangYong Park <sy302.park@samsung.com>
Wed, 5 Sep 2012 11:29:08 +0000 (20:29 +0900)
[Title] Fix bug that title is treated as url.
[Issue#] N_SE-8931
[Problem] ewk_view_uri_get() returns title
[Cause] title was copied to url in ewkViewSetTitleAndURL()
[Solution] change title to url

Change-Id: I44f5eda040ea95e98f6772ef5bf37f3273013c3b

Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

index 6411f9e..cf97a3a 100755 (executable)
@@ -1920,7 +1920,7 @@ void ewkViewSetTitleAndURL(Evas_Object* ewkView, const char* title, const char*
 
     if (title && eina_stringshare_replace(&priv->title, title))
         evas_object_smart_callback_call(ewkView, "title,changed", static_cast<void*>(const_cast<char*>(priv->title)));
-    if (url && eina_stringshare_replace(&priv->uri, title))
+    if (url && eina_stringshare_replace(&priv->uri, url))
         evas_object_smart_callback_call(ewkView, "uri,changed", static_cast<void*>(const_cast<char*>(priv->uri)));
 }