[VD] Flush cookie / local storage in finalize 11/236111/1 accepted/tizen/unified/20200619.004621 submit/tizen/20200618.072514
authorliwei <wei90727.li@samsung.com>
Mon, 15 Jun 2020 02:50:28 +0000 (10:50 +0800)
committerliwei <wei90727.li@samsung.com>
Mon, 15 Jun 2020 02:50:28 +0000 (10:50 +0800)
commit8d865a344fa856b9d3c185e7c975b21677919d34
treefc47bbeff580ce7ba36b9830712d672ab5d3c10f
parent9810b16d6bdf35574ec518955838eac98763afd1
[VD] Flush cookie / local storage in finalize

When app call tizen.application.exit() directly, WRT will get "before_quit"
firstly, then set webapplciaton to null(_this.webApplication = null;), then
when WRT get "suspend" event, bcz webapplication is null, WRT will not flush
cookie / local storage.

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