[DA] Show native window in app-control. 06/246306/2
authorjihwankim <jh_marc.kim@samsung.com>
Wed, 28 Oct 2020 04:10:22 +0000 (13:10 +0900)
committerjihwankim <jh_marc.kim@samsung.com>
Wed, 28 Oct 2020 06:25:22 +0000 (15:25 +0900)
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 <jh_marc.kim@samsung.com>
wrt_app/src/runtime.ts

index 0f81a53c96b5436c23c3e18eed3dc85abada34c6..928d595a4fa9752996c480b8f0202a12fd51de24 100644 (file)
@@ -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') {