[Service][VD] move mount/umount to JS side 36/253836/5
authorDongHyun Song <dh81.song@samsung.com>
Thu, 18 Feb 2021 09:50:38 +0000 (18:50 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Fri, 19 Feb 2021 02:02:14 +0000 (11:02 +0900)
Explicitly handles mount/umount on JS side to simplify logic of
WRTServiceManager.

Related chromium-efl patch:
  https://review.tizen.org/gerrit/253835/

Change-Id: I89874f752d8113d6582a238acce9b0b328b635ab
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/common/service_runner.ts

index 3522d75..13baa02 100644 (file)
@@ -108,6 +108,9 @@ export function stop(id: string) {
 
 function run() {
   let id = workerData.id;
+  // FIXME: this should be 'wrt.tv?.serviceMount(id)' after Tizen 6.5 release
+  (wrt.tv as any)?.serviceMount(id);
+
   let filename = workerData.filename;
   start(id, filename);
 
@@ -120,6 +123,7 @@ function run() {
       setTimeout(() => {
         XWalkExtension.cleanup();
         parentPort?.postMessage("will-terminate");
+        (wrt.tv as any)?.serviceUmount(id);
       }, message.delay);
     }
   });