[M108 Migration] Exit fullscreen when the app is suspended. 27/288427/4
authorBakka Uday Kiran <b.kiran@samsung.com>
Thu, 16 Feb 2023 07:27:31 +0000 (12:57 +0530)
committerBot Blink <blinkbot@samsung.com>
Mon, 20 Feb 2023 10:39:14 +0000 (10:39 +0000)
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 <b.kiran@samsung.com>
tizen_src/ewk/efl_integration/eweb_view.cc

index 4d4baa0..f5f3237 100644 (file)
@@ -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);