summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyeKyoung Hwang <cookie@samsung.com>2017-04-05 15:46:33 +0900
committerPawel Niemirski <p.niemirski@samsung.com>2017-05-10 08:22:16 +0000
commitc3b0fa92ed3aa6db393fc83007d2dd88e4d28d8a (patch)
tree37936ebc7205fe646b273f378cfffbd9fd77352a
parentebe2fde4132093d89a9e0ca226ef679147698911 (diff)
downloadbrowser-c3b0fa92ed3aa6db393fc83007d2dd88e4d28d8a.tar.gz
browser-c3b0fa92ed3aa6db393fc83007d2dd88e4d28d8a.tar.bz2
browser-c3b0fa92ed3aa6db393fc83007d2dd88e4d28d8a.zip
Fix crash when making PWA Icon
Due to dummy implementation of ewk_manifest_push_sender_id_get(), this API can return null which results in a crash when making PWA icon. To prevent browser from crash we replace null with empty string on the browser side. Bug: http://suprem.sec.samsung.net/jira/browse/RWASP-1130 Change-Id: I6ac6c096e693d336555c0b342b3f6da9761b0789 Signed-off-by: Pawel Niemirski <p.niemirski@samsung.com>
-rwxr-xr-xservices/WebEngineService/WebView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/WebEngineService/WebView.cpp b/services/WebEngineService/WebView.cpp
index a29e4ac..d0c48f3 100755
--- a/services/WebEngineService/WebView.cpp
+++ b/services/WebEngineService/WebView.cpp
@@ -778,7 +778,7 @@ void WebView::__setManifestData(Evas_Object *view, Ewk_View_Request_Manifest *ma
if (manifest) {
const char *tmp;
- self->m_manifestData.m_push_id = ewk_manifest_push_sender_id_get(manifest);
+ self->m_manifestData.m_push_id = ((tmp = ewk_manifest_push_sender_id_get(manifest)) ? tmp : "");
self->m_manifestData.short_name = ((tmp = ewk_manifest_short_name_get(manifest)) ? tmp : "");
self->m_manifestData.name = ((tmp = ewk_manifest_name_get(manifest)) ? tmp : "");
self->m_manifestData.start_url = ((tmp = ewk_manifest_start_url_get(manifest)) ? tmp : "");