Fixed crash issue occurred when terminating App using HOME Key 45/189345/2 accepted/tizen/unified/20180917.135141 submit/tizen/20180917.102309
authorjaekuk, lee <juku1999@samsung.com>
Mon, 17 Sep 2018 06:45:55 +0000 (15:45 +0900)
committerjaekuk lee <juku1999@samsung.com>
Mon, 17 Sep 2018 07:31:12 +0000 (07:31 +0000)
To resolve the issue that ecore_idler_add() isn't called,
Add ecore timer checking plugin_session_count.

Change-Id: I6e95f205eb79bf3eac8472e5d77af44788d0ed09
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
runtime/browser/web_application.cc

index 9039ca7..c74d4be 100755 (executable)
@@ -801,12 +801,6 @@ void WebApplication::RemoveWebViewFromStack(WebView* view) {
     auto extension_server = XWalkExtensionServer::GetInstance();
     LOGGER(DEBUG) << "Shutdown extension server";
     extension_server->Shutdown();
-#if !defined(TIZEN_PRODUCT_TV)
-    // Hide the window object for preventing the white screen
-    // during termination of web application.
-    evas_object_hide(window_->evas_object());
-    Exit();
-#endif
   } else if (current != view_stack_.front()) {
     view_stack_.front()->SetVisibility(true);
     window_->SetContent(view_stack_.front()->evas_object());
@@ -844,7 +838,6 @@ void WebApplication::OnClosedWebView(WebView* view) {
   view->ReplyToJavascriptDialog();
   RemoveWebViewFromStack(view);
 
-#if defined(TIZEN_PRODUCT_TV)
   LOGGER(DEBUG) << "plugin_session_count : " <<
       XWalkExtensionRendererController::plugin_session_count;
 
@@ -857,7 +850,6 @@ void WebApplication::OnClosedWebView(WebView* view) {
       CheckPluginSession, &session_counter);
   if (!session_counter.timer)
     LOGGER(ERROR) << "It's failed to create session_counter timer";
-#endif
 }
 
 void WebApplication::OnReceivedWrtMessage(WebView* view,