Refactor for unifying fragmented termination sequences 37/108437/7
authorYoungsoo Choi <kenshin.choi@samsung.com>
Wed, 4 Jan 2017 09:01:10 +0000 (18:01 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Fri, 6 Jan 2017 00:58:46 +0000 (09:58 +0900)
commit4bd9dac4a614ade1d3f3171cba62a67b73341ea8
treedb9746b9efb02beeb20355e0c656733cf19b9c08
parent8b10d34491ddfcc7cf5fd3d75aa873e070c2ea7e
Refactor for unifying fragmented termination sequences

There have been fragmented termination sequences of following exit scenarios.
* h/w back key
* exit pop up menu
* exit command |pkgcmd -k|
* uninstall command |pkgcmd -u| while webapp runs

This CL makes those termination sequences go through a extended main loop.
Also, removing view stacks is only handled from closing window callback and
then the extended main loop quits to terminate webapp.

The extneded main loop provides enough time for termination of renderer thread
and prevents dead lock.

Bug: http://suprem.sec.samsung.net/jira/browse/TWF-2765

Change-Id: I0f6e8092bd092c07a841c6cab20be22c67fe4928
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
runtime/browser/runtime_process.cc
runtime/browser/web_application.cc
runtime/browser/web_application.h