From 619d81b26ab3b34da3f93cbd965405a2f67713c8 Mon Sep 17 00:00:00 2001 From: liwei Date: Mon, 13 May 2019 18:24:19 +0800 Subject: [PATCH] When app preload, vconf status should be set to "preload" 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 --- wrt_app/src/web_application.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index 7d2212cc..81e3b4d5 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -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'); } }); } -- 2.34.1