platform/framework/web/wrtjs.git
2 years agoPrevent creating script context for electron isolation feature 65/275265/1 submit/tizen/20220520.160022
SangYong Park [Thu, 19 May 2022 07:04:55 +0000 (16:04 +0900)]
Prevent creating script context for electron isolation feature

Electron has script isolation feature, and it is enabled by default.
Script isolation feature create new script context. wrtjs does not
need script isolation, so turn off it for memory.

Change-Id: I77d9fd97e8ee874a328f2e24c7a081c17cbf940b
Signed-off-by: SangYong Park <sy302.park@samsung.com>
2 years ago[VD] Refactors for background launch 94/272194/9 submit/tizen/20220519.160023
DongHyun Song [Fri, 11 Mar 2022 03:50:21 +0000 (12:50 +0900)]
[VD] Refactors for background launch

Refactors conditions regarding background launch related to
clearify logics.

Change-Id: If4e222a7212d0c5e22d55b5d393f43fb9db0079e
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years agoMerge "[SignalingServer] Update latest offload.js" into tizen
Hye Kyoung Hwang [Thu, 19 May 2022 00:32:06 +0000 (00:32 +0000)]
Merge "[SignalingServer] Update latest offload.js" into tizen

2 years agoMerge "[Service] Skip start service when app terminate & Check wrt-service launcher... submit/tizen/20220513.160022
DongHyun Song [Fri, 13 May 2022 05:51:50 +0000 (05:51 +0000)]
Merge "[Service] Skip start service when app terminate & Check wrt-service launcher to 4s" into tizen

2 years agoMerge "[DeviceHome] Support one time pincode" into tizen
Youngman Son [Fri, 13 May 2022 04:14:19 +0000 (04:14 +0000)]
Merge "[DeviceHome] Support one time pincode" into tizen

2 years ago[Service] Skip start service when app terminate & Check wrt-service launcher to 4s 19/274919/3
liwei [Thu, 12 May 2022 05:41:21 +0000 (13:41 +0800)]
[Service] Skip start service when app terminate & Check wrt-service launcher to 4s

Now an issue happen, service app is launched for a little time, then
wrt-service-launcher is killed by unknown reason, then wrt-service
start to stop, guess xwalk-extension is not stopped completely, at the
same time, service app is reqeusting preview, then crash happen, so
do below changes.

1. Skip start service when app is terminating.
2. Check wrt-service-launcher from 2s to 4s.

Change-Id: I4a7c4b946a89d1a1f6a46903e3582a1d91248888
Signed-off-by: liwei <wei90727.li@samsung.com>
2 years ago[SignalingServer] Update latest offload.js 56/274856/5
Insoon Kim [Wed, 11 May 2022 03:55:20 +0000 (12:55 +0900)]
[SignalingServer] Update latest offload.js

Disable the wildcard certificate and domain name by default for public

Change-Id: Ie8eec92688736c421f32a1f8b092d6c98833df4e
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
2 years ago[DeviceHome] Remove out-date comments 72/274772/1
singa2000 [Mon, 9 May 2022 06:50:21 +0000 (15:50 +0900)]
[DeviceHome] Remove out-date comments

Now encryption is enough, and it's no longer necessary to encrypt once more with ciper.
It fixed the SSMS 220505-0001 issue.

Change-Id: Ic5d5724810fe66a9bc9f790cccf9226d4183e26a
Signed-off-by: singa2000 <cookie@samsung.com>
2 years ago[DeviceHome] Support one time pincode 14/274114/8
DongHyun Song [Thu, 21 Apr 2022 11:13:37 +0000 (20:13 +0900)]
[DeviceHome] Support one time pincode

If the 'url' contains a query string '?p=', then it try to verify
OTP to DeviceHome server.
 - this OTP is only alive within 60s.

Change-Id: Ic8c22747015f070e1ff5472b94727dc5a2b549b6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome] Remove the wrong parentheses to fix the script 57/274757/2 submit/tizen/20220509.160020
Hunseop Jeong [Mon, 9 May 2022 04:52:39 +0000 (13:52 +0900)]
[DeviceHome] Remove the wrong parentheses to fix the script

Change-Id: I2f73e84ebaa225a3b0404b5118114ea774d08cfd
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
2 years ago[SignalingServer] Move the offload.js to the shared space 32/274432/3 submit/tizen/20220504.160013
Hunseop Jeong [Thu, 28 Apr 2022 08:15:41 +0000 (17:15 +0900)]
[SignalingServer] Move the offload.js to the shared space

Move the offload.js to the shared/res/ to access the offload.js
from the xwalk extension.

Change-Id: If4b802c99e40de23a198cee173c9f5969a371599
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
2 years ago[Service] Support webapis.getAppIdsByMetadata() 16/274416/3 submit/tizen/20220428.160021
DongHyun Song [Thu, 28 Apr 2022 04:49:53 +0000 (13:49 +0900)]
[Service] Support webapis.getAppIdsByMetadata()

This new API will be used to find proper apps quickly more than
tizen.application.getAppsInfo()

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/274342/

Change-Id: Ibe8c2a279943cc85570f057e38721aa5d4b95729
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome] Refactors EventSource handler 15/274115/8
DongHyun Song [Thu, 21 Apr 2022 11:21:51 +0000 (20:21 +0900)]
[DeviceHome] Refactors EventSource handler

Refactors EventSource handlers for multiple purpose.

 - updateapp-list: update app list when install/uninstall
 - redirect-url: request to open the URL
 - remote-message: 'remotemessage' CustomEvent
 - ime-event: handle for remote input

