[VD]Always reloading if force.loadDefaultURI is true 45/205645/10
authorDongHyun Song <dh81.song@samsung.com>
Wed, 8 May 2019 07:17:52 +0000 (16:17 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Mon, 10 Jun 2019 07:08:39 +0000 (07:08 +0000)
When eden_resume by preview selecting and
if wrt.isAlwaysReload() is true, the app has to be reloaded

Change-Id: I23bd91cff8ff8eab018659118b2a1685c203a2c7

wrt_app/src/runtime.js
wrt_app/src/web_application.js

index 8fcdcf1..a00c759 100755 (executable)
@@ -122,7 +122,7 @@ class Runtime {
                         return;
                     }
 
-                    let reload = loadInfo.getReload();
+                    let reload = loadInfo.getReload() || _this.webApplication.isAlwaysReload;
                     if (!reload) {
                         if (src != _this.webApplication.mainWindow.getURL())
                             reload = true;
index 3f242e9..ad29498 100755 (executable)
@@ -39,6 +39,7 @@ class WebApplication {
             this.preloadState = 'none';
         }
         this.accessiblePath = wrt.getAccessiblePath();
+        this.isAlwaysReload = wrt.isAlwaysReload();
         this.isTerminating = false;
         this.suspended = true;
         this.loadFinished = false;