Assure proper termination using context session 66/108966/5 accepted/tizen_3.0.m2_common accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/common/20170111.094130 accepted/tizen/3.0.m2/mobile/20170111.043120 accepted/tizen/3.0.m2/tv/20170111.043138 accepted/tizen/3.0.m2/wearable/20170111.043201 accepted/tizen/3.0/common/20170110.125811 accepted/tizen/3.0/ivi/20170110.044431 accepted/tizen/3.0/mobile/20170110.044338 accepted/tizen/3.0/tv/20170110.044355 accepted/tizen/3.0/wearable/20170110.044412 submit/tizen_3.0.m2/20170109.152207 submit/tizen_3.0.m2/20170111.004805 submit/tizen_3.0/20170109.151907
authorYoungsoo Choi <kenshin.choi@samsung.com>
Wed, 4 Jan 2017 09:01:10 +0000 (18:01 +0900)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 9 Jan 2017 15:11:11 +0000 (00:11 +0900)
commitccb5936a271fc9502fb3ba8b82373fa92d99df80
tree11ff609c841d4b246ae0cda9d163cbc5a77ce7f8
parent88e577caa2f01c84b3ff6f7a5643aaeb7b3a3435
Assure proper termination using context session

Current main loop quits when closing window callback is called.
Btw, it does not assure proper termination of changing watch face
because context session stops too early and callback can not be called
and then dead lock happens.

So, this CL extends the main loop until all the context sessions are finished
and covers following termination scenarios.

* h/w back key
* exit pop up menu
* exit command |pkgcmd -k|
* uninstall command |pkgcmd -u| while webapp runs
* changing watch face

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

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