Change-Id: I637bcdc17ed8fd3ed7b69b93d50a5c431a385d35
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years agoMerge "[SignalingServer] Enable the d2d_offload flag" into tizen
DongHyun Song [Thu, 28 Apr 2022 05:00:57 +0000 (05:00 +0000)]
Merge "[SignalingServer] Enable the d2d_offload flag" into tizen

2 years agoMerge "[DeviceHome][VD] Support preview display on client" into tizen
Youngman Son [Thu, 28 Apr 2022 00:18:20 +0000 (00:18 +0000)]
Merge "[DeviceHome][VD] Support preview display on client" into tizen

2 years ago[SignalingServer] Enable the d2d_offload flag 25/274325/2
Hunseop Jeong [Tue, 26 Apr 2022 07:50:50 +0000 (16:50 +0900)]
[SignalingServer] Enable the d2d_offload flag

Update the signaling server code and define the service
type for the signaling server to run the service independently.

Change-Id: Ib69f48392b00734231a8f0f2c35f0feb87f75c12
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
2 years agoMerge "[DeviceHome] Fix crash due to empty appid" into tizen accepted/tizen/unified/20220429.003344 submit/tizen/20220427.160020
SangYong Park [Wed, 27 Apr 2022 00:52:34 +0000 (00:52 +0000)]
Merge "[DeviceHome] Fix crash due to empty appid" into tizen

2 years ago[DeviceHome][VD] Support preview display on client 13/274113/5
DongHyun Song [Thu, 21 Apr 2022 11:10:38 +0000 (20:10 +0900)]
[DeviceHome][VD] Support preview display on client

When there are d2dservice apps having preview data,
 - 'click' event is for listing preview data
 - 'dblclick' event is for opening the UI offloading page

For the deeplink, when the preview icon is clicked on client side,
then it will request appcontrol with 'action' parameter as 'PAYLAOAD'

Parent patch:
https://review.tizen.org/gerrit/274112/

Change-Id: I8c367802aed101644f6d086a9e30ae9dcc6f7eae
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome][VD] Add 'action' parameter for deeplink 12/274112/2 submit/tizen/20220426.160022
DongHyun Song [Thu, 21 Apr 2022 11:06:18 +0000 (20:06 +0900)]
[DeviceHome][VD] Add 'action' parameter for deeplink

If there is 'action' parameter, then, it will be a 'PAYLOAD' data
for deeplink.

Change-Id: Ic7f3414364945f0a46b2e74274924cfcdc8a9b31
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome] Fix crash due to empty appid 80/274280/2
Surya Kumar [Mon, 25 Apr 2022 14:46:36 +0000 (20:16 +0530)]
[DeviceHome] Fix crash due to empty appid

Platform team has reported crashes on wrt calling webapis
with empty appid, which happens on installation of resource
packages without app. This change safeguards such instances.

Change-Id: Ied8e3f6f7253aa1bc38421e296842c8c09d54e6c
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
2 years agoMerge "[DeviceHome][VD] Disable to build DeviceHome" into tizen submit/tizen/20220425.160020
Youngman Son [Mon, 25 Apr 2022 09:17:09 +0000 (09:17 +0000)]
Merge "[DeviceHome][VD] Disable to build DeviceHome" into tizen

2 years agoMerge "[DeviceHome][VD] Fix setting the 'wsa' path" into tizen
SangYong Park [Mon, 25 Apr 2022 06:05:49 +0000 (06:05 +0000)]
Merge "[DeviceHome][VD] Fix setting the 'wsa' path" into tizen

2 years ago[DeviceHome] Seperate TV service with service_tv.js 33/273933/7 submit/tizen/20220422.160021
DongHyun Song [Mon, 18 Apr 2022 08:00:45 +0000 (17:00 +0900)]
[DeviceHome] Seperate TV service with service_tv.js

1. Add new file service_tv.js for TV product features
2. Remove unnecessary service.js symlink
3. Support webapis.getProfile()

Change-Id: Ied35583ff74d0b8b864e65c091a8791ffe0f31f9
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome][VD] Fix setting the 'wsa' path 32/274032/2
DongHyun Song [Wed, 20 Apr 2022 07:07:51 +0000 (16:07 +0900)]
[DeviceHome][VD] Fix setting the 'wsa' path

The start page includes 'wsa' path, then replace the base path as
/res/wsa/client/ for tmg app.

Change-Id: Iaed061140e26ee04a78402fb1879bc861f7cb4a4
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeviceHome][VD] Disable to build DeviceHome 34/274034/2
DongHyun Song [Wed, 20 Apr 2022 07:16:45 +0000 (16:16 +0900)]
[DeviceHome][VD] Disable to build DeviceHome

DeviceHome will be managed by TV app store as a downloadable app.
TV store ID : 3202204027208

TV profile don't need to build and install DeviceHome on wrtjs side.

Change-Id: I1c13524849b8bb08a2986171769ec414c7639dff
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[VD] Send appcontrol data to app in 'ResumeWithAppControl' 61/273761/4 submit/tizen/20220418.160020
liwei [Wed, 13 Apr 2022 09:22:11 +0000 (17:22 +0800)]
[VD] Send appcontrol data to app in 'ResumeWithAppControl'

Send appcontrol data to app side when appcontrol data 'ResumeWithAppControl
=Yes',then app can use the key/value flexibility.

