From 5a7f3b5ebc8533f7545dc1b031a0458e4c317280 Mon Sep 17 00:00:00 2001 From: DongHyun Song Date: Fri, 3 Sep 2021 10:57:33 +0900 Subject: [PATCH] [Service] Remove initializeExtensionOnMain Instead of calling tizen.systeminfo.getPropertyValue(), we can generate TaskQueue instance explicitly with below patch. https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/263460/ Change-Id: Ib88acbe03058a2b8149c060b800157095cec2d80 Signed-off-by: DongHyun Song --- wrt_app/service/service_manager.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/wrt_app/service/service_manager.ts b/wrt_app/service/service_manager.ts index 8e0c5bb..9f8d3e5 100644 --- a/wrt_app/service/service_manager.ts +++ b/wrt_app/service/service_manager.ts @@ -1,6 +1,5 @@ import { Worker, isMainThread } from 'worker_threads'; import { wrt } from '../browser/wrt'; -import * as XWalkExtension from '../common/wrt_xwalk_extension'; interface WorkerMap { [id: string]: any; @@ -46,19 +45,8 @@ function terminateWorker(id: string, delay: number) { workers[id].postMessage({ type: 'stop', delay }); } -let initializeExtensionOnMain = () => { - initializeExtensionOnMain = () => {}; - XWalkExtension.initialize(); - // This is workaround solution to make webapis's singleton worker, which has - // same smack label with pid's. - // It must be handled ahead of dropThreadPrivilege() - // Otherwise, smack violation might hanppen from 'libdbuspolicy'. - global.tizen.systeminfo.getPropertyValue("CPU", () => { }, () => { }); -} - export function startService(id: string, filename: string) { console.debug(`startService - ${id}`); - initializeExtensionOnMain(); if (global['serviceType'] === 'STANDALONE') { let ids = id.split(':'); let serviceId = ids[0]; -- 2.7.4