Youngsoo Choi [Mon, 6 Sep 2021 23:28:39 +0000 (16:28 -0700)]
[DeviceHome] Don't use temporal samsung account
Temporal samsung account is removed.
Change-Id: I772a3b05e46aa1208e7a8eeabdfc75ca0b42bc46
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Bot Blink [Sun, 5 Sep 2021 22:26:05 +0000 (22:26 +0000)]
Merge "[DeviceHome] Integrate wrt services into one" into tizen
Insoon Kim [Thu, 2 Sep 2021 00:47:30 +0000 (09:47 +0900)]
[DeviceHome] Integrate wrt services into one
Integrate device home and offload signaling server services into a
single wrt service to improve idle memory comsumption.
Change-Id: Ibd5879e15f347f6846c003cdc459455cf3cb345c
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Youngsoo Choi [Thu, 2 Sep 2021 23:08:09 +0000 (16:08 -0700)]
[DeviceHome] Remove PoC codes for promotion webclip
Unnecessary PoC codes are removed.
Change-Id: Id378d68fec96e20f114fe634f589c71293fc7c8f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Thu, 2 Sep 2021 02:19:00 +0000 (11:19 +0900)]
[Service] Apply smack label ahead of webapis initialization
On webapis side, it is checking privileges by cynara client with
smack label (/prod/tid/attr/current), but, this smack label is
getting before dropThreadPrivilege().
Thus, it is always 'org.tizen.chromium-efl.wrt-service'.
To make correct this problem, this patch change its time ahead of
dropThreadPrivilege().
By this logic, there is a new smack error while using systeminfo
webapi. Because systeminfo webapi is using their singleton worker
thread to get some device information. This must be created by
same smack label as pid's smack label. Otherwise, the worker's task
will be failed.
Therefore, this moves below logic on main thread.
tizen.systeminfo.getPropertyValue("CPU", () => { }, () => { });
Later, I will discuss regarding creating this singleton worker by
other better way with webapi members.
Change-Id: I8c3ab62b775e1aaa895aa70b0ec5f438840ad74b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Wed, 1 Sep 2021 06:07:01 +0000 (23:07 -0700)]
[DeviceHome] Support emulator
- Enable pin-code for emualtor
- Don't register emulator to device portal
Change-Id: I272ec44194bb661a8dc0f3d76f9df60b20353d9e
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Bot Blink [Wed, 1 Sep 2021 02:03:44 +0000 (02:03 +0000)]
Merge "[Service] Apply sendSyncMessageWith* API" into tizen
Bot Blink [Tue, 31 Aug 2021 06:02:08 +0000 (06:02 +0000)]
Merge "[WRTjs][VD] suspendByStatus() only call once in finish load" into tizen
liwei [Mon, 30 Aug 2021 09:50:25 +0000 (17:50 +0800)]
[WRTjs][VD] suspendByStatus() only call once in finish load
suspendByStatus() just need call once, 'did-finish-load' will
be invoked many times(RWI / load / reload), so add once function
for suspendByStatus().
Change-Id: I5d97be6eb17a7b91eebb13b76b90610df0aaf4d4
Signed-off-by: liwei <wei90727.li@samsung.com>
DongHyun Song [Mon, 30 Aug 2021 02:24:03 +0000 (11:24 +0900)]
[Service] Apply log color
for easy distinguish, make coloring on cosole.debug()
Parent patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/258757/
Change-Id: I11877e8f1522b4906718bd94d226866eeb5f6919
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Tue, 31 Aug 2021 01:59:03 +0000 (01:59 +0000)]
Merge "[Service] Change console.debug() to distinguish from console.log()" into tizen
Bot Blink [Tue, 31 Aug 2021 00:27:37 +0000 (00:27 +0000)]
Merge "[DeviceHome] Send plain text when secure flag is false" into tizen
Youngsoo Choi [Mon, 30 Aug 2021 22:15:40 +0000 (15:15 -0700)]
[DeviceHome] Send plain text when secure flag is false
Plain text needs to be sent when secure flag is false.
Change-Id: Ica09d47df97559f9f80cbf104a636ddd400d4d25
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
liwei [Thu, 26 Aug 2021 08:43:16 +0000 (16:43 +0800)]
[WRTjs][VD] Send 'tizenvisibilitychange' event in app load-finish
In RWI scenario, an empty page will be loaded firstly,and
window is shown, at this time, WRT will send 'tizenvisibilitychange'
event to app, but app is not loaded, so app cannot receive it,
after RWI popup is closed, app will be loaded, but WRT will
not send 'tizenvisibilitychange' event anymore.
For this case, WRT will send 'tizenvisibilitychange' event in
'load-finish' event(app load), and just send once.
Change-Id: I33a61f7cb1f45f7b00f5818bc5af788e2db686a2
Signed-off-by: liwei <wei90727.li@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Mon, 30 Aug 2021 01:59:25 +0000 (18:59 -0700)]
fixup! [DeviceHome] Upgrade to v1.0.8
- Don't encrypt message mutiple times in a loop
Change-Id: I24b58a2042d78924e07ccc0ec0ac251e067dfbad
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Mon, 30 Aug 2021 01:44:10 +0000 (10:44 +0900)]
[Service] Change console.debug() to distinguish from console.log()
Occasionally, it is confused that a certain console.log is from
application or wrtjs.
Thus, it needs to distinguish application's console.log and wrtjs's
log.
Change-Id: I027b37f1d969932244a5dbf4b208264fe85dbe26
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Mon, 30 Aug 2021 00:02:45 +0000 (17:02 -0700)]
[DeviceHome] Upgrade to v1.0.8
- Send package ID to remote client
- Don'y use hard-coded package ID
- Update webclip icon on remote client when webclip is installed
- Fix bugs for sending messages
Change-Id: I8086ff1d13c046e5049904375655197f34832d4b
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Fri, 27 Aug 2021 07:54:55 +0000 (16:54 +0900)]
[Service] Apply sendSyncMessageWith* API
To maintain consistency of xwalk extension interface, this also
apply sendSyncMessageWith* functions.
Without this patch there might be runtime JS exception due to webapi's
prototype validation logic.
Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/263174/
Change-Id: Id7d755e7597cd8c4b176df01c3b92c3e6d0a9e98
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Thu, 26 Aug 2021 22:26:55 +0000 (22:26 +0000)]
Merge "[Service] Fix JS exception of UI type service" into tizen
DongHyun Song [Wed, 25 Aug 2021 08:37:31 +0000 (17:37 +0900)]
[Service] Fix JS exception of UI type service
1) correct 'service_manager' path
2) ignore unnecessary logic for UI type
Change-Id: I23c4c15630d455c620a8593ddffc5bac550a46fd
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Wed, 25 Aug 2021 04:03:36 +0000 (04:03 +0000)]
Merge "[SignalingServer] Run on booting time" into tizen
Hunseop Jeong [Wed, 25 Aug 2021 03:35:59 +0000 (12:35 +0900)]
[SignalingServer] Run on booting time
Enable the on-boot option to run the signaling server
at booting time to handle client requests.
Change-Id: I9a6a5c2bdac3bb9c69fa373b2c5fd43218ae0dd1
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
Hunseop Jeong [Wed, 25 Aug 2021 00:29:43 +0000 (09:29 +0900)]
[SignalingServer] Upgrade signaling server as v0.4.1
Release Note:
https://github.sec.samsung.net/HighPerformanceWeb/offload.js/releases/tag/0.4.1
Change-Id: Ibba174c8fc641a34d53e7f93d8fb5ec761c55620
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
Bot Blink [Mon, 23 Aug 2021 00:41:57 +0000 (00:41 +0000)]
Merge "[DeviceHome] Upgrade to v1.0.7" into tizen
Youngsoo Choi [Sun, 22 Aug 2021 22:35:31 +0000 (15:35 -0700)]
[DeviceHome] Upgrade to v1.0.7
- Support webclip based on TAU webclip cards
- Kill host app when there's no remote client
- Fix some bugs related to package ID
Change-Id: I9de3f7141134863eb3aa972357ba54bbbb12b001
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Wed, 18 Aug 2021 22:20:59 +0000 (15:20 -0700)]
[Service] Use smack privilege while calling device API
Web service app thread couldn't have its own smack app label on it.
Thus, web service f/w has used an access control module,
checking the app thread privilege by device API unit.
Recently, web service f/w ended up granting smack app label
on the web service app thread. So, the app privilege can be handled by
smack control and the access control module isn't needed anymore.
Change-Id: Iea55811f129b5a126c69c260cecb948dcbf40ca7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Thu, 12 Aug 2021 05:29:40 +0000 (14:29 +0900)]
[Service] Relay message-port via launcher
When service app makes local message-port, the message-port is
managed with 'app_id' + 'port_name'.
But, because 'app_id' is 'org.tizen.chromium-efl.wrt.service' by
AUL API, external app cannot send the message due to not-found port.
This patch will create message-port listener with proper 'app_id'
on launcher process to relay messages.
Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/262496/
Change-Id: I3387b2d4d8c0ce5fb376bfcde375f34aed9538b6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Thu, 12 Aug 2021 08:12:06 +0000 (01:12 -0700)]
[TV][DeviceHome] Run on booting time
Device home needs to be run on booting time to handle remote device requests.
To do that, the device home package needs platform level signing.
Change-Id: I58fc560bcad9166cbcac5b35903a2effac635f09
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Mon, 9 Aug 2021 06:47:24 +0000 (23:47 -0700)]
[Public][DeviceHome] Run on booting time
Device home needs to be run on booting time to handle remote device requests.
To do that, the device home package needs platform level signing.
Also, unused bin folders are removed.
Change-Id: Ibc2c46f35da395034f5ab563888e1dc14719000e
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Tue, 3 Aug 2021 08:49:22 +0000 (01:49 -0700)]
[DeviceHome] Upgrade to v1.0.6
- Support message port communication between device home and web app
instead of web socket to prevent smack security vulnerabilities
- Support emulator connection with device home
Change-Id: Ia23f954a8b2c5a6020490a3b8c47ae2120b56bb4
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Bot Blink [Tue, 3 Aug 2021 08:49:01 +0000 (08:49 +0000)]
Merge "[DeviceHome] Apply wgt installation" into tizen
DongHyun Song [Fri, 30 Jul 2021 04:00:41 +0000 (13:00 +0900)]
[DeviceHome] Apply wgt installation
Apply wgt installation to move the app from RO to RW and easy
wgt installation by rpm.
Change-Id: I8908539eaf4abb0ecd4bd9be65f995f840b263b8
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Fri, 23 Jul 2021 07:02:09 +0000 (16:02 +0900)]
[Service][AppManifest] Fix issue of making unique app id
start with https://, first 10 bytes are almost same string with
base64 encoded.
Then, cut 10 bytes from its tail.
Change-Id: I8a73f19dd47a4ca45f8c249e8e6822810579d9f6
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Fri, 23 Jul 2021 06:20:22 +0000 (15:20 +0900)]
[VD] Fix build error of appmanifest_loader.ts
make any type to skip checking declaration.
Change-Id: Ie11b0671a13bc7aff21a22f960aaecc41445ed1d
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Tue, 20 Jul 2021 05:08:26 +0000 (14:08 +0900)]
[VD] Move notifyInstall() to TVExtension
Move notifyInstall() to TVExtension
Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/261490/
Change-Id: I29b1297e49117b855efb0c86eeea9f1df5abe93c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Fri, 16 Jul 2021 08:56:04 +0000 (17:56 +0900)]
[Service][AppManifest] Fix start url concatination
Make correct URL with relative path.
Change-Id: I27a96c40e21d5b0fb6393b224e0414f542514546
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Fri, 16 Jul 2021 03:53:04 +0000 (12:53 +0900)]
[Service][AppManifest] Fix pkgid length and refactor
Make pkgid length 10 bytes.
Change-Id: I8f2423dc18721ecb9b48c1e9756180854eee73cd
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Mon, 12 Apr 2021 07:33:52 +0000 (16:33 +0900)]
[Service][appmanifest] Fix app id
Making same app id by its URL, otherwise duplicate apps cane be
created.
Change-Id: I99cebbfff38c191364ab18f1d9cd8709fef108b0
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun, Song [Wed, 14 Jul 2021 04:57:53 +0000 (13:57 +0900)]
[Service] Add wrt.setServiceAppId()
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>
Bot Blink [Wed, 14 Jul 2021 00:00:15 +0000 (00:00 +0000)]
Merge "[Service][Builtin] Notify WAS module install app" into tizen
liwei [Wed, 7 Jul 2021 12:39:37 +0000 (20:39 +0800)]
[Service][Builtin] Notify WAS module install app
This built-in service support W3C AppManifest
installation, notify webappservice module to
install app, then this app can be shown in
apps store.
Native side patch
https://review.tizen.org/gerrit/260966/
Change-Id: If9d0d476a49916be5ff6e0ff6f85485ceaeb3466
Signed-off-by: liwei <wei90727.li@samsung.com>
Dong Hyun, Song [Tue, 13 Jul 2021 02:10:29 +0000 (11:10 +0900)]
[Service] Fix virtual path issue
Remove optional chaining.
getter was disabled by webapis side.
Change-Id: Ia619f6ca6b933e686f3444afe2243c284a1e8768
Signed-off-by: Dong Hyun, Song <dh81.song@samsung.com>
DongHyun Song [Wed, 7 Jul 2021 05:02:54 +0000 (14:02 +0900)]
[Service] Move service files to service/ folder
It is more proper that service*.ts are placed in service/ directory.
Change-Id: I5bd14d66d3196e4a1e32dd5af8b07eb68035ba26
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Wed, 7 Jul 2021 08:53:21 +0000 (17:53 +0900)]
[Service] Change a way to apply virtual path
Not only tizen.filesystem, File object of webapis can use virtual
path. But wrtjs side cannot access File object prototype directly
Thus, basically, if we can change virtual path map in webapis side,
that is best solution.
Reference:
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/260943/2
Change-Id: I858ebe853ddd719515dc30616f8f92d8ba91ace1
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Tue, 6 Jul 2021 01:35:26 +0000 (01:35 +0000)]
Merge "[VideoSplash] Fix focus issue of VSS and refactors" into tizen
DongHyun Song [Fri, 4 Jun 2021 02:32:21 +0000 (11:32 +0900)]
[Service][Workaround] Make singleton worker thread before app start
This patch will make singleton webapi worker thread ahead of app
launching to keep it 'User' smack label.
There are lots usage of putting message at singleton worker thread by
- TaskQueue::GetInstance().Queue()
- TaskQueue::GetInstance().Async()
tizen.systeminfo.getPropertyValue() is one of API to use TaskQueue
singleton instance.
+ remove unnecessary log
Related patch of filesystem webapi worker issue:
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/259382/
Change-Id: I7e0abe5e93335d2798bc388f22a88aff754d8d2b
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Fri, 25 Jun 2021 05:38:55 +0000 (14:38 +0900)]
[VideoSplash] Fix focus issue of VSS and refactors
[PROBLEM] Before the update to VSS's player, the WRT.js could
call WRT.hideSplashScreen(...), with one window show
(after 'ready-to-show').
With VSS player reacting to focus steal, now showing
the window will result in premature playback stop.
[SOLUTION] With change in WRT interface in libchromium the
WebApplication can now check, if the reason for
hiding was valid.
Side effect is, if the RENDERED was not a valid reason
to hide a window, the window is not shown at any other
event. The additional show() is therefore added to
LOADFINISHED and CUSTOM (VIDEOFINISHED and CUSTOM's
show() is already in the Chromium patch).
NOTE: part of this change was provided in Chromium project as change
[259340][1]. To have current change compile, you either have to have
chromium RPM with its change, or -- after first unsuccessfull build --
go to your GBS scratch area, into /usr/include/wrt/ and edit the
native_wrtjs.d.ts to have WRT.hideSplashScreen method return `boolean`.
[1]: https://review.tizen.org/gerrit/c/259340
Change-Id: Id63f6b4192cdc9da8da1e4ff0296f11bc15b10b3
Bug-Id: https://cam.sprc.samsung.pl/browse/WPMEDMAIN-2915
Signed-off-by: Marcin Zdun <m.zdun@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
liwei [Thu, 24 Jun 2021 10:07:43 +0000 (18:07 +0800)]
[Tizen6.5 Migration]Skip logic of check firstrender in resume
Resume() is invoked after window show, and window show is
called in "ready-to-show", in "ready-to-show" event,
firstrender has been set to true, so check firstrender
logic can be skipped in resume.
Reference Patch:
https://review.tizen.org/gerrit/260240/
Change-Id: If8be2926596965e75fe2324a87f4a2ccd0de084f
Signed-off-by: liwei <wei90727.li@samsung.com>
Bot Blink [Wed, 23 Jun 2021 07:27:34 +0000 (07:27 +0000)]
Merge "Fix an error of 'Object has been destroyed'" into tizen
Bot Blink [Wed, 23 Jun 2021 07:22:56 +0000 (07:22 +0000)]
Merge "[Service] Upgrade device home as v1.0.5" into tizen
DongHyun Song [Wed, 23 Jun 2021 02:21:55 +0000 (11:21 +0900)]
Fix an error of 'Object has been destroyed'
When app is terminate by SIGTERM or tizen.application...exit(),
There comes a TypeError 'Object has been destroyed'
suspend() will be called again on quit() for backgroun-runnable
apps, but since this.mainWindow can be already destroyed, below
code can throw exception with destroyed object 'this.mainWindow'
- addonManager.emit('lcSuspend', this.mainWindow.id);
It is enough to call setEnable() for suspending (if window is alive)
Change-Id: Ie2e99cf74ca412902e4456901dc8350f038e3067
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Thu, 17 Jun 2021 04:01:39 +0000 (21:01 -0700)]
[Service] Upgrade device home as v1.0.5
- Use RSA cryptography for data payload under websocket connection
- Share RSA keys between express and websocket via session middleware
- Replace ws with socket.io which has been used by offload.js
- Use timestamp salt for every ReST API request
- Don't use insecure Math.random()
Change-Id: I88db4aeff042540ba69d1df5b69a518b28e2d1fe
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
SangYong Park [Wed, 16 Jun 2021 08:26:12 +0000 (17:26 +0900)]
[Migration] Fix finalize code
'quit' of app and 'closed' of BrowserWindow emit order is changed.
so, fix code that has dependency to remained BrowserWindow.
Related:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/260052/
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/259881/
Change-Id: Ib988f230822c94becbf1d735f82fe85b22250f66
Signed-off-by: SangYong Park <sy302.park@samsung.com>
Bot Blink [Wed, 16 Jun 2021 07:15:55 +0000 (07:15 +0000)]
Merge "[VD] add Gaming hub feature" into tizen
yman.son [Fri, 11 Jun 2021 06:10:01 +0000 (15:10 +0900)]
[VD] add Gaming hub feature
In the gaming hub panel,
there is a scenario where webapp plays sound after background launch.
Also, it should be possible to switch to UI mode.
At this time, must support multitasking unconditionally.
Add three fetures to support this.
1. Transition of FG and BG through Appcontrol
2. disable multitasking feature according to special App Control.
3. window's hide is required for Appcontrol BG transition. (change WebEngine code)
Change-Id: If6760ab87ece3966599cab5f393d043467b39187
Signed-off-by: yman.son <yman.son@samsung.com>
yman.son [Tue, 15 Jun 2021 10:01:20 +0000 (19:01 +0900)]
[VD]Add the deactivation method to all wrt.loader on TV
Disable wrt-loader in low memory state.
performance analysis team's requests.(ckid.chae)
Change-Id: I34bcb9938cd8672d0bdcf159f9cae10abeec6c4b
Signed-off-by: yman.son <yman.son@samsung.com>
Aron Kim [Tue, 8 Jun 2021 04:21:54 +0000 (13:21 +0900)]
[Addon] nodeIntegrationInSubFrames support.
Add electron api, which is not supported in wrtjs
Relate patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/259438/
Change-Id: I4b386bdce9070ebcd368d585e1ed30b3197cc1c3
Signed-off-by: Aron Kim <aron.kim@samsung.com>
Aron Kim [Mon, 31 May 2021 08:01:10 +0000 (17:01 +0900)]
[Addon] send api support.
Add electron api, which is not supported in wrtjs,
and support to be used as addon api
Relate patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/259017/
Change-Id: I49d001eb4492c3c9a5412fb192b4ffd414a4c564
Signed-off-by: Aron Kim <aron.kim@samsung.com>
Bot Blink [Wed, 2 Jun 2021 04:01:13 +0000 (04:01 +0000)]
Merge "[Service] Reset tizen.application.getCurrentApplication().appInfo" into tizen
Aron Kim [Fri, 5 Mar 2021 05:04:32 +0000 (14:04 +0900)]
[Addon] executeJavaScript api support.
Add electron api, which is not supported in wrtjs,
and support to be used as addon api
Relate patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/254598/
Change-Id: Ibf98dc36643de538a0656f876e67e4e8dc6f1edf
Signed-off-by: Aron Kim <aron.kim@samsung.com>
liwei [Fri, 28 May 2021 08:34:22 +0000 (16:34 +0800)]
[Service] Reset tizen.application.getCurrentApplication().appInfo
In global mode, tizen.application.getCurrentApplication().
appInfo.packageId() is org.tizen.chromium-efl, bcz
getCurrentApplication() get appinfo by pid, so WRT reset
getCurrentApplication().appInfo to application.getAppInfo.
Change-Id: I4ed6c2f6588db318f9589884e6a183662ff0f33a
Signed-off-by: liwei <wei90727.li@samsung.com>
jaekuk, lee [Mon, 17 May 2021 07:40:05 +0000 (16:40 +0900)]
[Addon] Set tv app path if target is tv
Apps are installed in the "/opt/usr/apps" path on TV,
so if target is tv, change keyTerm value to "apps".
Change-Id: Iae3c7c590189dfec48304063030c9b040a6dcccb
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
Chunling Ye [Fri, 14 May 2021 03:44:46 +0000 (11:44 +0800)]
[Service] Make correctly smack label for some special service app
For some app like
111399000136, it's packagid is 'obxi69OqU7' which same with UI app's
package ID, but the service id is 'obxi69OqU4.service', if get packagid from service
name, 'obxi69OqU4' will get which is not 'obxi69OqU7'. So set smack label by service
app name, issue will happen.
Now get the packagid from webapis.getPackageId.
Change-Id: If7d0a53bc56bd7f002b4406ba78bc25176bbec60
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
Youngsoo Choi [Thu, 13 May 2021 14:20:36 +0000 (07:20 -0700)]
Recover "Fix issue in multi view(window) scenario"
This recovers commit
ab17ff17c22bdacdd7948d33f57b6024cb37613e.
Change-Id: Icc803dc66a78bf4d3468973cba068b89eddb2774
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Thu, 13 May 2021 14:00:16 +0000 (07:00 -0700)]
Revert "Fix issue in multi view(window) scenario"
We are facing with urgent public release
but unfotunately this patch blocks wrtjs build
and there's no time to build chromium in OBS.
So, we will revert and recover this patch as soon as possible.
This reverts commit
ab17ff17c22bdacdd7948d33f57b6024cb37613e.
Change-Id: I8384a762b21e4027d267532667036907889d4822
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Thu, 13 May 2021 13:27:25 +0000 (06:27 -0700)]
[Service] Upgrade device home as v1.0.4
- Generate session secret key in random
- Move checking pincode retrial number to server side
- Don't use Math.random API
- Don't re-use pin code
- Prevent connection with same session id from different devices
- Prevent execution of non MDE apps
- Remove x-powered-by header
Change-Id: I6ef7deb26c9f50655894b76ef63b92186a4426e0
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Insoon Kim [Wed, 12 May 2021 07:59:12 +0000 (00:59 -0700)]
[SignalingServer] Remove computing offloading
This removes the unused computing offloading feature in
the signaling server.
Change-Id: I39be0281c524f2bd5bcb24d425125b06bb2ead39
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Bot Blink [Wed, 12 May 2021 02:18:22 +0000 (02:18 +0000)]
Merge "[Tizen6.5 Migration][Service] call onRequest() when app launched again" into tizen
Bot Blink [Wed, 12 May 2021 02:09:25 +0000 (02:09 +0000)]
Merge "Fix issue in multi view(window) scenario" into tizen
liwei [Thu, 1 Apr 2021 05:26:55 +0000 (13:26 +0800)]
Fix issue in multi view(window) scenario
This patch fix issue when app use "window.open("***.html")".
ex. newpage = window.open ('page.html', 'page', 'height=100,
width=800, top=100, left=100')
If main window's "ready to show" event is invoked after
newpage create("browser-window-created" event), WRT need show
the latest view(window) in window list.
Native Patch:
https://review.tizen.org/gerrit/257970/
Change-Id: I4c5c5b7930de4509cda52a8a8147de0b36d57f97
Signed-off-by: liwei <wei90727.li@samsung.com>
DongHyun Song [Thu, 6 May 2021 05:07:58 +0000 (14:07 +0900)]
[Tizen6.5 Migration][Service] call onRequest() when app launched again
When the app launched again, onRequest() event will
be called to handle different appcontrol data.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/257913/
Change-Id: I255d9882f79196b60f77f3504a7d012963f60c1c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
SangYong Park [Thu, 6 May 2021 01:31:33 +0000 (10:31 +0900)]
[Tizen6.5 Migration] Prevent window showing during termination
Show previous window when current window was closed.
but, window showing causes invalid memory access in termination.
so, prevent window showing during app termination.
Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/257882/
Change-Id: I7878594d5ba12b5300523e00262ff84d95072ba7
Signed-off-by: SangYong Park <sy302.park@samsung.com>
DongHyun Song [Fri, 7 May 2021 02:09:05 +0000 (11:09 +0900)]
[VD] Change Tizen 6.5 repository
OneMain branch has started Tizen 6.5 release.
Change-Id: I8921d0d51749fd7fe20358f9142989984f878940
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Fri, 30 Apr 2021 01:08:51 +0000 (01:08 +0000)]
Merge "[SignalingServer] Connect signaling server by https" into tizen
Insoon Kim [Thu, 29 Apr 2021 02:22:35 +0000 (19:22 -0700)]
[SignalingServer] Connect signaling server by https
This connects to the signaling server from the castanets by https.
Change-Id: I754b4ba2efd399d4be0dbe86fe21104f45da82d0
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
DongHyun Song [Wed, 28 Apr 2021 00:49:26 +0000 (09:49 +0900)]
[VD] Remove interceptFileProtocol feature on wrtjs
This feature will be handled on native side.
Related patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/257519/
Change-Id: I6b73b4e444140c0d9faf82d699d85f322d535dda
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Insoon Kim [Tue, 27 Apr 2021 11:27:07 +0000 (04:27 -0700)]
[SignalingServer] Generate self-signed certificate
This removes the prebuilt private key and certificate and generates a
certificate at build time.
Change-Id: I1ed0c042e488b7abb3eca724c648c68b714bc0a4
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Youngsoo Choi [Tue, 27 Apr 2021 06:28:37 +0000 (23:28 -0700)]
fixup! [Service] Upgrade device home as v1.0.3
The unused file jake/bin/bash_completion.sh is removed.
Change-Id: I8bd02ca609a1c3949371ed02d523a7fa7c656edd
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Tue, 27 Apr 2021 04:20:17 +0000 (21:20 -0700)]
[Service] Upgrade device home as v1.0.3
- Removal of relative path from device home server
- Generating RSA keys when failed to input pincode 5 times
Change-Id: Idcd8b20c63e97fe8cda8950ab23da0a00e157640
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Hunseop Jeong [Fri, 16 Apr 2021 07:11:01 +0000 (00:11 -0700)]
[DeviceHome] Remove unnecessary files
The unnecessary test, example folders and md, map files are removed.
The rom size is saved from 8060 KB to 5140 KB.
Change-Id: I321bceec31080aca1cee4cd5be415bac7d0e497b
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Fri, 16 Apr 2021 05:59:03 +0000 (22:59 -0700)]
[hotfix] Ignore type checking for edge
The edge library is applied to chromium-efl but
the image including it isn't ready yet.
Note that once the image is created, this will be reverted.
Change-Id: I294890829c120993655f94d75b0cac45cc501cc7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Hunseop Jeong [Fri, 16 Apr 2021 05:20:31 +0000 (14:20 +0900)]
[DeviceHome] Reduce size of libraries
Change-Id: I07ff8bb243f8f138c7f46aec57242319582a0e6f
Signed-off-by: Hunseop Jeong <hs85.jeong@samsung.com>
Youngsoo Choi [Fri, 16 Apr 2021 04:48:42 +0000 (21:48 -0700)]
fixup! [DeviceHome] Revmoe duplicated libraries
The missing isarray is added.
Change-Id: I1d40f8b1196565b7661a5a83bcf1c43277e8f5c7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Fri, 16 Apr 2021 03:53:45 +0000 (20:53 -0700)]
[DeviceHome] Revmoe duplicated libraries
To save rom size, the duplicated libraries are removed.
Change-Id: I04480f07de778ba8a96a1115036e343a0fb6609c
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Thu, 15 Apr 2021 11:18:32 +0000 (04:18 -0700)]
[Service] Integrate DeviceHome and SignalingServer
The DeviceHome and the SignalingServer are unified
to reduce rom size by sharing common parts.
Change-Id: Id16b850e2277359d7446bd0dc961007b68fb5244
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Insoon Kim [Thu, 15 Apr 2021 01:02:37 +0000 (18:02 -0700)]
[SignalingServer] Optimize dependent modules
This reduces node_modules size from 13M to 9.8M
Change-Id: I7de6964204b659dfa6b1c71e4378622772d90b4c
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Insoon Kim [Thu, 15 Apr 2021 01:04:57 +0000 (18:04 -0700)]
[SignalingServer] Disable 'onboot' property
The signaling server is not started automatically on boot.
The signaling server can be started using by
$ app_launcher -s YwfXAVFyIw.Service
Change-Id: I8182a1aa4b30048c004e6aaf106c7c39a1892110
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Bot Blink [Wed, 14 Apr 2021 11:49:15 +0000 (11:49 +0000)]
Merge "[Service] Add edge orchestration interface" into tizen
Bot Blink [Wed, 14 Apr 2021 11:47:02 +0000 (11:47 +0000)]
Merge "[SignalingServer] Preload to Public image" into tizen
Bot Blink [Wed, 14 Apr 2021 11:41:44 +0000 (11:41 +0000)]
Merge "[SignalingServer] Forked Signaling Server" into tizen
Insoon Kim [Wed, 14 Apr 2021 03:14:30 +0000 (20:14 -0700)]
[SignalingServer] Preload to Public image
This preloads Signaling Server service to Public image by default.
Change-Id: Icb800a7ac8e3262fc41d7d40df7f5dc28431997e
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Insoon Kim [Wed, 14 Apr 2021 02:27:42 +0000 (19:27 -0700)]
[SignalingServer] Forked Signaling Server
This is forked from
https://github.sec.samsung.net/HighPerformanceWeb/offload.js
This signaling server will be integrated later to
https://github.sec.samsung.net/HighPerformanceWeb/OffloadingSignalingServer
Change-Id: If4c5511d26d79ac3bcef76bc5958a50cae6824fb
Signed-off-by: Insoon Kim <is46.kim@samsung.com>
Youngsoo Choi [Wed, 14 Apr 2021 09:14:05 +0000 (02:14 -0700)]
[Service] Upgrade device home as v1.0.2
- Improval of web socket connections
- Removal of d2d app dependent logic
- Generating RSA keys in runtime for security reason
Change-Id: Icad70d8f8d267e29810de6c998795fce948af3f4
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Tue, 13 Oct 2020 09:35:00 +0000 (02:35 -0700)]
[Service] Add edge orchestration interface
This provides initial edge orchestration interface.
Change-Id: I432db4ec011a5bbaf83ea65e1f0bfe9877690ac4
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Thu, 8 Apr 2021 05:40:02 +0000 (14:40 +0900)]
[VD] Remove unnecessary log of file protocol interceptor.
If completion callback has no error, skip to print it.
Change-Id: I90274563b9d25ab8553c788a66a664acc5c07a5a
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Tue, 6 Apr 2021 02:40:16 +0000 (19:40 -0700)]
[DeviceHome] Remove RSA keys
The RSA keys will be generated in runtime on another patch later.
Change-Id: I0cbe2a1ab1d4d37a416ec3a0c03b283f235c1032
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Fri, 2 Apr 2021 03:52:34 +0000 (12:52 +0900)]
Drop smack/capability main thread with standalone model
With standalone model, the main thread also must have its app label.
Change-Id: I53718b1f260744bed0b55ac4b4672b0a7f548f0a
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Youngsoo Choi [Tue, 30 Mar 2021 10:30:16 +0000 (03:30 -0700)]
[Service] Upgrade device home as v1.0.1
This upgrades device home as v1.0.1 for public and product tv profiles.
The source size is 11 MB.
- D2D app launcher template on device home
- Session control for D2D apps with remote deivces
- Pin-code verification between TV and the other targets using RSA crypto
- Removal of basic remote controller that will be provided by D2D app
- Removal of unnecessary files from tau library (13 MB -> 5 MB)
- Removal of duplicated node modules
Change-Id: I1e7b6c14250d8f670c81c75f42df8c7971137fff
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Tue, 30 Mar 2021 05:39:34 +0000 (14:39 +0900)]
[VD] Remove importCertificate()
This will be handled on native side.
Related chromium-efl patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/255893/
Change-Id: I7b6ac68b1716d74d2c0c6cfb1f6a6da5d5cc0502
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
Bot Blink [Tue, 30 Mar 2021 05:40:07 +0000 (05:40 +0000)]
Merge "[VD] Segregates WebApplicationDelegateTV for TV profile" into tizen