1.Fix port not found issue when service app do messageport
removeMessagePortListener.
2.Add debug log for refineFilesystemApis
Refer to:
https://review.tizen.org/gerrit/c/platform/framework/web/wrtjs/+/320142
https://review.tizen.org/gerrit/c/platform/framework/web/wrtjs/+/318291
Change-Id: I1b5778fcfffdbbddcdda6694d95d1eb86114fc95
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
let virtualPath = ['wgt-private', 'wgt-private-tmp', 'wgt-package'];
virtualPath.forEach(name => {
let realPath = wrt.resolveVirtualRoot(this.id, name);
+ console.debug(`Routing - refineFilesystemApis() : ${realPath}`);
global.tizen.filesystem.setVirtualPath(name, realPath, 'INTERVAL', 'MOUNTED');
});
} catch (e) {
remoteMessagePort = LocalMessagePort.funcRemoteMessagePort(remoteAppId, remotePort);
return listener(message, remoteMessagePort);
}
- this.messagePortObj.addMessagePortListener(listenerWrapper);
+ return this.messagePortObj.addMessagePortListener(listenerWrapper);
}
removeMessagePortListener(watchId: any) {