Fix FullScreen crash in Webapp 11/309611/3 accepted/tizen/unified/20240415.170305 accepted/tizen/unified/x/20240416.022928
authorSuhaspoornachandra <s.poornachan@samsung.com>
Fri, 12 Apr 2024 11:44:31 +0000 (17:14 +0530)
committerBot Blink <blinkbot@samsung.com>
Sat, 13 Apr 2024 06:41:15 +0000 (06:41 +0000)
This patch fixes crash observed in webapp when FullScreen request was
called.

Change-Id: Idde2dc67627b5e09fd47c8204f171895d506010b
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
chrome/browser/ui/exclusive_access/fullscreen_controller.cc

index 60db87f..ed6ba6f 100644 (file)
@@ -479,7 +479,7 @@ void FullscreenController::EnterFullscreenModeInternal(
     FullscreenInternalOption option,
     content::RenderFrameHost* requesting_frame,
     int64_t display_id) {
-#if !BUILDFLAG(IS_MAC)
+#if !BUILDFLAG(IS_MAC) && !defined(ENABLE_WRT_JS)
   // Do not enter fullscreen mode if disallowed by pref. This prevents the user
   // from manually entering fullscreen mode and also disables kiosk mode on
   // desktop platforms.