From: jihwankim Date: Wed, 28 Oct 2020 04:10:22 +0000 (+0900) Subject: [DA] Show native window in app-control. X-Git-Tag: submit/tizen/20201030.030917^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45bec9aac1c754eaa7ffbe120b322972e9d754b5;p=platform%2Fframework%2Fweb%2Fwrtjs.git [DA] Show native window in app-control. Now, native window is shown when 'ready-to-show' is called. This is an intentional operation using an electron api. But because of this, there is a VOC that the launch speed of the web app seems to be slow. DA decided that it would be better to show the window if it is not ready. (Even if it is an empty screen) So call WebApplication.show in app-control callback. This patch uses DAExtension api, so this should be applied with or after the patch below. https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/246305/ Change-Id: I5a872ab0408b739d86890fc03c942c927160fdc8 Signed-off-by: jihwankim --- diff --git a/wrt_app/src/runtime.ts b/wrt_app/src/runtime.ts index 0f81a53c..928d595a 100644 --- a/wrt_app/src/runtime.ts +++ b/wrt_app/src/runtime.ts @@ -114,6 +114,9 @@ class Runtime { } this.webApplication.mainWindow.loadURL(src); this.webApplication.prelaunch(src); + if (wrt.da) { + this.webApplication.show(); + } } else { console.log('Handling app-control event'); if (this.webApplication.preloadStatus == 'readyToShow') {