From: Youngcheol Kang Date: Tue, 27 Dec 2016 06:15:41 +0000 (+0900) Subject: Apply the suspend before closing webview X-Git-Tag: accepted/tizen/3.0/common/20161228.071743~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F107199%2F1;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Apply the suspend before closing webview In order to prevent crash/freeze issue, the webview should be suspended before closing. Bug: http://suprem.sec.samsung.net/jira/browse/TWF-2711 Change-Id: I0e69d0ccc12c41eae58b5989aeca317babcee780 Signed-off-by: Youngcheol Kang --- diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 49c4478..27195f3 100755 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -180,6 +180,7 @@ static Eina_Bool ExitAppIdlerCallback(void* data) { for (; it != vstack.end(); ++it) { vstack.front()->SetVisibility(false); + (*it)->Suspend(); ewk_view_page_close((*it)->evas_object()); } } @@ -278,6 +279,7 @@ WebApplication::~WebApplication() { window_->SetContent(NULL); auto it = view_stack_.begin(); for (; it != view_stack_.end(); ++it) { + (*it)->Suspend(); delete *it; } view_stack_.clear(); @@ -641,6 +643,7 @@ void WebApplication::RemoveWebViewFromStack(WebView* view) { view->SetEventListener(NULL); Terminate(); } else { + view->Suspend(); ewk_view_page_close(view->evas_object()); return; }