fixup! [VD] Flush cookie / local storage in finalize 55/236655/1 accepted/tizen/5.5/unified/20200625.165516 submit/tizen_5.5/20200625.010053
authorliwei <wei90727.li@samsung.com>
Fri, 19 Jun 2020 05:13:27 +0000 (13:13 +0800)
committerliwei <wei90727.li@samsung.com>
Fri, 19 Jun 2020 05:13:27 +0000 (13:13 +0800)
In web_applicaton, should use this.flushData() to avoid
there is error "flushData is not defined"

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

index d5a3da4750a79d286fd8907c348e2f3955d3d20a..b2ed8232c865d99069aa85dc9efb9d2067b7f7f4 100755 (executable)
@@ -328,7 +328,7 @@ class WebApplication {
         }
         this.suspended = true;
         this.windowList[this.windowList.length - 1].hide();
-        flushData();
+        this.flushData();
         if (!this.backgroundRunnable()) {
             if (!this.multitaskingSupport) {
                 // FIXME : terminate app after visibilitychange event handling
@@ -366,7 +366,7 @@ class WebApplication {
             this.inspectorSrc = '';
             wrt.tv.cancelDialogs(this.mainWindow.webContents);
         }
-        flushData();
+        this.flushData();
         if (this.debugPort) {
             console.log('stop inspector server');
             this.debugPort = 0;