Unset webkit context callbacks on exit of webprocess
authorYunchan Cho <yunchan.cho@samsung.com>
Sat, 26 Jan 2013 13:54:46 +0000 (22:54 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Sat, 26 Jan 2013 14:04:14 +0000 (23:04 +0900)
[Issue#]       N_SE-23178
[Bug]          The crash occurs on exit of webprocess despite of normal exit or abnormal exit
[Cause]        Two callbacks of webkit context are not unset
[Solution]     context callback regarding vibration and download are unset on exit of webprocess

Change-Id: I2845e4b42f9de1b0433b455e77c1a0b95bd23a45

src/view/webkit/view_logic.cpp

index 48263ad..49d07e8 100755 (executable)
@@ -507,6 +507,15 @@ void ViewLogic::finalizeEwkContext()
             m_ewkContext,
             NULL,
             NULL);
+    ewk_context_did_start_download_callback_set(
+            m_ewkContext,
+            NULL,
+            NULL);
+    ewk_context_vibration_client_callbacks_set(
+            m_ewkContext,
+            NULL,
+            NULL,
+            NULL);
 //    ewk_context_delete(m_ewkContext);
 //    m_ewkContext = 0;
 }