When app preload, vconf status should be set to "preload" 39/206039/4
authorliwei <wei90727.li@samsung.com>
Mon, 13 May 2019 10:24:19 +0000 (18:24 +0800)
committerliwei <wei90727.li@samsung.com>
Wed, 15 May 2019 01:20:04 +0000 (09:20 +0800)
When app preload, "preload" status shoule be set to
"rtc/memory/WebApp/**/",other moudle(webappservice)
will use this status.

Dependent link:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/206103/

Change-Id: Iafed1570c06ee3869474ed62c3db3b76187dd4fd
Signed-off-by: liwei <wei90727.li@samsung.com>
wrt_app/src/web_application.js

index 7d2212c..81e3b4d 100755 (executable)
@@ -206,11 +206,12 @@ class WebApplication {
             console.log('webContents did-start-loading');
         });
         this.mainWindow.webContents.on('did-finish-load', function() {
-            console.log('webContents did-finish-load');
+            console.log(`webContents did-finish-load preloadState: ${self.preloadState}`);
             if (wrt.isIMEWebApp())
                 self.activateIMEWebHelperClient();
-            if (self.preloadState == 'readyToShow' || self.preloadState == 'preload') {
+            if (self.preloadState === 'readyToShow' || self.preloadState === 'preload') {
                 self.suspend();
+                wrt.notifyAppStatus('preload');
             }
         });
     }