Fix RWI popup disappearing on launch 36/303436/1
authorSurya Kumar <surya.kumar7@samsung.com>
Thu, 20 Jul 2023 14:41:00 +0000 (20:11 +0530)
committerSangYong Park <sy302.park@samsung.com>
Thu, 28 Dec 2023 02:09:58 +0000 (11:09 +0900)
On showing popup when window isn't shown yet, and WRT receives
subsequent Resume() call, the displayed popup vanishes leaving
a black screen. This change ensures popup is shown along with
the window.

Change-Id: I0838e18ab7b3102787b5593f6cfd53ad32ff827a
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
wrt_app/src/tv/web_application_tv.ts

index d0b14e93de78e9ccf6470947cd1ebde107010af9..ed3b0742745ff7d55ea0438be2f8d6608da07433 100644 (file)
@@ -99,6 +99,10 @@ for (var i=0; i < window.frames.length; i++)
 
     console.log('WebApplication : showInspectorGuide');
     this.showInspectorGuide = () => { }; // call once
+    if (!this.webApplication.mainWindow.isVisible()) {
+      console.log('Force showing window for RWI');
+      this.webApplication.show();
+    }
     const message = `${this.webApplication.debugPort.toString()}
 Fast RWI is used, [about:blank] is loaded fist instead of
 [${this.inspectorSrc}]