fixup! [VD] Flush cookie / local storage in finalize 94/236594/1
authorliwei <wei90727.li@samsung.com>
Thu, 18 Jun 2020 09:44:40 +0000 (17:44 +0800)
committerliwei <wei90727.li@samsung.com>
Thu, 18 Jun 2020 09:44:40 +0000 (17:44 +0800)
In web_applicaton, should use this.flushData(), otherwise
there is error "flushData is not defined"

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

index 5f7204f..46d83c7 100644 (file)
@@ -344,7 +344,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
@@ -382,7 +382,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;