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 <shiyusy.zhao@samsung.com>
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) {