[WRTjs][VD] Move clear dead mount logic to main process 95/291395/2
authorliwei <wei90727.li@samsung.com>
Fri, 14 Apr 2023 09:03:31 +0000 (17:03 +0800)
committerBot Blink <blinkbot@samsung.com>
Tue, 18 Apr 2023 04:32:01 +0000 (04:32 +0000)
When clear dead mount logic is executed, an app is launched,
then smack label is changed to app's label, then smack happen.

To avoid this smack issue, move clear dead mount logic to
main process.

Change-Id: Ibed971663998d4d7e2a0414f10419f30673e40bf
Signed-off-by: liwei <wei90727.li@samsung.com>
wrt/src/app/tv/wrt_main_delegate_tv.cc

index b82a32468dc04456851fd49bdfa79a394c19237c..d182b241b55e93a26508e48fd6d6ff5a006668e5 100644 (file)
@@ -140,7 +140,6 @@ void InitializeBeforeRealLaunch() {
   native_runtime_tv.PreloadFMS();
   native_runtime_tv.SubscribePowerState();
   native_runtime_tv.SetLocaleDir();
-  native_runtime_tv.ClearDeadMount();
 }
 
 }  // namespace
@@ -287,6 +286,9 @@ void WRTMainDelegateTV::LoaderCreated() {
   InputDeviceManager::GetInstance()->PreInitialize(win);
   SetPriorityAsIdle();
 
+  auto& native_runtime_tv = NativeWebRuntimeDelegateTV::GetInstance();
+  native_runtime_tv.ClearDeadMount();
+
   if (base::PathExists(base::FilePath("/etc/debug"))) {
     monitoring_timer.Start(
         FROM_HERE, base::TimeDelta::FromSeconds(30), this,