[TV] Bring cancelDialogs() forward to before-quit 53/245553/4
authorDongHyun Song <dh81.song@samsung.com>
Mon, 12 Oct 2020 08:32:23 +0000 (17:32 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Thu, 22 Oct 2020 07:52:17 +0000 (16:52 +0900)
commitada818484187c865d14400baa1b6a4308478f2cb
tree92bbfba79c2187b422018fe5ab63ed18c655e68d
parentba115a874e610dc86953a45ef7da2b0627412e46
[TV] Bring cancelDialogs() forward to before-quit

With below refactor patch,
  https://review.tizen.org/gerrit/245417/

Defered timing of closing windows, Sometimes, JS exception is
coming due to access of destroyed Object at

  wrt.tv.cancelDialogs(this.mainWindow.webContents);

Change-Id: I207c890cb84e6aaec8ed13316c39b80dd2e6cd3c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/src/web_application.ts