Fix window.open() not working in webapp on RPi4 65/307165/5
authorsidpaswan <s.paswan@samsung.com>
Tue, 5 Mar 2024 13:34:56 +0000 (19:04 +0530)
committerBot Blink <blinkbot@samsung.com>
Thu, 7 Mar 2024 11:50:37 +0000 (11:50 +0000)
The view was not updating when Show() was called whenever
new window is launched. This patch fixes this issue by updating
the view everytime Show() is called and new view is shared back
to be overwritten over the previous view and now the tct behaviour
app works fine.

Change-Id: I0b9dc652612d7999f5f0539784e747cf6cb5205f
Signed-off-by: sidpaswan <s.paswan@samsung.com>
wrt/src/browser/wrt_native_window_off_screen.cc

index ba16195..795bb40 100644 (file)
@@ -228,11 +228,9 @@ int WRTNativeWindowOffScreen::SetRotationState(bool is_auto, int degree) {
 
 Evas_Object* WRTNativeWindowOffScreen::GetEflMainLayout(
     WRTNativeWindow* native_window) {
-  if (!efl_main_layout_) {
-    auto web_contents_impl =
-        static_cast<content::WebContentsImpl*>(native_window->GetWebContents());
-    efl_main_layout_ = web_contents_impl->GetEflMainLayout();
-  }
+  auto web_contents_impl =
+      static_cast<content::WebContentsImpl*>(native_window->GetWebContents());
+  efl_main_layout_ = web_contents_impl->GetEflMainLayout();
   return efl_main_layout_;
 }