liwei [Mon, 30 Dec 2019 07:28:58 +0000 (15:28 +0800)]
[VD] Fix deeplink issue in current known scenario
This patch will cover well deeplink issues which we have known.
Common WRT's deep link policy is very simple, it just check sameness,
but to support compatibility of previous apps on TV side, VD WRT
has to handle below difference cases.
1) 'TVing': not-reload
From http://d2ehepluhe2jv7.cloudfront.net/#/
to http://d2ehepluhe2jv7.cloudfront.net
2) SlingTV: not-reload
From file:///index.html#/login
to file:///index.html
3) 'Amazon Music': will-reload
From file:///index.html#!/main/home
to file:///index.html#!/deepLink
However, this logic has a potential problem with below case,
even though the URL has reload to appcontol's src but, it will be
skipped.
To solve this problem is easy but, it conflicts previous compatibility
functionality.
From file:///index.htmlx
to file:///index.html
Change-Id: I401a8ead2f745de3ce938b16ac5c11efb4d9bd66
Signed-off-by: liwei <wei90727.li@samsung.com>
liwei [Tue, 24 Dec 2019 10:09:14 +0000 (18:09 +0800)]
[VD] Cancel Auth if no proxy usrname/passwd
Follow 5.0 spec, if proxy need login and no usrname/passwd,
WRT will cancel auth not show popup for user to input usrname
and passwd.
Change-Id: Ie1851b745e75fb065d3d96bb22cc4c824f08f0b5
Signed-off-by: liwei <wei90727.li@samsung.com>
DongHyun Song [Wed, 18 Dec 2019 02:48:47 +0000 (02:48 +0000)]
Revert "[VD][Workaround] Show popup when need default client cert"
This reverts commit
e2ffe802b48f3465572d60ba3b6337409d758ea8.
Change-Id: I55fbeeaf1ceab5fea8b9a82bd0529aa5d7ed14f9
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
liwei [Thu, 5 Dec 2019 13:56:24 +0000 (21:56 +0800)]
[VD] Fix issue for app deeplink that page is not reload
When amazon music app(
3201710014874) is shown in FG, and press
preview in amazon music, page is not reload, bcz WRT think request
src is the same with original url.
request src is "file:///index.html#!/deepLink",
original url is "file:///index.html#!/main/home".
Actually they are different, WRT should reload it.
Change-Id: I7f7b5767c1a34b017f80d6babe8e58f760f967a1
Signed-off-by: liwei <wei90727.li@samsung.com>
Sungsik Han [Tue, 3 Dec 2019 05:08:36 +0000 (05:08 +0000)]
Merge "Fix the issue that OnPause function is called after showing splash image" into tizen_5.5
Youngsoo Choi [Thu, 28 Nov 2019 05:59:01 +0000 (21:59 -0800)]
fixup! [Service] Refactor tizen extension module to be called on demand
This adds missed _this object.
Change-Id: Ie697fc4e876063e57ec484339861424416a1ef6d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Wed, 27 Nov 2019 12:42:21 +0000 (04:42 -0800)]
[Service] Refactor tizen extension module to be called on demand
The tiezn extension module is loaded on demand to reduce memory usage.
It's not loaded until web service starts.
Change-Id: I760310b617de49bb6f1968cf64d6938d3bec63cb
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
SangYong Park [Fri, 22 Nov 2019 08:17:58 +0000 (17:17 +0900)]
Fix the issue that OnPause function is called after showing splash image
Call showSplashScreen exclicity during create main browser window.
(prevent showTimer if splash screen is applied.)
and fix hideSplashScreen parameter offset.
Change-Id: Ia063d72c9de953321c2263935220aaf83878bdc1
Signed-off-by: SangYong Park <sy302.park@samsung.com>
DongHyun Song [Wed, 20 Nov 2019 02:36:24 +0000 (11:36 +0900)]
[VD] Replaces WRT APIs for TV profile
Related patch:
https://review.tizen.org/gerrit/218144/
Change-Id: If585649d7b9065eac0dc32a7af6cbc665553abdf
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
DongHyun Song [Thu, 21 Nov 2019 01:46:48 +0000 (10:46 +0900)]
[VD] Webapp Cache Optimizer
When wrt-loader is created, call wrt.optimizeCache() to delete
expired (over 1 month) disk cache.
Related patch:
https://review.tizen.org/gerrit/216633/
Change-Id: I09d8b2980ae83ed03278ac0d11cbcca69081553f
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
jaekuk lee [Thu, 21 Nov 2019 09:06:25 +0000 (09:06 +0000)]
Merge "[Add-on] Delete obsolete add-on DB files" into tizen_5.5
Youngsoo Choi [Thu, 21 Nov 2019 04:35:57 +0000 (04:35 +0000)]
Merge "[DA] Update gbs.conf" into tizen_5.5
jaekuk, lee [Wed, 20 Nov 2019 02:30:04 +0000 (11:30 +0900)]
[DA] Update gbs.conf
- Change DA url path to tizen5.5
- Add build_da.sh
Change-Id: Iba2d2b596e0ce794e368bb6ae6007aee1fab4778
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
VBS [Wed, 20 Nov 2019 08:23:40 +0000 (16:23 +0800)]
[VD]Fix account is not logined in automatically when relaunch
Defect id:
DF191018-00567
Issue: when relaunch app Watcha Play(
3201612011352), app change to logout status.
Reason: the src of Watcha Play app is: https://erd2-play.watcha.net/tv
but not index.html. So url request which need the cookie is earlier than
valid cookie path been set.
Fix method: for tv product, set cookie path before loadURL.
Change-Id: I7351d1027c2c6efc90a8e2897aeef2e431b211a7
Signed-off-by: chunling.ye <chunling.ye@samsung.com>
surya.kumar7 [Tue, 19 Nov 2019 09:05:10 +0000 (14:35 +0530)]
[Add-on] Delete obsolete add-on DB files
1. Once installed add-on info has been gathered, add-on
db folder will be filtered to remove DBs of uninstalled
or expired add-ons
2. Introduced a clearAll API to 'options' module
Change-Id: I84d3f271be53d66eae3689bb37c98c8a228e1815
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
jaekuk lee [Tue, 19 Nov 2019 10:39:15 +0000 (10:39 +0000)]
Merge "[Public] Make not to modify gbs.conf when tizen version is upgraded" into tizen_5.5
liwei [Mon, 11 Nov 2019 10:24:41 +0000 (18:24 +0800)]
[VD] When login in proxy server, check usrname/passwd from vconf
For TV product, when login in proxy server, get usrname/passwd from
vconf(memory/dnet/proxy), if usrname/passwd exist, login proxy server
automatically, popup will not be shown anymore.
Vconf format: http://ubuntu:123456@109.123.100.175:8899
Native Patch:
https://review.tizen.org/gerrit/217425
Change-Id: I042f9f2f8fbe678065a6b76a9e943dfbf7b4db62
Signed-off-by: liwei <wei90727.li@samsung.com>
Youngsoo Choi [Tue, 19 Nov 2019 04:59:09 +0000 (20:59 -0800)]
[Public] Make not to modify gbs.conf when tizen version is upgraded
Whenever the latest tizen version is released, gbs.conf has been modified
to add new repositories. It was painful routine.
With this changes, the gbs.conf doesn't need to be modified anymore and
all we have to do is just setting |DEFAULT_TIZEN_VERSION| to proper version
in common.sh like below.
> export DEFAULT_TIZEN_VERSION=5.5
Change-Id: I7c288d221d2d7eb3eba5cf4eb7894c24f6ffea6e
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
jaekuk lee [Tue, 19 Nov 2019 00:40:19 +0000 (00:40 +0000)]
Merge "[WRTjs] Showing detailed error cause in certificate error popup" into tizen_5.5
jaekuk lee [Tue, 19 Nov 2019 00:39:15 +0000 (00:39 +0000)]
Merge "[Add-on] Improve the approach to obtain db name for 'options' module" into tizen_5.5
surya.kumar7 [Thu, 14 Nov 2019 10:15:42 +0000 (15:45 +0530)]
[Add-on] Improve the approach to obtain db name for 'options' module
1. Options API shouldn't depend on the 'name' parameter to
identify the DB file to use. Instead track in the call stack
to identify the package ID of the add-on app using it
2. Cleaned up the add-on modules loading implementation
Change-Id: I4008a7ac81e6711efdeb9c1ff2a3c988ffa40d19
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
geuneonpark [Tue, 12 Nov 2019 06:28:54 +0000 (15:28 +0900)]
[WRTjs] Showing detailed error cause in certificate error popup
When a certificate problem occurs in a WebApp,
the popup shows a detailed error cause.
This patch is requested by Security team and related to:
https://review.tizen.org/gerrit/217498/
Change-Id: I18565d3a85771f43d79d6526bcef1a39ea472a47
Signed-off-by: geuneonpark <geuneon.park@samsung.com>
surya.kumar7 [Tue, 5 Nov 2019 12:53:04 +0000 (18:23 +0530)]
[Addon] Handle exceptions and errors thrown from add-ons code
1. Node's event emitter doesn't execute listener code in
a safe environment which means if an add-on code encounters
an unhandled exception, all the other add-ons which registered
later than this, will be deprived of execution
2. A mapping relationship between an event we emit & a dedicated
add-on callback function is established
3. Limit a listener to be added as callback only once
Change-Id: I42c989cbe5bac753e875aa74e42afc5c5e35bd90
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
jaekuk lee [Wed, 13 Nov 2019 04:44:49 +0000 (04:44 +0000)]
Merge "[Service][UI] Expose primitives and standard objects" into tizen_5.5
jaekuk lee [Wed, 13 Nov 2019 04:44:34 +0000 (04:44 +0000)]
Merge "[Service][UI] Support Web device api Extensions" into tizen_5.5
jaekuk lee [Wed, 13 Nov 2019 04:15:37 +0000 (04:15 +0000)]
Merge "Revert "Set default background color for product wearable."" into tizen_5.5
Aron kim [Thu, 29 Aug 2019 08:33:36 +0000 (01:33 -0700)]
Revert "Set default background color for product wearable."
Change the default background color black to white again.
This reverts commit
457b861449738f2e5406c75e94909e4e3aeb6184.
Change-Id: I4a879271d6f24bd0ef86d0fd23bdeebe3a2da513
Signed-off-by: Aron kim <aron.kim@samsung.com>
Aron kim [Thu, 29 Aug 2019 08:33:36 +0000 (01:33 -0700)]
Revert "Set default background color for product wearable."
Change the default background color black to white again.
This reverts commit
457b861449738f2e5406c75e94909e4e3aeb6184.
Change-Id: Id8b899b24f6daccd442df43d0fd97ad5cf543835
Signed-off-by: Aron kim <aron.kim@samsung.com>
Youngsoo Choi [Fri, 8 Nov 2019 02:19:02 +0000 (11:19 +0900)]
[Service][UI] Expose primitives and standard objects
The primitives and standard objects are exposed
to fix following undefined and type-mismatched errors:
> Cannot set property 'setDate' of undefined
> Cannot convert 11,21,31,71,81,91 to Uint8Array
The list refers to following site:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
Change-Id: Ia4a222b0cf0c5ede3fc67ec7bf77ed435249abd0
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
k2.nagaraju [Thu, 12 Sep 2019 12:24:55 +0000 (21:24 +0900)]
[Service][UI] Support Web device api Extensions
Added support for web device api extensions.
Change-Id: I0b79ef9ef5ed8eef8a51052a8f921890970dfcc0
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
YONGMAN SON [Mon, 11 Nov 2019 07:28:50 +0000 (16:28 +0900)]
[Migration][WRTJS][vd][bugfix] change url compare code.
url : https://review.tizen.org/gerrit/#/c/platform/framework/web/wrtjs/+/216442/
If the page url doesn't change, don't need to reload.
But it's being reloaded by a bug.
src = http://d2ehepluhe2jv7.cloudfront.net
_this.webApplication.mainWindow.getURL() = http://d2ehepluhe2jv7.cloudfront.net/#/
(Compare the loaded url with the url to be loaded.
Some special characters make the url different.)
Change-Id: I985f7511da5ee861a3edfc321d4ed18aa67dcaad
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
surya.kumar7 [Tue, 5 Nov 2019 09:29:28 +0000 (14:59 +0530)]
Remove add-on events to prevent add-ons from monitoring other listeners
A couple allowed add-on events can be used to eavesdrop on other
add-ons or examine other listeners' code. Removed them to avoid
any exploits.
Change-Id: I9791d82516f2f263bf2e4f5ef7c793eadda85b35
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
DongHyun Song [Thu, 31 Oct 2019 14:16:39 +0000 (14:16 +0000)]
Merge "[WRTJS][vd][bugfix] change url compare code. kona :
DF191021-00235" into tizen
YONGMAN SON [Fri, 25 Oct 2019 02:24:26 +0000 (11:24 +0900)]
[WRTJS][vd][bugfix] change url compare code.
kona :
DF191021-00235
If the page url doesn't change, don't need to reload.
But it's being reloaded by a bug.
src = http://d2ehepluhe2jv7.cloudfront.net
_this.webApplication.mainWindow.getURL() = http://d2ehepluhe2jv7.cloudfront.net/#/
(Compare the loaded url with the url to be loaded.
Some special characters make the url different.)
Change-Id: I18947c0d7641d395ae5797c3c85890424871e1e8
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
jaekuk lee [Mon, 28 Oct 2019 02:21:57 +0000 (02:21 +0000)]
Merge "[Addon] Refactor event emitter object handling & operations through it" into tizen
surya.kumar7 [Fri, 18 Oct 2019 11:57:21 +0000 (17:27 +0530)]
[Addon] Refactor event emitter object handling & operations through it
1. While sending event emitter object to add-ons, visibility
is limited to only two of its functions - on & off
2. Invalid events are discarded even before it's passed to
EventEmitter object
3. Removed an excess dependancy between Runtime & WebApplication
while handling event emitter object
4. Removed a bit unused code
Change-Id: Ide4b8772eb6881384fd4b2bbd32562826ca4ea85
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
DongHyun Song [Fri, 18 Oct 2019 07:30:53 +0000 (16:30 +0900)]
[VD][Workaround] Show popup when need default client cert
This is for detecting apps, which need TV default client cert.
TV default client certification will be expired soon, but we cannot
know which apps use this default client cert.
So that checking these apps by SQA verification, adds popup window.
This patch will be reverted after QA verification
Change-Id: I8bafbbb2150234a43745d1f95a640726ee44eb26
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
jaekuk lee [Fri, 18 Oct 2019 07:21:06 +0000 (07:21 +0000)]
Merge "Skip exit of bg runnable app even if multitasking is not supported" into tizen
DongHyun Song [Fri, 18 Oct 2019 06:24:58 +0000 (15:24 +0900)]
Skip exit of bg runnable app even if multitasking is not supported
Fix background support app's termination issue when multitasking is
false.
Even though multitasking is false, the app is background runnable app,
it must run as working in BG.
From XWALK, WebApplication::Suspend() has a logic that it check first
background_support_enabled() value. If it is false, check if its
multitasking option.
Change-Id: I1c93f8a78961e52ecf7bff731021612ee9954974
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
jaekuk lee [Fri, 18 Oct 2019 05:54:20 +0000 (05:54 +0000)]
Merge "fixup! Fix application launch issue." into tizen
jaekuk lee [Fri, 18 Oct 2019 05:24:09 +0000 (05:24 +0000)]
Merge "[Addon] Expose a module 'addonapi' for addons usage" into tizen
surya.kumar7 [Thu, 17 Oct 2019 16:48:44 +0000 (22:18 +0530)]
fixup! Fix application launch issue.
WebApplication's suspended state was wrongly initialized to
true, causing the delay(of 'ready-to-show' event) timer
to not be fired
Scenario can be tested by connecting to a slow WiFi &
loading a website
Change-Id: I81529a1d70c46ad219adaffb2ac28ac7c959a76c
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
surya.kumar7 [Thu, 25 Jul 2019 12:34:20 +0000 (18:04 +0530)]
[Addon] Expose a module 'addonapi' for addons usage
Add-ons can call require on 'addonapi' to receive an object
from both browser & renderer & receives addon utility functions
Change-Id: I55baec1e57f37d7efec39cef8fbacf2aab1b32b8
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
DongHyun Song [Tue, 1 Oct 2019 02:34:56 +0000 (11:34 +0900)]
Add logs for debugging
Add some logs for easy debugging
Change-Id: I9b17542ad97c0088fd25242c90c02853f141ec4a
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
jaekuk, lee [Fri, 11 Oct 2019 01:43:25 +0000 (18:43 -0700)]
Remove addon_setting_app
This app was moved to profile/mobile/apps/web/webapp-addon-setting.
Change-Id: I45b5c367c2c617068b11d9df72f03292f659e4e9
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
Youngsoo Choi [Mon, 7 Oct 2019 05:40:08 +0000 (22:40 -0700)]
[Service][UI] Release all remaining timers when stopService is called
The remaining timers by developer mistakes should be released
by ui service framework when stopService is called.
This provides overrided setInterval, clearInterval, setTimeout,
and clearTimeout to manage timer reference count and handlers.
Change-Id: I0470a8e696646efa33c63fca7627819ad2d7f893
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
DongHyun Song [Mon, 7 Oct 2019 04:04:44 +0000 (13:04 +0900)]
Add and rename APIs for RWI termination
1)
To stop binded debugging RWI port, call stopInspectorServer().
2)
To close all dialogs while finalize(), call cancelDialogs().
Sometimes there are crash problems if Javascript dialogs are remained
Related chromium-efl patch:
https://review.tizen.org/gerrit/215309/
Change-Id: I5efee849616ff00ea7d9b8431ffd630d494602bb
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
liwei [Tue, 8 Oct 2019 06:35:08 +0000 (14:35 +0800)]
Revert "[VD] Fix crash problem by low memory callback"
This reverts commit
47d30ddaf080e5db9ca9ef4585987e6c51db7ebe.
Change-Id: If7424c6b1e96b257b5a58b93b74013eb680d270a
Signed-off-by: liwei <wei90727.li@samsung.com>
hyunduk.kim [Fri, 27 Sep 2019 06:13:51 +0000 (15:13 +0900)]
[Addon] Add new event 'contentDidFinishLoad'
This event is for the timing when WebContents emits
'did-finish-load'.
The document[1] says that it is emitted when the navigation
is done, i.e. the spinner of the tab has stopped spinning,
and the 'onload' event was dispatched.
[1] https://electronjs.org/docs/api/web-contents#event-did-finish-load
Change-Id: I335f26e9efc2c5f1280f25e496d5418e8d75440c
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
jaekuk lee [Mon, 7 Oct 2019 05:18:22 +0000 (05:18 +0000)]
Merge "[Service][UI] Expose functions and properties of global object" into tizen
jaekuk lee [Mon, 7 Oct 2019 05:11:45 +0000 (05:11 +0000)]
Merge "Revert "[Addon] Expose a module 'addonapi' for addons' usage"" into tizen
Hyunduk Kim [Mon, 7 Oct 2019 05:11:36 +0000 (05:11 +0000)]
Revert "[Addon] Expose a module 'addonapi' for addons' usage"
This reverts commit
d5cfbf2f6cc4ca207e4d0b77ac17ed5a6e9a451a.
Change-Id: Ib0618313204928bead89c97abc039868fa74dc90
jaekuk lee [Mon, 7 Oct 2019 05:08:40 +0000 (05:08 +0000)]
Merge "[Addon] Update the logic to update addon package list" into tizen
jaekuk lee [Mon, 7 Oct 2019 05:07:49 +0000 (05:07 +0000)]
Merge "[Addon] Expose a module 'addonapi' for addons' usage" into tizen
Youngsoo Choi [Fri, 4 Oct 2019 04:53:08 +0000 (21:53 -0700)]
[Service][UI] Expose functions and properties of global object
This enables functions and properties of global object,
such as setInterval, setTimeout, and etc in ui service apps.
Change-Id: Iebf68a53fc1e0f59e71c03f6ed38eae0d17a138a
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Tue, 1 Oct 2019 06:47:49 +0000 (23:47 -0700)]
fixup! [Service][UI] Provide sandbox context for each ui servcie app
This prevents sharing module with launched service apps.
Change-Id: Ibfe6524e74e9122e1fe2264627f943b6a0c6598e
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
hyunduk.kim [Tue, 24 Sep 2019 07:21:22 +0000 (16:21 +0900)]
[Addon] Update the logic to update addon package list
This patch will :
- Only collect package info when it receives 'addon-installed'
- Update addon DB files when it receives 'wgt-checking-done'
- Handle the case when an addon was uninstalled by Application Manager
It should work together with [1] of chromium-efl.
[1] https://review.tizen.org/gerrit/214586
Change-Id: Iae13e65abd03642801f7a047af4dd856166b55c6
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
Youngsoo Choi [Thu, 26 Sep 2019 06:46:45 +0000 (23:46 -0700)]
[Service][UI] Provide sandbox context for each ui servcie app
This provides sandbox context for each ui service application
and supports startService handler, onStart, and onStop APIs.
Change-Id: I72291fe162ab6966deabc20ae7ded77f0d8f6f08
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Sungsik Han [Mon, 30 Sep 2019 05:48:49 +0000 (05:48 +0000)]
Merge "[Service][UI] Add startService handler" into tizen
SangYong Park [Fri, 20 Sep 2019 16:33:18 +0000 (01:33 +0900)]
[Service][UI] Add startService handler
This adds startService handler.
Change-Id: I9008245b9affee2faf7b04d767755445852b84ad
Signed-off-by: SangYong Park <sy302.park@samsung.com>
surya.kumar7 [Tue, 24 Sep 2019 14:01:48 +0000 (19:31 +0530)]
Fix product wearable repo url
Product wearable repo was pointing to wrong url so build did not start.
Repository url is now fixed and build runs without problem.
Reference: https://review.tizen.org/gerrit/214571
Change-Id: If1452aafbd120bfd61f6782cdeff53f0b904530f
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
surya.kumar7 [Thu, 25 Jul 2019 12:34:20 +0000 (18:04 +0530)]
[Addon] Expose a module 'addonapi' for addons' usage
Add-ons can call require on 'addonapi' to receive an object
which provides a few functions
Change-Id: Ib28d032354f188aeb6bc1fa06e8f4b3c9bbd7772
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
liwei [Fri, 20 Sep 2019 09:31:14 +0000 (17:31 +0800)]
[VD][Workaround] Don't call wrt.getInstalledPkg and wrt.reqUninstallPkg
For release wrtjs code, just don't call wrt.getInstalledPkg and wrt.reqUninstallPkg
in TV, after chromium patch is released, this patch will be reverted.
(Chromium patch: https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/214161/)
Change-Id: Ia8f583ef941802c1cf8f5317dee179fbaa140289
Signed-off-by: liwei <wei90727.li@samsung.com>
DongHyun Song [Fri, 20 Sep 2019 07:58:54 +0000 (16:58 +0900)]
[VD] Fix crash problem by low memory callback
This is workaround patch to resolve crash problem by low memory callback
This will be fixed after chromium-efl released on INT
Change-Id: I71382c7005a970f9fe23b2d88c083d45d8b2fae8
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
surya.kumar7 [Thu, 19 Sep 2019 15:15:04 +0000 (20:45 +0530)]
Resolve JS errors in electron apps
webApplication object was used without guard in electron
apps
Change-Id: I86aa1b57e4e964be5041ba96f1488a9aaab2e3d2
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
avnraju.u [Thu, 12 Sep 2019 13:15:00 +0000 (18:45 +0530)]
[Addon] UI layout re-arrangement for wearable devices.
In wearable devices, due to the size & shape of screen,
it is hard to touch 'X' button in the screen.
This fixes the issue
Change-Id: Ie4ea1a6f4e4a7281fd5f2d6e64d9aa252251f5f8
Signed-off-by: avnraju.u <avnraju.u@samsung.com>
hyunduk.kim [Wed, 11 Sep 2019 08:35:16 +0000 (17:35 +0900)]
[Addon] Addon Package Handling
- Check installed addon pkg list and add it in addons_db.json
- Uninstall addon package requested from Addon Setting App
This should work with commit below in chromium-efl :
https://review.tizen.org/gerrit/213786
Change-Id: Ic4c9d29ff423d045fce1c300602f719cd6ded9e8
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
jaekuk lee [Thu, 19 Sep 2019 05:09:27 +0000 (05:09 +0000)]
Merge "[Addon Setting App] Uninstallation from device" into tizen
jaekuk lee [Thu, 19 Sep 2019 05:07:34 +0000 (05:07 +0000)]
Merge "[Addon Setting App] Remove Repo List Table & Change Texts" into tizen
hyunduk.kim [Wed, 31 Jul 2019 08:45:26 +0000 (01:45 -0700)]
Apply new logic to invoke addon
- EventEmitter based logic
- Each addon needs to register its listener for each event
- AddonManager manages registered listeners
- WebApplication emits each event
- In AddonManager, unused variables and methods are removed
Change-Id: Ib8c163b5f91f6cc2d58fa43293a71c2f6ef8f899
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
ws29.jung [Mon, 16 Sep 2019 06:07:53 +0000 (15:07 +0900)]
Set WRTWindow constructor as BrowserWindow
Inside electron, some functions use constructor to check if it is right object.
However, when condition checks BrowserWindow, WRTWindow object will rejected
even WRTWindow inherit BrowserWindow on C++ side.
This patch will overwrite WRTWindow constructor as BrowserWindow, so now on
WRTWindow will be handled as BrowserWindow.
Change-Id: I878844d4be0cc6a42be38d202a33a27523928f1c
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
DongHyun Song [Thu, 29 Aug 2019 09:19:43 +0000 (18:19 +0900)]
Simplify complicated condition and improve code style
1. Eliminating unnecessary condition check
2. Unfiy variables style
3. Only set cookie path one times
Change-Id: I7eb6eaa4ac6ccf8e1cb2b1d2aee865705e66f776
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
hyunduk.kim [Mon, 16 Sep 2019 06:23:59 +0000 (15:23 +0900)]
[Addon Setting App] Uninstallation from device
When user selects 'X' button for unistallation,
it not only removes the addon from addon DB file
but also unistalls the addon package from device.
- Handle pkgid(package id) field for each installed addon
- The pkgid is passed to wrtjs when user selects to uninstall
- WRTjs eventually invokes package manager API to uninstall
the addon package as you can see in [1] and [2]
- To use the package manager API, this app needs to have
privilege http://tizen.org/privilege/packagemanager.install
and also be packed to wgt with platform privilege level
[1] https://review.tizen.org/gerrit/213786
[2] https://review.tizen.org/gerrit/213787
Change-Id: I547ea9a3aea8487a5759c1886435911819b7491c
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
Sungsik Han [Tue, 17 Sep 2019 01:01:38 +0000 (01:01 +0000)]
Merge "Refactor addon settings app" into tizen
hyunduk.kim [Mon, 16 Sep 2019 05:27:40 +0000 (14:27 +0900)]
[Addon Setting App] Remove Repo List Table & Change Texts
- Remove Repo List Table from main page
- Remove Installation functionality from the Repo List Table
- Change 'ACTIVATE' and 'DEACTIVATE' to 'On' and 'Off'
Change-Id: Ib7797df3e26f560d001335c17136204e518b2f50
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
YONGMAN SON [Fri, 6 Sep 2019 04:31:59 +0000 (13:31 +0900)]
[VD] Wrt.loader changes for low memory status
Low specification models require the wrt-loader to shutdown in low memory conditions.
This feature is supported in tizen_lite model only.
Change-Id: Ieb77c203e66a528dd62864fa7c12120db9cd44ee
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
jaekuk lee [Thu, 5 Sep 2019 11:13:02 +0000 (11:13 +0000)]
Merge "[SettingApp] Adjust Page Size" into tizen
hyunduk.kim [Wed, 4 Sep 2019 08:58:37 +0000 (17:58 +0900)]
[SettingApp] Adjust Page Size
The main page size was too big in mobile.
This fixes :
- Screen size of main page
- Text size of each table
Change-Id: Icc6b3aedf208011eb832e5b3bf6bea826505e273
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
YONGMAN SON [Tue, 3 Sep 2019 04:35:02 +0000 (13:35 +0900)]
[VD] Wrt.loader changes for low memory status
Low specification models require the wrt-loader to shut down in low memory conditions.
Change-Id: I24a43e839da5ebde50e56e1fd49d560ed18defad
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
YONGMAN SON [Mon, 26 Aug 2019 07:01:58 +0000 (16:01 +0900)]
[VD] skip RWI start popup from background execution mode
In background execution mode, there is no way to close the popup because it does not show the window.
So need to disable RWI popup.
WRT TC : [WRTjs] 9.7. background execution RWI
Change-Id: I92f113e6fabc3d51dcf59cb52e05a84936a0e894
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
liwei [Sun, 28 Apr 2019 06:49:20 +0000 (14:49 +0800)]
Support low memory scenario
When low memory happen, JS side will receive 'OnLowMemory' event,
then call api to clear web cache and network cache.
Native Side Link:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/211890/
Change-Id: Ib046d2d619297b1643fd033e5f295ba2f7855fb9
Signed-off-by: liwei <wei90727.li@samsung.com>
Youngsoo Choi [Thu, 29 Aug 2019 03:24:18 +0000 (20:24 -0700)]
fixup! [WRT Service] Provide sandbox context per servcie app and support legacy APIs
This calls client process termination after loading each service app.
Change-Id: Ida5ff3044e233f6d135acf3e7fdd958e58b705b5
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
jaekuk lee [Thu, 29 Aug 2019 03:04:06 +0000 (03:04 +0000)]
Merge "Set CPU Threshold to relaunch wrt-loader everytime" into tizen
jaekuk, lee [Wed, 28 Aug 2019 02:36:41 +0000 (11:36 +0900)]
Refactor addon settings app
1. Remove author-signature.xml and signature1.xml
2. Modify required_version and name
Change-Id: Ibe04baf9c48ce6e26b2b0d41062f8c912282a21f
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
jaekuk lee [Tue, 27 Aug 2019 02:45:36 +0000 (02:45 +0000)]
Merge "Adding base code for addon setting app" into tizen
Youngsoo Choi [Mon, 12 Aug 2019 02:03:05 +0000 (19:03 -0700)]
[WRT Service] Provide sandbox context per servcie app and support legacy APIs
This provides sandbox context per service application
and supports onStart and onRequest legacy APIs on single nodejs instance.
Change-Id: Ia2552c77385bee09ca231a9b70272311c9993724
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Wed, 14 Aug 2019 06:49:58 +0000 (23:49 -0700)]
[WRT Service][RAM] Terminate client process after finishing loading service app
This terminiates client process after finishing loading service app
to reduce memory usage.
Change-Id: I4408fb522aafe30c7151bf6cea02ab0309df5c4d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
ws29.jung [Thu, 22 Aug 2019 10:53:14 +0000 (19:53 +0900)]
Set CPU Threshold to relaunch wrt-loader everytime
There was an issue that wrt-loader did not relaunch after webapp is on.
To prevent the issue, set lower CPU threshold so wrt-loader now can relaunch
5 seconds after webapp is on, regardless of CPU usage.
Change-Id: Iaffd09c110f7a47d55f24130190e5c00c49a811e
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
DongHyun Song [Tue, 20 Aug 2019 02:18:52 +0000 (11:18 +0900)]
Fixed naming convention
Fixed un-unified variables for naming convention
Change-Id: If9c5075c64ec473e56b955f233c08bac598d0e73
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
hyunduk.kim [Wed, 14 Aug 2019 04:11:43 +0000 (21:11 -0700)]
Adding base code for addon setting app
This is the base code for addon setting app (wgt)
Change-Id: Ife4978e45287082ef20344c211d6439fa2dce827
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
Aron kim [Fri, 9 Aug 2019 04:11:05 +0000 (21:11 -0700)]
Set default background color for product wearable.
Change the default background color white to black.
Change-Id: I839cc1ff51e7e849742ce6cbe6da28d5f705eb9c
Signed-off-by: Aron kim <aron.kim@samsung.com>
Youngsoo Choi [Mon, 12 Aug 2019 04:31:23 +0000 (21:31 -0700)]
Support legacy console logs
This supports legacy console log APIs such as info, logd, logv, and loge
which are used in service application.
Change-Id: Ide2a27376b783f9391844c13984f013d1293b7be
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
Youngsoo Choi [Mon, 12 Aug 2019 04:20:23 +0000 (21:20 -0700)]
Provide exception console log on browser process
This provides nodejs exception console log on browser process
and refactors it to be used as a module exception_handling with pid.
Change-Id: I7859310070f973bff6ea9814e8b86605847224f5
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
jaekuk lee [Wed, 31 Jul 2019 04:26:21 +0000 (04:26 +0000)]
Merge "[VD] Support analyze webapp loading performance by RWI" into tizen
SangYong Park [Thu, 25 Jul 2019 07:16:44 +0000 (07:16 +0000)]
Merge "[VD] change wrt-loader timeout 5sec -> 10sec" into tizen
liwei [Tue, 23 Jul 2019 04:12:35 +0000 (12:12 +0800)]
[VD] Support analyze webapp loading performance by RWI
(1)Once WebAPP is launched, just to load "about:blank" firstly,
and saved WebAPP entry url (index.html)
(2)A popup window with "OK" button to show RWI connection port on TV
This moment, "about:blank" has been loaded for RWI connection in PC
also can enable RWI timeline for preparation to record the whole loading
(3)Only user click "OK" button on the popup window,
then WebAPP entry url (index.html) will be loaded.
Native Patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/210692/
Change-Id: I2a495659f7761e9d322adee8f19ab95f7eeb27cc
Signed-off-by: liwei <wei90727.li@samsung.com>
YONGMAN SON [Thu, 27 Jun 2019 06:00:31 +0000 (15:00 +0900)]
[VD] change wrt-loader timeout 5sec -> 10sec
Change-Id: I7f53f52c90c76434f05f38ba6551c9453624fdd3
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
SangYong Park [Fri, 12 Jul 2019 03:12:25 +0000 (12:12 +0900)]
Remove unused functions of WRTWindow
Change-Id: I540b00f8efe9c921f71d020c75d8fb55fe6ab1f7
Signed-off-by: SangYong Park <sy302.park@samsung.com>
SangYong Park [Thu, 11 Jul 2019 22:00:22 +0000 (07:00 +0900)]
Create new window with option of parent window
Currently new window is created with electron's default option.
Some javascript contents has conflict with node.js. so, apply
parent window's option when new window is created.
(webtct tct-ui01-wrt-tests failed because of this issue.)
Change-Id: I148879d4b74e00abb037176a315de5774193e076
Signed-off-by: SangYong Park <sy302.park@samsung.com>
ws29.jung [Thu, 11 Jul 2019 08:57:46 +0000 (17:57 +0900)]
Fix error when suspend/resume on m63
fromId and getAllWindows Methods which are in WRTWindow class
were executing binded function from TopLevelWindow class.
However, TopLevelWindow class does not exist in m63.
Instead of TopLevelWindow, BrowserWindow class in m63 has
same functions and in m69, it is a child class of TopLevelWindow.
Methods from TopLevelWindow is now subsituted to methods from BrowserWindow.
Change-Id: I88607d1ded40d2daae9d74ea6e45f65272cf609d
Signed-off-by: ws29.jung <ws29.jung@samsung.com>