[M130] Fixing toolbar freeze in chrome caused during elm Window creation 16/325416/8 accepted/tizen_unified accepted/tizen_unified_x accepted/tizen/unified/20250613.092040 accepted/tizen/unified/x/20250613.100718
authorAvinash Bhojwani <avinash.b@samsung.com>
Tue, 10 Jun 2025 07:05:41 +0000 (12:35 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 11 Jun 2025 10:26:21 +0000 (10:26 +0000)
This commit skips enabling ElmObject for Chrome on mobile
profiles since it causes freezing of toolbar during window
creation at ee_ = CreateElmObject(bounds_).

Change-Id: I52f3ef0756d243db3b2a2b8d3bf4155e05de003b
Signed-off-by: Avinash Bhojwani <avinash.b@samsung.com>
tizen_src/ewk/efl_integration/command_line_efl.cc

index 6987c754f96893e1d65d089c8a82bafc68654997..9003659fb2731d31a7ccc915c5718e528fbadd28 100644 (file)
@@ -82,9 +82,15 @@ content::MainFunctionParams CommandLineEfl::GetDefaultPortParams() {
   p_command_line->AppendSwitchASCII(switches::kOzonePlatform, "efl");
   p_command_line->AppendSwitch(switches::kNoUnsandboxedZygote);
 
-  // kEnableElmObject - This enables the ElmObject path for chrome D&D support
   if (p_command_line->HasSwitch(switches::kEnableChrome)) {
+    // Enabling kEnableElmObject for TV profile only to prevent freezing of
+    // toolbar in public during window creation in CreateElmObject() in
+    // efl_window.cc.
+#if BUILDFLAG(IS_TIZEN_TV)
+    // kEnableElmObject - This enables the ElmObject path for chrome D&D
+    // support
     p_command_line->AppendSwitch(switches::kEnableElmObject);
+#endif
     p_command_line->AppendSwitch(blink::switches::kUseInternalPopupMenu);
   } else {
     p_command_line->AppendSwitch(switches::kEnableOffscreenRendering);