From 9b8950ae8982f8f3309e36c3851f8ec7c60bf660 Mon Sep 17 00:00:00 2001 From: SangYong Park Date: Thu, 6 May 2021 10:31:33 +0900 Subject: [PATCH] [Tizen6.5 Migration] 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. Reference: https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/257882/ Change-Id: I7878594d5ba12b5300523e00262ff84d95072ba7 Signed-off-by: SangYong Park --- wrt_app/src/web_application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index f2e3d1a..31f3915 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -68,7 +68,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(); }); }); -- 2.7.4