Stop Inspector when all windows are closed 04/280604/3 submit/tizen/20220923.160021
authorliwei <wei90727.li@samsung.com>
Thu, 1 Sep 2022 05:36:43 +0000 (13:36 +0800)
committerliwei <wei90727.li@samsung.com>
Thu, 22 Sep 2022 11:04:07 +0000 (19:04 +0800)
commit808bcf8f8b5f2ec7f4dd49345647e9f0641de1c1
tree0a01429bcba3daa7d961b3a87c9051851e43fd35
parent0573ec1322b5cd25e3c9eb55cf06a18f78471c13
Stop Inspector when all windows are closed

Some apps(ex. hulu) will call window.close() when terminate, it will cause
'before-quit' invoked after 'window-all-closed'. In current logic, WRT stop
inspector when receive 'before-quit' event, but at this case, any wrt api
cannot be called successfully(I think it's related with window is closed firstly),
so stop inspector in 'window-all-closed' event, then RWI cannot stopped properly and
RWI port will be released normally

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