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>
void EWebView::Suspend() {
CHECK(web_contents_);
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);
RenderViewHost* rvh = web_contents_->GetRenderViewHost();
RenderFrameHost* rfh = web_contents_->GetPrimaryMainFrame();
CHECK(rvh);