Add reset method during initializing webkit bundle
authorTaejeong Lee <taejeong.lee@samsung.com>
Tue, 15 Jan 2013 15:59:33 +0000 (00:59 +0900)
committerGerrit Code Review <gerrit2@kim11>
Wed, 16 Jan 2013 02:24:55 +0000 (11:24 +0900)
[Issue#] JIRA(#N_SE-20674)
[Problem] Event handler isn't called
[Cause] After add commit for enhancement launching time,
event handler doesn't work.
Root cause is that pipe in the event handler is copyed during forking.
This cause occurred that event sends to parent process(UI)
even event is created by child process.
[Solution] Add reset method for event handler during
initializing webkit bundle.
[SCMRequest] must be imported with wrt-commons
https://tizendev.org/gerrit/#/c/32544/

Change-Id: I404d3a0051115c9c03d9cb7dd7b175156275cea4

src/view/webkit/bundles/wrt-wk2-bundle.cpp

index ddd37b7..fa3f957 100644 (file)
@@ -52,6 +52,7 @@
 #include <dpl/wrt-dao-ro/widget_dao_read_only.h>
 #include <dpl/utils/mime_type_utils.h>
 #include <dpl/localization/LanguageTagsProvider.h>
+#include <dpl/event/main_event_dispatcher.h>
 
 #include <wrt_plugin_module.h>
 #include <profiling_util.h>
@@ -996,6 +997,9 @@ extern "C"
         DPL::Log::LogSystemSingleton::Instance().SetTag("WRT-BUNDLE");
         LogDebug("Bundle initialized");
 
+        DPL::Event::GetMainEventDispatcherInstance().ResetCrossEventCallHandler();
+        LogDebug("ResetCrossEventCallHandler()");
+
         static Bundle s_bundle = Bundle(bundle);
 
         WKBundleClient client = {