From: SangYong Park Date: Thu, 6 May 2021 01:31:33 +0000 (+0900) Subject: Prevent window showing during termination X-Git-Tag: submit/tizen_6.0/20210506.083409^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86d30be1d01caa8c37a2ccf4378c328c385799cf;p=platform%2Fframework%2Fweb%2Fwrtjs.git Prevent window showing during termination Show previous window when current window was closed. but, window showing causes invalid memory access in termination. so, prevent window showing during app termination. Change-Id: I7878594d5ba12b5300523e00262ff84d95072ba7 Signed-off-by: SangYong Park --- diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 88882898..7c392aa5 100755 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -84,7 +84,7 @@ export class WebApplication { console.log(`window closed : #${this.windowList.length}`); let index = this.windowList.indexOf(window); this.windowList.splice(index, 1); - if (index === this.windowList.length && this.windowList.length > 0) + if (!this.inQuit && index === this.windowList.length && this.windowList.length > 0) this.windowList[this.windowList.length - 1].show(); }); });