From 8ae933fcdac47c2a423898a6a0c0d126bd020a23 Mon Sep 17 00:00:00 2001 From: zhaosy Date: Mon, 25 Sep 2023 15:57:47 +0800 Subject: [PATCH] Fix RWI is not working issue for HostedApp If launch HostedApp by command "app_launcher -w -s app_id"(AppFW add (key:__AUL_DEBUG__, value:1) to appControl), launchInspectorIfNeeded is not called because HostedApp has loaded url before app control event, which causes command is blocked and debugPort is not created. So call launchInspectorIfNeeded in this case. Change-Id: Ief5d0be1ae07c3c077f95bcf5daa88e33313a0ab Signed-off-by: zhaosy --- wrt_app/src/web_application.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 7b45f489..54e4aa35 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -330,10 +330,10 @@ export class WebApplication { loadUrl(appControl: NativeWRTjs.AppControl) { this.profileDelegate.setInitValue(appControl); this.contentSrc = appControl.getLoadInfo().getSrc(); + this.launchInspectorIfNeeded(appControl); if (this.earlyLoadedUrl === this.contentSrc) return; - this.launchInspectorIfNeeded(appControl); this.mainWindow.loadURL(this.contentSrc); this.prelaunch(this.contentSrc); if (wrt.da) { -- 2.34.1