When the mime is empty, the callback should be released to prevent
the crash issue.
Bug: http://suprem.sec.samsung.net/jira/browse/TSAM-11333
Change-Id: Iaec07731e0c4a092cce161f3d39dc4bac18c2d22
Signed-off-by: Youngcheol Kang <ychul.kang@samsung.com>
return view->mime_set_cb_(url, mime, new_mime, data);
};
ewk_context_mime_override_callback_set(context_, mime_override_cb, this);
+ } else {
+ // In order to prevent crash issue, the callback should be released
+ // when the mime is empty.
+ ewk_context_mime_override_callback_set(context_, nullptr, nullptr);
}
ewk_view_url_set(ewk_view_, url.c_str());
}