From: liwei Date: Fri, 19 Jun 2020 05:13:27 +0000 (+0800) Subject: fixup! [VD] Flush cookie / local storage in finalize X-Git-Tag: submit/tizen_5.5/20200625.010053^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=256f36838dcf0763241e7c5a79d214d6fcd66e52;p=platform%2Fframework%2Fweb%2Fwrtjs.git fixup! [VD] Flush cookie / local storage in finalize In web_applicaton, should use this.flushData() to avoid there is error "flushData is not defined" Change-Id: I858268b8109becf5495d4d0415090690f35ad4c9 Signed-off-by: liwei --- diff --git a/wrt_app/src/web_application.js b/wrt_app/src/web_application.js index d5a3da47..b2ed8232 100755 --- a/wrt_app/src/web_application.js +++ b/wrt_app/src/web_application.js @@ -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;