'on_frame_unload' plugin's callback is not invoked when webapp is terminated.
authorTaejeong Lee <taejeong.lee@samsung.com>
Tue, 5 Mar 2013 10:32:37 +0000 (19:32 +0900)
committerGerrit Code Review <gerrit2@kim11>
Tue, 5 Mar 2013 14:42:07 +0000 (23:42 +0900)
[Issue#] N/A
[Problem] 'on_frame_unload' plugin's callback is not invoked.
[Cause] stopSession() doesn't call 'on_frame_unload' function.
[Solution] changed to perform to erase a session at stopSession() only.

Refer with : https://tizendev.org/gerrit/#/c/49845/

Change-Id: I4ac7d1aa52760e206f6bf29cdfdecbbfe7d70923

src/plugin-loading/plugin_logic.cpp

index 660b8d2..c3bf0fd 100644 (file)
@@ -370,7 +370,10 @@ void PluginLogic::Impl::unloadFrame(JSGlobalContextRef context)
     }
 
     sessionIt->second->unloadFrame(context);
-    m_sessions.erase(sessionIt);
+
+    // I don't know why this session should be removed here.
+    // session list is removed also from stopSession().
+    //m_sessions.erase(sessionIt);
 }
 
 void PluginLogic::Impl::setCustomProperties(JSGlobalContextRef context,