From: zhaosy Date: Mon, 25 Sep 2023 07:57:47 +0000 (+0800) Subject: Fix RWI is not working issue for HostedApp X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a7d0a707e9f626a492cd40085fc4d7b4b69fda55;p=platform%2Fframework%2Fweb%2Fwrtjs.git 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 --- 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) {