[WRTjs] If app is quiting, don't call show app 56/279556/2 submit/tizen/20220812.160033
authorzhaosy <shiyusy.zhao@samsung.com>
Thu, 11 Aug 2022 10:40:05 +0000 (18:40 +0800)
committerzhaosy <shiyusy.zhao@samsung.com>
Thu, 11 Aug 2022 10:54:37 +0000 (18:54 +0800)
commit5e12a00e44e13edc1bfc7bba10a1fe8b039455c1
tree60f2718eb364f3dfd27379bf94be5f471f32c552
parentf5c3d26be0a6417e8eb5288e86d134fdafa5866c
[WRTjs] If app is quiting, don't call show app

App will crash in below scenario, because all windows are closed,
so add protected code.

  App is quitting -> ready-to-show event is triggered
  -> visibility_callback -> GetMainNativeWindow

Change-Id: Ie71dc4ff71bf639a7059641a34b4819a7e97869a
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
wrt_app/src/web_application.ts