Change-Id: Id3101bf03c1fc35885e08871c582ea7d4bd7dea8
Signed-off-by: liwei <wei90727.li@samsung.com>
2 years agoMerge "[Service] Unset post callbacks" into tizen submit/tizen/20220331.160022
SangYong Park [Thu, 31 Mar 2022 02:19:25 +0000 (02:19 +0000)]
Merge "[Service] Unset post callbacks" into tizen

2 years ago[Service] Unset post callbacks 96/272696/3
DongHyun Song [Wed, 23 Mar 2022 00:46:07 +0000 (09:46 +0900)]
[Service] Unset post callbacks

Unexpectedly, post callbacks can be fired from webapi worker thread
after its wrt::api::XwalkExtension instance was destroyed.

Thus, this will unset the post callbacks on unloadInstance API.

Related chromium-efl patch:
https://review.tizen.org/gerrit/272695/

Change-Id: I82e5bdfc48bed4b4d208ca6dd485bdffd1c31a0d
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[VD] resolve metadata-profile.xml parsing error 34/272834/1 submit/tizen/20220328.160021
yman.son [Fri, 25 Mar 2022 07:51:11 +0000 (16:51 +0900)]
[VD] resolve metadata-profile.xml parsing error

if use the metadata sample used for config.xml,
need add xmlns information to the profile.

Change-Id: Ic935970691f3ca5b4148521e868858255c33c816
Signed-off-by: yman.son <yman.son@samsung.com>
2 years ago[Service] Debugging condole.log with ServiceMessage 88/272288/4 accepted/tizen/unified/20220324.134420 submit/tizen/20220318.160023
DongHyun Song [Mon, 14 Mar 2022 06:12:47 +0000 (15:12 +0900)]
[Service] Debugging condole.log with ServiceMessage

There is no way to get the console message with commercial products
because Tizen SDK cannot get the 'dlog' actually.
 - 'dlog' is disabled on release firmware.

Thus, this way provides a new way to catch the console message of
service application by UI application's message port
 - local message port 'wrt.message.port'
 - message format : {'service-log' : message }

Change-Id: Ia42dbecb9daa492ffe58b4b5550d804569190232
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[Service][TV] Introduce ServiceMessage 87/272287/4 accepted/tizen/unified/20220318.020441 submit/tizen/20220316.160023
DongHyun Song [Mon, 14 Mar 2022 06:11:20 +0000 (15:11 +0900)]
[Service][TV] Introduce ServiceMessage

This introduces service message notification for DeviceHome
The case doesn't use Samsung IME, the UI app can utilize ServiceMessage
to catch propagating message from DeviceHome.
notifyServiceMessage() will give a message only to foreground application.

Change-Id: If36cb754382fc2c0f6d186c212a40c28ccf3eb9b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[Service][VD] Add mde APIs to handle remote input 63/272163/2 submit/tizen/20220311.160022
DongHyun Song [Thu, 10 Mar 2022 08:23:22 +0000 (17:23 +0900)]
[Service][VD] Add mde APIs to handle remote input

'updateRemoteInput' is an API to fill the input string at the IME
input field.

'selectRemoteInput' is an API to submit the string of IME form.

Change-Id: I2ff3f77d267e0e6e8e586485c8b590b78f96d241
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[VD]Show window for preload app in deeplink scenario 51/272151/1 submit/tizen/20220310.160027
zhaosy [Thu, 10 Mar 2022 06:53:55 +0000 (14:53 +0800)]
[VD]Show window for preload app in deeplink scenario

If app is preload, and then deeplink launch it, doesn't
call show window, so app is not showing in foreground.

Change-Id: I0c1f9eeacc06cbbc0b6332077167540185164c36
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
2 years agoMerge "[Service][VD] Add webapis.getPreviewData()" into tizen
SangYong Park [Thu, 10 Mar 2022 02:09:13 +0000 (02:09 +0000)]
Merge "[Service][VD] Add webapis.getPreviewData()" into tizen

2 years ago[Service][VD] Add webapis.getPreviewData() 62/271962/4
DongHyun Song [Fri, 4 Mar 2022 01:20:55 +0000 (10:20 +0900)]
[Service][VD] Add webapis.getPreviewData()

This provides preview tiles data for DeviceHome service.

Related chromium-efl patch:
https://review.tizen.org/gerrit/269316/

Change-Id: I2c4df503ab1791a63768bd5effdd82f99ad9fdca
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[VD] add metadata-profile.xml 30/272030/4 submit/tizen/20220309.160026
yman.son [Mon, 7 Mar 2022 06:18:01 +0000 (15:18 +0900)]
[VD] add metadata-profile.xml

Create a description of some metadata being used by the VD.
This will be managed by PLATZ system. (SE team request)

Change-Id: If9ea8c67f2aaf6db085aceef4bf7136338ab9fba
Signed-off-by: yman.son <yman.son@samsung.com>
2 years agoDisable typescript checks temporarily 97/271797/1 accepted/tizen/unified/20220301.151310 submit/tizen/20220228.183211 submit/tizen/20220228.191338 submit/tizen/20220301.160022
Surya Kumar [Tue, 1 Mar 2022 07:23:10 +0000 (12:53 +0530)]
Disable typescript checks temporarily

This change disables strict TS checks to resolve M85
SR build failures

Change-Id: I919041e13c7fbc9415d86cb0547f889a380c42f7
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
2 years agoRevert "[HOTFIX] Skip chromium-efl revision check" 28/271728/2 submit/tizen/20220228.103024
Surya Kumar [Fri, 25 Feb 2022 11:08:22 +0000 (16:38 +0530)]
Revert "[HOTFIX] Skip chromium-efl revision check"

