From: SangYong Park Date: Wed, 13 Feb 2019 02:31:06 +0000 (+0900) Subject: Fix crash issue by app-control X-Git-Tag: submit/tizen/20190213.122554^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b8b2130679526ecfc23a527a9df6d2a8ade1258;p=platform%2Fframework%2Fweb%2Fwrtjs.git Fix crash issue by app-control Currently reset web application when app-control event occurs after web application is created. but, this is not correct behavior and sometimes crash is occured. so ignore this case, and fix behavior after app-control event object is provided in app-control event. Change-Id: Ife0c8b01dfa13ba99ea3bc405fd854a9db3e7610 Signed-off-by: SangYong Park --- diff --git a/wrt_app/src/runtime.js b/wrt_app/src/runtime.js index 4a50762b..6b84b64c 100755 --- a/wrt_app/src/runtime.js +++ b/wrt_app/src/runtime.js @@ -79,9 +79,9 @@ class Runtime { wrt.on('app-control', function() { console.log('app-control'); if (_this.webApplication) { - console.log("Close current app"); - _this.webApplication.close(); - _this.webApplication = null; + // TODO: Reset application or emit appcontrol event + console.log("application is already created"); + return; } if (wrt.isElectronApp()) {