[M108 Migration] Exit fullscreen when the app is suspended.
[platform/framework/web/chromium-efl.git] / 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);