This reverts commit 32173918d0ebb7ac60cb0ee83b99de0f617e04f6
since fix has landed from chromium-efl side

Depends on: https://review.tizen.org/gerrit/271727

Change-Id: I6296b34fcdba68c81fe5ab5494fca8a0f52fafd6
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
2 years ago[HOTFIX] Skip chromium-efl revision check 40/271540/2 submit/tizen/20220225.160253
Surya Kumar [Tue, 22 Feb 2022 15:59:44 +0000 (21:29 +0530)]
[HOTFIX] Skip chromium-efl revision check

Revision check is failing with latest M94 chromium-efl rpm, breaking
wrtjs rpm installation, so skipping the check temporarily

Change-Id: I909cf665e4c6abf2ee71abcdaf6b898f3cb5d679
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
2 years agoMerge "Remove WRTWindow and WRTWebContents modules" into tizen submit/tizen/20220214.160016
DongHyun Song [Fri, 11 Feb 2022 01:53:11 +0000 (01:53 +0000)]
Merge "Remove WRTWindow and WRTWebContents modules" into tizen

2 years ago[DeviceHome] Send push registration id 57/268857/7
DongHyun Song [Tue, 4 Jan 2022 03:05:15 +0000 (12:05 +0900)]
[DeviceHome] Send push registration id

Send push registration id with device info, which is given from
wrt-service-broker when push connection is established.

Change-Id: I8858983bf4f7f85072e1bd5dfa170d1f419d2f3c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[Tizen 7.0] Sync up branches from tizen_6.5 to tizen 93/270893/1
DongHyun Song [Fri, 11 Feb 2022 00:47:08 +0000 (09:47 +0900)]
[Tizen 7.0] Sync up branches from tizen_6.5 to tizen

[Service] Terminate service apps one by one
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/267413/

[Service] Support requestTrustedRemoteMessagePort
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/267572/

Change-Id: I0ac239a8f731be00f0eabc6b01413c8b0c52362b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years agoRemove WRTWindow and WRTWebContents modules 99/270799/1 submit/tizen/20220228.174607
SangYong Park [Wed, 9 Feb 2022 06:43:06 +0000 (15:43 +0900)]
Remove WRTWindow and WRTWebContents modules

. remove unnecesary modules
. fix typescript build errors

Change-Id: I1338fbea96f612e4087dcea2e56be656063a9a60
Signed-off-by: SangYong Park <sy302.park@samsung.com>
2 years ago[VD] Correct spelling 05/267405/1 accepted/tizen/unified/20211205.214135 submit/tizen/20211203.160018
DongHyun Song [Fri, 3 Dec 2021 01:04:19 +0000 (10:04 +0900)]
[VD] Correct spelling

Suface --> Surface

Change-Id: Ic51b7a5ea3d64b284ed8c87ad8f838d62eebce45
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
2 years ago[DeivceHome] Remove the self signed certificates 92/266692/1 accepted/tizen/unified/20211123.015835 submit/tizen/20211117.160020
Insoon Kim [Wed, 17 Nov 2021 08:39:38 +0000 (17:39 +0900)]
[DeivceHome] Remove the self signed certificates

The self signed certificates can not be used for product and the
signaling server is also temporarily removed.

Change-Id: I6e440de977cb653c58e5973ef384f2d8a8353e63
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
3 years ago[DeivceHome] Use the path /res/wsa for tmg service app 35/266635/4 submit/tizen/20211116.160020
Youngsoo Choi [Tue, 16 Nov 2021 09:00:45 +0000 (01:00 -0800)]
[DeivceHome] Use the path /res/wsa for tmg service app

When installing wgt app, service is mounted on /res/wgt
but when installing tmg app on TV, service is mounted on /res/wsa.

Change-Id: I82a3203cd6e0a652319b7531028aa119f36c4fd3
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years ago[Service] Add a service app to register device to devicehome.net 78/265978/10 accepted/tizen/unified/20211115.141638 submit/tizen/20211112.160020
Youngsoo Choi [Wed, 3 Nov 2021 05:08:47 +0000 (22:08 -0700)]
[Service] Add a service app to register device to devicehome.net

DeviceHome is running on demand on TV profile to save idle time memory usage.
The Initializer service app registers device to devicehome.net once,
before launching the DeviceHome.

The service app will be called by wrt-service-broker
only if device IP, device name, and login ID have been changed.

Change-Id: I9edb3bef2fa20070408cd71a47c3eec6e03836e2
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years ago[Service][VD] Add metadata for non-appdrm option 70/266170/2 submit/tizen/20211109.160021
DongHyun Song [Tue, 9 Nov 2021 00:57:29 +0000 (09:57 +0900)]
[Service][VD] Add metadata for non-appdrm option

vd-wgt-backend will check widget.license file with this option

Change-Id: I80a065250b85190d543078b7c50a72ef9c9cda20
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[VD] Show window for background execution app in deeplink scenario 87/265887/4 accepted/tizen/unified/20211104.123521 submit/tizen/20211102.160025
liwei [Mon, 1 Nov 2021 08:36:23 +0000 (16:36 +0800)]
[VD] Show window for background execution app in deeplink scenario

