From 839edae3b35ef01b73d77af23f95fcc857a07ad8 Mon Sep 17 00:00:00 2001 From: Bakka Uday Kiran Date: Thu, 16 Feb 2023 12:57:31 +0530 Subject: [PATCH] [M108 Migration] Exit fullscreen when the app is suspended. This patch exits from fullscreen mode when the app is suspended. Reference: https://review.tizen.org/gerrit/c/281108 Change-Id: I5b155bd8f01dcd2c766f7f95d865f42a0d45fb6c Signed-off-by: Bakka Uday Kiran --- tizen_src/ewk/efl_integration/eweb_view.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tizen_src/ewk/efl_integration/eweb_view.cc b/tizen_src/ewk/efl_integration/eweb_view.cc index 4d4baa0..f5f3237 100644 --- a/tizen_src/ewk/efl_integration/eweb_view.cc +++ b/tizen_src/ewk/efl_integration/eweb_view.cc @@ -593,6 +593,10 @@ void EWebView::Stop() { void EWebView::Suspend() { CHECK(web_contents_); +#if BUILDFLAG(IS_TIZEN) + if (IsMobileProfile() && web_contents_->IsFullscreen()) + web_contents_->ExitFullscreen(true); +#endif RenderViewHost* rvh = web_contents_->GetRenderViewHost(); RenderFrameHost* rfh = web_contents_->GetPrimaryMainFrame(); CHECK(rvh); -- 2.7.4