[VD]changing the function related to preloading 17/265517/1 submit/tizen/20211021.160039
authoryman.son <yman.son@samsung.com>
Thu, 21 Oct 2021 08:13:34 +0000 (17:13 +0900)
committeryman.son <yman.son@samsung.com>
Thu, 21 Oct 2021 08:13:34 +0000 (17:13 +0900)
change preloaded app is not terminated by multitasking.
Policy changes to the "B.TV" app are required.

Change-Id: Idd59094bc7d4098def2f4a02b9ecef2defa1d87f
Signed-off-by: yman.son <yman.son@samsung.com>
wrt_app/src/web_application.ts

index 1ba13d7..b891413 100755 (executable)
@@ -326,7 +326,7 @@ export class WebApplication {
     }
     if (this.isPausable()) {
       this.windowList.forEach((window) => window.setEnabled(false));
-      if (!this.multitaskingSupport) {
+      if (!this.multitaskingSupport && !this.profileDelegate.isPreloading()) {
         setTimeout(() => {
           console.log('multitasking is not supported; quitting app')
           app.quit();