Now, for backexecution(http://samsung.com/tv/metadata/background.execution.support)
app, when app go background, WRT will call evas_object_hide() manually, it's a new
logic for 'add Gaming hub feature'(https://review.tizen.org/gerrit/259693/), bcz
WRT call evas_object_hide(), so appfw clear win cache data in its side, then appfw
cannot raise window(__raise_win()) while app launch by deeplink(unneed reload).
   To fix this issue, when app launched by deeplink(unneed reload) and this app config
background execution metadata, WRT will show it manually.

Change-Id: I93229016cb08314adce3ebee8a80dfba35e8ba67
Signed-off-by: liwei <wei90727.li@samsung.com>
3 years ago[Service][VD] Change timing of service mount / umount 15/265715/2 submit/tizen/20211029.160020
liwei [Wed, 27 Oct 2021 13:58:24 +0000 (21:58 +0800)]
[Service][VD] Change timing of service mount / umount

Make early mount and delay timing of service app umount,
while service app terminate, extension is cleaning up,
so delay timing of service app umount.

Change-Id: I9ba861cf52d66c3efc6ea4088348e402c20d6604
Signed-off-by: liwei <wei90727.li@samsung.com>
3 years agoMerge "Revert "[Service] Call destroy() of FunctionTemplate"" into tizen accepted/tizen/unified/20211028.122224 submit/tizen/20211026.123452 submit/tizen/20211026.160020
Bot Blink [Tue, 26 Oct 2021 06:36:18 +0000 (06:36 +0000)]
Merge "Revert "[Service] Call destroy() of FunctionTemplate"" into tizen

3 years agoRevert "[Service] Call destroy() of FunctionTemplate" 47/265647/1
wei li [Tue, 26 Oct 2021 06:19:54 +0000 (06:19 +0000)]
Revert "[Service] Call destroy() of FunctionTemplate"

This reverts commit dc19d94f302de3e48620be09b4a09e876cfeabc7.

Change-Id: Ibe9a5392d70d55425bf8cab7a6355bbd0bb26757

3 years agoMerge "[NMT] Set TV app path" into tizen submit/tizen/20211022.032550 submit/tizen/20211022.160019
Bot Blink [Fri, 22 Oct 2021 01:17:47 +0000 (01:17 +0000)]
Merge "[NMT] Set TV app path" into tizen

3 years ago[VD]changing the function related to preloading 17/265517/1 submit/tizen/20211021.160039
yman.son [Thu, 21 Oct 2021 08:13:34 +0000 (17:13 +0900)]
[VD]changing the function related to preloading

change preloaded app is not terminated by multitasking.
Policy changes to the "B.TV" app are required.

Change-Id: Idd59094bc7d4098def2f4a02b9ecef2defa1d87f
Signed-off-by: yman.son <yman.son@samsung.com>
3 years ago[NMT] Set TV app path 77/265177/4
jaekuk, lee [Tue, 12 Oct 2021 11:36:32 +0000 (20:36 +0900)]
[NMT] Set TV app path

TV apps are installed in the "/opt/usr/apps" path.
This patch set app path for TV.

Change-Id: Iec38bc5828d6d87c864f7d799435d521830a6f61
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
3 years agoMerge "[Service] Call destroy() of FunctionTemplate" into tizen submit/tizen/20211018.160022
Bot Blink [Mon, 18 Oct 2021 07:17:11 +0000 (07:17 +0000)]
Merge "[Service] Call destroy() of FunctionTemplate" into tizen

3 years ago[Service] Call destroy() of FunctionTemplate 85/265085/5
DongHyun Song [Fri, 15 Oct 2021 02:43:26 +0000 (11:43 +0900)]
[Service] Call destroy() of FunctionTemplate

FunctionTemplate(prototype) remains memory leak even though node
worker isolate is gone.

This patch calls destroy() of prototype explicitly, which is made
by gin_helper::ObjectTemplateBuilder()
 - wrt, wrt.tv, wrt.mde, wrt.security, wrt.edge, xwalk

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264969/

Change-Id: I0cfea24bd0bcec64012f493e3e8bca565fc4f073
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[DeviceHome]Change the jsencrypt lib by production version 81/265281/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20211028.114649 accepted/tizen/unified/20211014.073740 submit/tizen/20211014.053455 submit/tizen/20211014.160020 submit/tizen_6.5/20211028.163201 tizen_6.5.m2_release
singa2000 [Thu, 14 Oct 2021 04:30:44 +0000 (13:30 +0900)]
[DeviceHome]Change the jsencrypt lib by production version

Now the file is dev version. So it change to prod version.

Change-Id: I26ebf73feb09f4556a7b0185021858eb909e5e22
Signed-off-by: singa2000 <cookie@samsung.com>
3 years ago[DeviceHome] Remove the pincode log 55/265255/1 accepted/tizen/unified/20211013.114646 submit/tizen/20211013.084616 submit/tizen/20211013.160019
singa2000 [Wed, 13 Oct 2021 08:09:43 +0000 (17:09 +0900)]
[DeviceHome] Remove the pincode log

It display the pincode in the console log.
So it remove.

Change-Id: I7a24277e7415b901f0259caca2e09dfcd0bf5b10
Signed-off-by: singa2000 <cookie@samsung.com>
3 years ago[SignalingServer] Fix a connection problem on message port 26/265026/1 submit/tizen/20211007.160021
Hunseop Jeong [Thu, 7 Oct 2021 08:33:03 +0000 (17:33 +0900)]
[SignalingServer] Fix a connection problem on message port

The message port does not guarantee that the connection
has been disconnected when the page is reloaded. So, if
new connection occurs with the same socket id, the existing
connection is disconnected.

Change-Id: I0ed924821990129fe22d3adb752700bab0b28be7
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
3 years ago[SignalingServer] Add the https port variable 15/265015/1
Hunseop Jeong [Thu, 7 Oct 2021 06:09:36 +0000 (15:09 +0900)]
[SignalingServer] Add the https port variable

The httpsPort is required to search and run device.

Change-Id: I31db885b20a06ca394bf1eeb97b6314bb62c94b0
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
3 years agoMerge "[Service][Public] Run device home on booting time" into tizen
Bot Blink [Thu, 7 Oct 2021 06:05:34 +0000 (06:05 +0000)]
Merge "[Service][Public] Run device home on booting time" into tizen

3 years ago[SignalingServer] Add a missing api 14/265014/1
Hunseop Jeong [Thu, 7 Oct 2021 05:50:21 +0000 (14:50 +0900)]
[SignalingServer] Add a missing api

Load the getMyAddress from util.

Change-Id: Idd4a1e469c1853da2549cc12a497c6ad85fa0108
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
3 years ago[Service][Public] Run device home on booting time 12/265012/2
Youngsoo Choi [Thu, 7 Oct 2021 05:11:33 +0000 (22:11 -0700)]
[Service][Public] Run device home on booting time

The device home runs on booting time on public profile.

Change-Id: I903ff09c43bb78345d2209e681c651d8b5c3094d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years ago[VD] Set focus of last web contents 54/264954/4
DongHyun Song [Wed, 6 Oct 2021 04:39:33 +0000 (13:39 +0900)]
[VD] Set focus of last web contents

After closed another WRTWindow, the last web contents has no focus
until any registered key is handled.
This patch will give focus on the last web contents when WRTWindow
closed.

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264955/

Change-Id: I43475272f757a05be05aa51ca7ff5dbac659bf6b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years agoMerge "Revert "[Service] Remove initializeExtensionOnMain"" into tizen submit/tizen/20211006.160020
Bot Blink [Wed, 6 Oct 2021 10:35:18 +0000 (10:35 +0000)]
Merge "Revert "[Service] Remove initializeExtensionOnMain"" into tizen

3 years agoRevert "[Service] Remove initializeExtensionOnMain" 62/264962/2
DongHyun Song [Wed, 6 Oct 2021 06:25:04 +0000 (06:25 +0000)]
Revert "[Service] Remove initializeExtensionOnMain"

This reverts commit 5a7f3b5ebc8533f7545dc1b031a0458e4c317280.

Smack problems are comming without this patch.
"CreateTaskQueue" cannot solve the previous smack issue correctly.

Change-Id: I1d71ca855bb30b6e71634d715c026ddd935d6573

3 years ago[Service][VD] Change DeviceHome tmg path (skel --> /opt/data) 15/264915/3
DongHyun Song [Tue, 5 Oct 2021 05:36:57 +0000 (05:36 +0000)]
[Service][VD] Change DeviceHome tmg path (skel --> /opt/data)

with using /etc/skel folder, duplicated files are created as each
account.

we will change this path to /opt/data/device_home

Change-Id: I86fab3b14fc3b6497797b5bc39a99cac08239989
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years agoMerge "[DeviceHome] Don't download library from not manageable CDN" into tizen submit/tizen/20211001.160010 submit/tizen/20211005.024820
Bot Blink [Tue, 5 Oct 2021 02:05:46 +0000 (02:05 +0000)]
Merge "[DeviceHome] Don't download library from not manageable CDN" into tizen

3 years agoMerge "fixup! [Service][VD] Change DeviceHome tmg path" into tizen
Bot Blink [Tue, 5 Oct 2021 02:03:34 +0000 (02:03 +0000)]
Merge "fixup! [Service][VD] Change DeviceHome tmg path" into tizen

3 years ago[DeviceHome] Don't download library from not manageable CDN 08/264908/1
Youngsoo Choi [Tue, 5 Oct 2021 01:22:41 +0000 (18:22 -0700)]
[DeviceHome] Don't download library from not manageable CDN

The mustache library CDN can't be manageable by Samsung.
So, we can't deal with any network issue of the library repository.

It's safer to keep it in local resource because it's only 6.38KB.

Change-Id: I420c74e68e2ade3424245f66bd99abc11c5ed695
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years agofixup! [Service][VD] Change DeviceHome tmg path 06/264906/2
DongHyun Song [Tue, 5 Oct 2021 00:51:18 +0000 (09:51 +0900)]
fixup! [Service][VD] Change DeviceHome tmg path

With TV image building, it cannot copy a file to /home/owner/...
It should be /etc/skel.
This folders will copy /home/owner after adduser

Change-Id: I6841e604dba552c48f33f5d86bd004ce76ebee38

3 years agofixup! [DeviceHome] Move to error.html if tau library isn't loaded 49/264849/5 submit/tizen/20211001.160019
Youngsoo Choi [Fri, 1 Oct 2021 05:20:35 +0000 (22:20 -0700)]
fixup! [DeviceHome] Move to error.html if tau library isn't loaded

The file name causing network issue is added into the error message.

Change-Id: I49b845b75a467f9e5a5fc1f17795d0d7e98f1c5c
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years ago[DeviceHome] Move to error.html if tau library isn't loaded 44/264844/1
Youngsoo Choi [Fri, 1 Oct 2021 04:00:12 +0000 (21:00 -0700)]
[DeviceHome] Move to error.html if tau library isn't loaded

If tau library isn't loaded porperly, this moves current page to error.html.

Change-Id: I06d43d2f2c32138e75b43e199dd9bf474fa35a1c
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years agoMerge "[Service][VD] Change path of DeviceHome tmg" into tizen
Bot Blink [Fri, 1 Oct 2021 01:42:04 +0000 (01:42 +0000)]
Merge "[Service][VD] Change path of DeviceHome tmg" into tizen

3 years agoMove FlushData() after setEnable() 94/264794/1 submit/tizen/20210930.160018
DongHyun Song [Thu, 30 Sep 2021 01:30:24 +0000 (10:30 +0900)]
Move FlushData() after setEnable()

With low-end product, FlushData() looks to take too much time to
flush StoragePartition. Then renderer can be not stopped immediately.

Change-Id: Ibc96785878fd92e26d08e92dcffa9b9e6d39fb9d
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[Service][VD] Change path of DeviceHome tmg 37/264737/8
DongHyun Song [Wed, 29 Sep 2021 04:41:32 +0000 (13:41 +0900)]
[Service][VD] Change path of DeviceHome tmg

Installation by wrt-service-broker, change the tmg file path to
/home/owner/apps_rw/xwalk-service/device_home.tmg
(User::App::Shared)

This path will be allowable to use mount by privileged-service.

Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264755/

Change-Id: Idee01a75854592fb60b8c37656b7d1f3c5fd751c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years agoMerge "[DeviceHome] Don't use specific IP address" into tizen submit/tizen/20210928.160019 submit/tizen/20210929.004704
Bot Blink [Tue, 28 Sep 2021 10:10:32 +0000 (10:10 +0000)]
Merge "[DeviceHome] Don't use specific IP address" into tizen

3 years ago[DeviceHome] Don't use specific IP address 99/264699/1
Youngsoo Choi [Tue, 28 Sep 2021 09:50:57 +0000 (02:50 -0700)]
[DeviceHome] Don't use specific IP address

Official domain devicehome.net is used instead of specific IP address.

Change-Id: Ib48080a584d931b43b2e0ac6c8da78abae631bcc
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years ago[Service] Apply wrt.finalizeService() 83/264583/6
DongHyun Song [Mon, 27 Sep 2021 01:17:48 +0000 (10:17 +0900)]
[Service] Apply wrt.finalizeService()

Calls wrt.finalizeService(internalid) when service app stopped
to remove service app information.

Releated patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/264585/

Change-Id: Iee85542cbea732d0d34bef5e3efbfb366087201d
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[Service] Remove initializeExtensionOnMain 58/263458/5
DongHyun Song [Fri, 3 Sep 2021 01:57:33 +0000 (10:57 +0900)]
[Service] Remove initializeExtensionOnMain

Instead of calling tizen.systeminfo.getPropertyValue(), we can
generate TaskQueue instance explicitly with below patch.

https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/263460/

Change-Id: Ib88acbe03058a2b8149c060b800157095cec2d80
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years agoMerge "[Service] Add dependency of vd-wgt-backend for device home app" into tizen accepted/tizen/unified/20210928.125401 submit/tizen/20210927.084538 submit/tizen/20210927.160019
Bot Blink [Mon, 27 Sep 2021 08:50:00 +0000 (08:50 +0000)]
Merge "[Service] Add dependency of vd-wgt-backend for device home app" into tizen

3 years ago[Service] Add dependency of vd-wgt-backend for device home app 20/264620/1
liwei [Mon, 27 Sep 2021 08:35:12 +0000 (16:35 +0800)]
[Service] Add dependency of vd-wgt-backend for device home app

device_home.tmg is in /usr/apps/.preload-rw-wgt, when create image
in Cosmos, it will be installed, vd-wgt-backend rpm is installed
later than wrtjs rpm, so we should add dependency of vd-wgt-backend.

Change-Id: I0851e53147a92ed54f9d47034b2d2b6a172b8eba
Signed-off-by: liwei <wei90727.li@samsung.com>
3 years ago[DeviceHome] Use TAU library CDN to save ROM size 07/264607/2
Youngsoo Choi [Mon, 27 Sep 2021 06:10:57 +0000 (23:10 -0700)]
[DeviceHome] Use TAU library CDN to save ROM size

Recently established TAU library CDN is used to save device ROM size.
The source size is reduced from 8.2M to 5.8M.

Change-Id: I956785bc88b76e67405b87b307686e4f8dfa7792
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
3 years agoMerge "[Addon] Add reload value to send to addon" into tizen
Bot Blink [Mon, 27 Sep 2021 05:56:42 +0000 (05:56 +0000)]
Merge "[Addon] Add reload value to send to addon" into tizen

3 years ago[Service][VD] Apply DeviceHome as squashfs format 68/264568/1
liwei [Fri, 24 Sep 2021 10:53:30 +0000 (18:53 +0800)]
[Service][VD] Apply DeviceHome as squashfs format

This patch is uploaded again, and chmod 755 to
/usr/apps/.preload-rw-wgt/device_home.tmg to avoid
create image fail in Cosmos.

Apply squashfs app to reduce app size in TV profile.
This will reduce DeviceHome application 9.2MB(unzipped) --> 1.9MB

Plus, this removes DeviceHome's onboot option either. DeviceHome will
be launched by wrt-service-broker.

Note.
privileged-service should add mount policies for wgt-backend first.
Then, this patch can release to VD p4

Change-Id: Ief92f8a780b3b7cd28596f86c5239c96f25e3aba
Signed-off-by: liwei <wei90727.li@samsung.com>
3 years agoFix issue that main window is not loaded when reloading app 04/264504/4 submit/tizen/20210924.160020
jaekuk, lee [Thu, 23 Sep 2021 07:52:34 +0000 (16:52 +0900)]
Fix issue that main window is not loaded when reloading app

If resuming app that opened more than 3 windows in apps launcher screen,
only one window is removed from window list.

This patch removes all windows except main window when reloading app.

Change-Id: I3059f2007889a04ccbf8fa7591e85241989fba7a
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
3 years agoMerge "Revert "[Service][VD] Apply DeviceHome as squashfs format"" into tizen
Bot Blink [Fri, 24 Sep 2021 03:17:39 +0000 (03:17 +0000)]
Merge "Revert "[Service][VD] Apply DeviceHome as squashfs format"" into tizen

3 years ago[Addon] Add reload value to send to addon 27/264527/2
jaekuk, lee [Fri, 24 Sep 2021 02:17:51 +0000 (11:17 +0900)]
[Addon] Add reload value to send to addon

This patch sends reload value to addon to synchronize app's window information with addon
when resuming app.

Change-Id: I53f2cd613a6c271cfb445d20e84db9230991dee0
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
3 years agoRevert "[Service][VD] Apply DeviceHome as squashfs format" 26/264526/1
wei li [Fri, 24 Sep 2021 02:29:16 +0000 (02:29 +0000)]
Revert "[Service][VD] Apply DeviceHome as squashfs format"

This reverts commit 8f6f792b009118f15a3a4ab2f40b7b1051144e35.

Change-Id: Id67fb3094bd6ba99968ccb9d53fed744ca129264

3 years ago[NMT] Fix build error 19/264519/1 accepted/tizen/unified/20210924.132700 submit/tizen/20210924.010522
jaekuk, lee [Fri, 24 Sep 2021 00:16:25 +0000 (09:16 +0900)]
[NMT] Fix build error

NMT shared libraries only support armv7l architecture.

Change-Id: I0881d2aba6fc109210a3866a40167af4d7f0333b
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
3 years agoMerge "[Service] StopService when appid is empty" into tizen submit/tizen/20210923.160022
Bot Blink [Thu, 23 Sep 2021 08:54:46 +0000 (08:54 +0000)]
Merge "[Service] StopService when appid is empty" into tizen

3 years ago[Service] StopService when appid is empty 00/264500/1
liwei [Thu, 23 Sep 2021 08:31:56 +0000 (16:31 +0800)]
[Service] StopService when appid is empty

In low memory sceanrio, start()->stop()->getpkgid()->..,
then appid will be empty when get pkgid, it will make
abnormal of smack label / app path / ..., so to avoid
this issue, if appid is empty, we will stop service.

Change-Id: I2801c2cf99dbf1b63bcd1702d10b9c9990f89ada
Signed-off-by: liwei <wei90727.li@samsung.com>
3 years agoMerge "[Service][VD] Apply DeviceHome as squashfs format" into tizen submit/tizen/20210917.160309
Bot Blink [Fri, 17 Sep 2021 05:11:15 +0000 (05:11 +0000)]
Merge "[Service][VD] Apply DeviceHome as squashfs format" into tizen

3 years agoMerge "[Category] native node module for category so wrapping" into tizen
Bot Blink [Fri, 17 Sep 2021 03:37:18 +0000 (03:37 +0000)]
Merge "[Category] native node module for category so wrapping" into tizen

3 years ago[VD] if condition clean-up 94/260894/6
DongHyun Song [Tue, 6 Jul 2021 08:58:32 +0000 (17:58 +0900)]
[VD] if condition clean-up

1)
preloadState always has 'preload' when backgroundAtStartup.

(preload || !backgroundAtStartup) is same (preload || !preload)
It should be 'true'
Thus, this condition check is unnecessary.

2)
Minor changes

