From: Surya Kumar Date: Thu, 20 Jul 2023 14:41:00 +0000 (+0530) Subject: Fix RWI popup disappearing on launch X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F36%2F303436%2F1;p=platform%2Fframework%2Fweb%2Fwrtjs.git Fix RWI popup disappearing on launch 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 --- diff --git a/wrt_app/src/tv/web_application_tv.ts b/wrt_app/src/tv/web_application_tv.ts index d0b14e93..ed3b0742 100644 --- a/wrt_app/src/tv/web_application_tv.ts +++ b/wrt_app/src/tv/web_application_tv.ts @@ -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}]