To set app id by tid base, calls wrt.setServiceAppId() at first.
Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/261259/
Change-Id: Idc38d5b179fe71fdc264564e03aaf4a432bf2a87
Signed-off-by: DongHyun, Song <dh81.song@samsung.com>
this.funcRequestedAppcontrol = this.currentApplication.getRequestedAppControl;
this.currentApplication.getRequestedAppControl = () => {
console.log(`Routing - getRequestedAppControl() : ${this.getServiceId()}`);
this.funcRequestedAppcontrol = this.currentApplication.getRequestedAppControl;
this.currentApplication.getRequestedAppControl = () => {
console.log(`Routing - getRequestedAppControl() : ${this.getServiceId()}`);
- if (wrt.tv)
- wrt.tv.setCurrentApplication(this.getServiceId());
return this.funcRequestedAppcontrol();
}
return this.currentApplication;
return this.funcRequestedAppcontrol();
}
return this.currentApplication;
}
export function start(id: string, filename: string) {
}
export function start(id: string, filename: string) {
+ wrt.setServiceAppId(id);
XWalkExtension.initialize();
XWalkExtension.setRuntimeMessageHandler((type, data) => {
if (type === 'tizen://exit') {
XWalkExtension.initialize();
XWalkExtension.setRuntimeMessageHandler((type, data) => {
if (type === 'tizen://exit') {
console.log(`start global service file: ${filename}`);
}
console.log(`start global service file: ${filename}`);
}
- printAppControlData(id);
-
try {
let ids = id.split(':');
let serviceId = ids[0];
let packageId = global.webapis.getPackageId();
wrt.security?.dropThreadPrivilege(packageId, serviceId);
try {
let ids = id.split(':');
let serviceId = ids[0];
let packageId = global.webapis.getPackageId();
wrt.security?.dropThreadPrivilege(packageId, serviceId);
+ printAppControlData(id);
app = require(filename);
if (app.onStart !== undefined) {
app = require(filename);
if (app.onStart !== undefined) {