Change-Id: Ia6dcbb8a61a4bc8051a4791f290e7e3176fe15f7
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[Service][VD] Apply DeviceHome as squashfs format 63/263863/8
DongHyun Song [Mon, 13 Sep 2021 02:04:24 +0000 (11:04 +0900)]
[Service][VD] Apply DeviceHome as squashfs format

Apply squashfs app to reduce app size in TV profile.
This will reduce DeviceHome application 9.2MB(unzipped) --> 1.9MB

Plus, this removes DeviceHome's onboot option either. DeviceHome will
be launched by wrt-service-broker.

Note.
privileged-service should add mount policies for wgt-backend first.
Then, this patch can release to VD p4

Change-Id: I8b00c5c742b862f394e3269c483cea926b4311e2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years agoMerge "[Service] Fix memory leak of parentPort" into tizen submit/tizen/20210916.160018
Bot Blink [Thu, 16 Sep 2021 07:34:24 +0000 (07:34 +0000)]
Merge "[Service] Fix memory leak of parentPort" into tizen

3 years ago[Service] Fix memory leak of parentPort 28/264328/1
DongHyun Song [Thu, 16 Sep 2021 05:02:13 +0000 (14:02 +0900)]
[Service] Fix memory leak of parentPort

From an againg test, which repeatedly launch/terminate an empty
service app, we can find that memory size is continuously
increasing.

With checking service_runner.ts line by line, I figure out that
parentPort (MessagePort) is related to memory leak.

parentPort.close() can be effective to make memory usage stable
a little.

Change-Id: Ia5737915507452100e729246e8f658715d603e81
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
3 years ago[Category] native node module for category so wrapping 12/264312/2
jaekuk, lee [Thu, 16 Sep 2021 01:15:02 +0000 (10:15 +0900)]
[Category] native node module for category so wrapping

category feature is supported by default for public profile.
If using category feature for the other profiles, use category option.
$ ./tizen/build/build_tv.sh --category

Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/253460

Change-Id: I7493aeb5111646f278995e6098336b4941394d58
Signed-off-by: jaekuk, lee <juku1999@samsung.com>