platform/framework/web/wrtjs.git
4 years agoPrevent multiple notification permission popup 31/238731/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200717.070318 accepted/tizen/5.5/unified/wearable/hotfix/20201027.102828 submit/tizen_5.5/20200717.032452 submit/tizen_5.5_wearable_hotfix/20201026.184306
SangYong Park [Tue, 12 May 2020 01:05:54 +0000 (10:05 +0900)]
Prevent multiple notification permission popup

Keep previous user choice of notification permmision in memory.
and, use it when notification permision is requested.

Change-Id: I7413fef73e0f2bf5eca0ced20de0f508435ee592
Signed-off-by: SangYong Park <sy302.park@samsung.com>
4 years agofixup! [VD] Flush cookie / local storage in finalize 55/236655/1 accepted/tizen/5.5/unified/20200625.165516 submit/tizen_5.5/20200625.010053
liwei [Fri, 19 Jun 2020 05:13:27 +0000 (13:13 +0800)]
fixup! [VD] Flush cookie / local storage in finalize

In web_applicaton, should use this.flushData() to avoid
there is error "flushData is not defined"

Change-Id: I858268b8109becf5495d4d0415090690f35ad4c9
Signed-off-by: liwei <wei90727.li@samsung.com>
4 years ago[VD] Flush cookie / local storage in finalize 41/235841/2
liwei [Wed, 10 Jun 2020 01:58:53 +0000 (09:58 +0800)]
[VD] Flush cookie / local storage in finalize

When app call tizen.application.exit() directly, WRT will get "before_quit"
firstly, then set webapplciaton to null(_this.webApplication = null;), then
when WRT get "suspend" event, bcz webapplication is null, WRT will not flush
cookie / local storage.

Change-Id: I7d6ab667824d450763d58a1b7938a1dffc21be38
Signed-off-by: liwei <wei90727.li@samsung.com>
4 years agoMerge "Restrict 'require' access on wrt & wrt related modules to web apps" into tizen_5.5
jaekuk lee [Mon, 27 Apr 2020 06:39:47 +0000 (06:39 +0000)]
Merge "Restrict 'require' access on wrt & wrt related modules to web apps" into tizen_5.5

4 years ago[Addon] Fix showMessageBox function 98/230798/2
ws29.jung [Tue, 14 Apr 2020 08:02:09 +0000 (17:02 +0900)]
[Addon] Fix showMessageBox function

Old version of Electron only had 'showMessageBox' function,
and it handled sync and async mode under binded C++ function.
Now new Electron export 'showMessageBoxSync' function separatly
and it works as sync mode of old 'showMessageBox'.
To handle both functions with one source code, this patch makes
addonapi method to use logical function fallback.

Change-Id: I36a73106d451672c51c3aebbd1ecb92a25be3c02
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
4 years ago[Addon] Add 'once' method for wrappedEventEmitter 44/230644/1
hyunduk.kim [Mon, 13 Apr 2020 07:00:46 +0000 (16:00 +0900)]
[Addon] Add 'once' method for wrappedEventEmitter

This change will add a new method 'once'
which will work as same as 'once' of EventEmitter.

Change-Id: Ib07ffcdbe357af6b9c36b7a4e22ddf4c8a7f8669
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
4 years agoMerge "Do not Enable Tizen Device APIs if No Addon" into tizen_5.5
jaekuk lee [Thu, 19 Mar 2020 04:53:02 +0000 (04:53 +0000)]
Merge "Do not Enable Tizen Device APIs if No Addon" into tizen_5.5

4 years agoChange background color in tv 01/227901/1 accepted/tizen/5.5/unified/20200318.225648 submit/tizen_5.5/20200318.093916
SangYong Park [Tue, 17 Mar 2020 06:09:36 +0000 (15:09 +0900)]
Change background color in tv

Apply black instread of transparent to background color after below patch is merged.
(https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/226493/)
That patch made proper background color. so change background color to explicitly
set transparent color.

Change-Id: I6c8b818cc9da243abc4b50975c7d84f779a0e7ae
Signed-off-by: SangYong Park <sy302.park@samsung.com>
4 years agoDo not Enable Tizen Device APIs if No Addon 27/227227/1
ws29.jung [Tue, 25 Feb 2020 02:20:06 +0000 (11:20 +0900)]
Do not Enable Tizen Device APIs if No Addon

Tizen Device APIs for Addon enabled even when there is no addon is installed.
Now Tizen Device API will enable when at least one addon is installed.

Change-Id: I8edd3ce862aa2d2cb94ea0c269300f701fdb8116
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
4 years agoSuppress a macOS hack present in electron to gain webview focus 98/226898/1 accepted/tizen/5.5/unified/20200316.155223 submit/tizen_5.5/20200316.025242
Surya Kumar [Fri, 6 Mar 2020 07:11:20 +0000 (12:41 +0530)]
Suppress a macOS hack present in electron to gain webview focus

A hack used by electron meant for macOS & extended for other
platforms contingently is causing behavior difference from XWALK.
Since that's the only consumer of 'load-url', removed all
event listeners.
Focus will anyway be gained by WebContents on their respective
show() calls. Fixes P200228-07034 & P200113-07900.

Change-Id: Ic67f3e5d74cdf47b909134ba7734189af1aa5a95
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
4 years ago[Service][Global] Fix Failure of Onstop 23/223323/3
k2.nagaraju [Tue, 28 Jan 2020 13:21:39 +0000 (18:51 +0530)]
[Service][Global] Fix Failure of Onstop

This guarantees success callback of start API is to be called
when launching process is completely finished.

Change-Id: Ibaef75424af258d4f039ecff8b69d799ead02ca7
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
4 years ago[Service][Global] Support multiple connections 17/221517/11
Youngsoo Choi [Fri, 3 Jan 2020 07:49:01 +0000 (23:49 -0800)]
[Service][Global] Support multiple connections

This supports multiple connections between ui apps and service apps.

Change-Id: I443210d9cced6e3bff8d43d9d19db00e9ecf22f7
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
4 years agoDefer showing window when appcontrol-reset is being done 70/225270/7
Surya Kumar [Tue, 18 Feb 2020 13:33:05 +0000 (19:03 +0530)]
Defer showing window when appcontrol-reset is being done

In Appcontrol-reload case, if window is shown before frame rendered,
expired content is visible for a considerable time. Avoid it by
showing the window only after frame has been rendered

Reference: https://review.tizen.org/gerrit/182918

Change-Id: Icd4877727488e40ffe65f5699c0d3a49dc35a208
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
4 years agoMerge "[VD] Check file protocol using file format" into tizen_5.5
DongHyun Song [Mon, 24 Feb 2020 07:45:10 +0000 (07:45 +0000)]
Merge "[VD] Check file protocol using file format" into tizen_5.5

4 years ago[VD] Check file protocol using file format 25/225625/3
liwei [Fri, 21 Feb 2020 07:39:05 +0000 (15:39 +0800)]
[VD] Check file protocol using file format

In current logic, WRT use url format to check file protocol, if
file path including special character(ex. blank/?/+/...), it will
be converted to special code(blank-> %20, #->%23,...), so we should
use file format to check file exist or not.

ex.
/opt/media/USBDriveA1/bts/1/Fulfill%20mentGustav_Klimt.jpg we should
change it to file format
/opt/media/USBDriveA1/bts/1/Fulfill mentGustav_Klimt.jpg
otherwise, this image can not be shown.

Change-Id: I6f3fbc6304ab8ea501f7cd01aa5f05f16edd779a
Signed-off-by: liwei <wei90727.li@samsung.com>
4 years agofixup! Support m76 migration 69/225269/1
k2.nagaraju [Tue, 18 Feb 2020 12:49:39 +0000 (18:19 +0530)]
fixup! Support m76 migration

Added |require('../common/init')| to get the defination of
|process.wrtBinding()| for service

Change-Id: Icd87a17ed1d33fc8e98fbcf614f9ff7d70f50a90
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
4 years agoMerge "[VD] ClearAllTilesResources for Deeplink" into tizen_5.5 accepted/tizen/5.5/unified/20200213.121712 submit/tizen_5.5/20200212.005931
SangYong Park [Thu, 6 Feb 2020 08:54:17 +0000 (08:54 +0000)]
Merge "[VD] ClearAllTilesResources for Deeplink" into tizen_5.5

4 years agoMerge "[VD] Add gbs configuration for NikeM build ('20 Product)" into tizen_5.5
Youngsoo Choi [Thu, 6 Feb 2020 08:52:59 +0000 (08:52 +0000)]
Merge "[VD] Add gbs configuration for NikeM build ('20 Product)" into tizen_5.5

4 years ago[VD] ClearAllTilesResources for Deeplink 54/224054/2
DongHyun Song [Thu, 6 Feb 2020 03:39:04 +0000 (12:39 +0900)]
[VD] ClearAllTilesResources for Deeplink

To solve unexpected flickering issue, this patch will call
ClearAllTilesResources when deeplink reloading case

Related patch:
  https://review.tizen.org/gerrit/224035

Change-Id: I2568f6906241d45fc3730a63614e8af12bb3354c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
4 years agoMerge "Revert "Revert "Set default background color for product wearable.""" into...
Sungsik Han [Wed, 5 Feb 2020 08:33:39 +0000 (08:33 +0000)]
Merge "Revert "Revert "Set default background color for product wearable.""" into tizen_5.5

4 years agoEnable Browser Tizen Device APIs for Addon 38/222638/2 accepted/tizen/5.5/unified/20200205.125425 submit/tizen_5.5/20200204.072340
ws29.jung [Fri, 17 Jan 2020 01:43:25 +0000 (10:43 +0900)]
Enable Browser Tizen Device APIs for Addon

There are lack of API support to develope Addon.
To expand functionality of Addon, now Tizen Device APIs are usable.

Change-Id: I4bbff162c59ddbbff6737f9965a928afe4a62730
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
4 years agoMerge "[VD] Add clearDeadMount API for TV profile" into tizen_5.5
SangYong Park [Thu, 30 Jan 2020 07:53:43 +0000 (07:53 +0000)]
Merge "[VD] Add clearDeadMount API for TV profile" into tizen_5.5

4 years ago[VD] Add gbs configuration for NikeM build ('20 Product) 74/223474/2
jaekuk, lee [Thu, 30 Jan 2020 05:26:54 +0000 (14:26 +0900)]
[VD] Add gbs configuration for NikeM build ('20 Product)

Reference: https://review.tizen.org/gerrit/219504

Change-Id: Ib8dfb688d15010c5f0933427b2780eb6f2cfa1d7
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
4 years ago[VD] Add clearDeadMount API for TV profile 41/223441/1
DongHyun Song [Thu, 30 Jan 2020 01:09:42 +0000 (10:09 +0900)]
[VD] Add clearDeadMount API for TV profile

Related patch:
  https://review.tizen.org/gerrit/223399/

Change-Id: I1592e69f915c996e91fb23d5321184a9f55321af
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
4 years agoSupport m76 migration 30/221830/3
SangYong Park [Wed, 8 Jan 2020 01:21:54 +0000 (10:21 +0900)]
Support m76 migration

add process.wrtBinding() for using process.binding() and process._linkedBinding().
(electron's binding api is changed to process._linkedBinding() from process.binding())
and, change class name of TizenExtension to XWalkExtension.

Change-Id: I059fa50051b206bcf5b478442ccf6658ea71ce60
Signed-off-by: SangYong Park <sy302.park@samsung.com>
4 years agoMerge "Supports an ambient mode for watch applications" into tizen_5.5 accepted/tizen/5.5/unified/20200130.113927 submit/tizen_5.5/20200115.085442 submit/tizen_5.5/20200120.013325 submit/tizen_5.5/20200130.003124
Sungsik Han [Wed, 15 Jan 2020 06:34:38 +0000 (06:34 +0000)]
Merge "Supports an ambient mode for watch applications" into tizen_5.5

4 years agofixup! [VD] Build fix - skip wrt-loader launch for LFD product
DongHyun Song [Wed, 15 Jan 2020 00:59:44 +0000 (09:59 +0900)]
fixup! [VD] Build fix - skip wrt-loader launch for LFD product

Signed-off-by: DongHyun Song <dh81.song@samsung.com>
4 years ago[VD] Build fix - skip wrt-loader launch for LFD product 71/222271/5
YONGMAN SON [Mon, 13 Jan 2020 06:47:18 +0000 (15:47 +0900)]
[VD] Build fix - skip wrt-loader launch for LFD product

Eventually, This patch won't make the wrt.loader service file
for LFD product.

In LFD, it has only one webapp which is launched early time after boot.
Thus, wrt-loader is not effective to LFD product.

In addition, with WRTjs, zygote process is changed to /usr/bin/wrt
from efl_webprocess. 'wrt' has more capability than efl_webprocess and
some of its capability (i.e. cap_setpcap), they cannot be working with
zone container of security framework.
Thus, zygote process is going to die with wrt-loader launching.

If webapp is launched directly without wrt-loader, the webapp process is
started with app privilege, which means that process has changed smack
label, process group as app permission its manifest describes.

With these reason, this patch will not make wrt.loader file for LFD
product.

Change-Id: I6a1db9b65a4e20ac70d072f93f581d50085ee814
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
4 years agoMerge "[VD] skip wrt-loader launch from LFD product" into tizen_5.5
DongHyun Song [Mon, 13 Jan 2020 04:57:33 +0000 (04:57 +0000)]
Merge "[VD] skip wrt-loader launch from LFD product" into tizen_5.5

4 years agoMerge "[MCD] Update gbs.conf.in & common.sh" into tizen_5.5
Sungsik Han [Fri, 10 Jan 2020 04:30:06 +0000 (04:30 +0000)]
Merge "[MCD] Update gbs.conf.in & common.sh" into tizen_5.5

4 years ago[VD] skip wrt-loader launch from LFD product 26/222126/1
YONGMAN SON [Fri, 10 Jan 2020 02:17:18 +0000 (11:17 +0900)]
[VD] skip wrt-loader launch from LFD product

zygote process crashed due to a capability issue related to the zone container in the LFD prodect.
LFD uses only one webapp, so there is no need for a wrt-loader.

Change-Id: I64f977a0e47d6963726ca8c44d5b360b2547ac34
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
4 years agoMerge "Change hide() time for 'visibilitychange' callback" into tizen_5.5
Youngman Son [Wed, 8 Jan 2020 05:57:38 +0000 (05:57 +0000)]
Merge "Change hide() time for 'visibilitychange' callback" into tizen_5.5

4 years agoChange hide() time for 'visibilitychange' callback 49/221749/5
DongHyun Song [Tue, 7 Jan 2020 08:18:08 +0000 (17:18 +0900)]
Change hide() time for 'visibilitychange' callback

In window.hide(),
'visibilitychange' or 'webkitvisibilitychange' event is dispatched from
Document::DidChangeVisibilityState(), which is triggered by
RenderWidgetHostViewEfl::SetPageVisibility()

In window.setEnable(),
it try to request suspending to renderer thread, then it try to stop
chromium resources even JavaScript context.

Thus if hide() is called after setEnable(), it can defer application's
'visibilitchange' callback unexpectedly.

Change-Id: Ibe89b79f8a01ca170db40af8a5792fe64e9bf4ba
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
4 years agoRevert "Revert "Set default background color for product wearable."" 45/221345/4
jaekuk lee [Tue, 31 Dec 2019 09:15:52 +0000 (09:15 +0000)]
Revert "Revert "Set default background color for product wearable.""

This reverts commit 79bf5d968f1bfc7de05086cd78280759cb1e2265.

Change the default background color to black for app compatibility.

For app that has white text and icons and uses the default background color of target,
text and icons should be displayed normally on tw2 and tw3 with the default background color set to black.

Change-Id: I7ac040d6ebcb1270562d55b9cddaa7d5ade6784c
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
4 years ago[MCD] Update gbs.conf.in & common.sh 39/219539/3
jaekuk, lee [Fri, 6 Dec 2019 00:22:48 +0000 (16:22 -0800)]
[MCD] Update gbs.conf.in & common.sh

Fixed the build error for wearable

Change-Id: I069f5295630a005c70a547041269130196596303
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
4 years agoMerge "[Service][Global] Implement access control for privilege management" into...
Sungsik Han [Tue, 31 Dec 2019 05:20:43 +0000 (05:20 +0000)]
Merge "[Service][Global] Implement access control for privilege management" into tizen_5.5

4 years agoMerge "[Service][Global] Add handler of stop-service" into tizen_5.5
Sungsik Han [Tue, 31 Dec 2019 05:19:28 +0000 (05:19 +0000)]
Merge "[Service][Global] Add handler of stop-service" into tizen_5.5

4 years agoMerge "[Service][Global] Expose standard and global objects" into tizen_5.5
Sungsik Han [Tue, 31 Dec 2019 05:16:54 +0000 (05:16 +0000)]
Merge "[Service][Global] Expose standard and global objects" into tizen_5.5

4 years agoMerge "[Service][Global] Support tizen web device APIs" into tizen_5.5
Sungsik Han [Tue, 31 Dec 2019 00:58:20 +0000 (00:58 +0000)]
Merge "[Service][Global] Support tizen web device APIs" into tizen_5.5

4 years ago[Service] Provide iteration API setServiceInterval 62/218062/4
Youngsoo Choi [Tue, 19 Nov 2019 02:43:03 +0000 (18:43 -0800)]
[Service] Provide iteration API setServiceInterval

This provides the use of service iteration and usage is like below:

* API:
setServiceInterval(function, after, repeat);

* Parameters:
{func} The function |func| will run.
{repeat} The number of iteration is |repeat|.
         The value 0 means infinite and default.
{after} The iteration interval is |after| ms and default is 1000 ms.

Change-Id: I5e50ddf9c11f6b7a49cf48aa4c526698c044794f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
4 years ago[Service][Global] Implement access control for privilege management 53/220353/14
k2.nagaraju [Tue, 17 Dec 2019 15:00:57 +0000 (20:30 +0530)]
[Service][Global] Implement access control for privilege management

This provides access control as per specified privileges in config.xml
for service application.

Change-Id: I2bae3574fccd9e7333c485e6b3229b407ad28660
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
4 years ago[Service][Global] Add handler of stop-service 94/218694/7
Youngsoo Choi [Wed, 27 Nov 2019 05:29:54 +0000 (21:29 -0800)]
[Service][Global] Add handler of stop-service

This adds handler of stop-service.

Change-Id: I7c73f9a204844216141edc47ab26e142368ec3d1
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
4 years ago[Service][Global] Expose standard and global objects 09/218609/8
Youngsoo Choi [Tue, 26 Nov 2019 04:42:42 +0000 (20:42 -0800)]
[Service][Global] Expose standard and global objects

This enables functions and properties of global object,
such as setInterval, setTimeout, and etc in service apps.

Also, 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: I61977e05b73b3817b75591d2c8b0bb708f175c8d
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
4 years ago[Service][Global] Support tizen web device APIs 78/218478/10
k2.nagaraju [Fri, 22 Nov 2019 15:08:13 +0000 (20:38 +0530)]
[Service][Global] Support tizen web device APIs

This supports tizen web device APIS.

Change-Id: I61e088aa5fda4fb2479fed310426caa058ed1c41
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
4 years ago[VD] Fix deeplink issue in current known scenario 27/221227/1
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>
4 years ago[VD] Cancel Auth if no proxy usrname/passwd 04/220904/1
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>
4 years agoSupports an ambient mode for watch applications 07/220607/10
jaekuk, lee [Fri, 20 Dec 2019 03:16:57 +0000 (12:16 +0900)]
Supports an ambient mode for watch applications

When wearable device enables the ambient mode,
watch application displayed on an idle screen can show a limited UI
to reduce power consumption.

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

Change-Id: Iba2a8e0b922027973270d4df9f90ec721b34d893
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
4 years agoRevert "[VD][Workaround] Show popup when need default client cert" 86/220386/2
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>
4 years ago[VD] Fix issue for app deeplink that page is not reload 35/219535/2 accepted/tizen/5.5/unified/20191213.064206 submit/tizen_5.5/20191212.093338
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>
4 years agoMerge "Fix the issue that OnPause function is called after showing splash image"... accepted/tizen/5.5/unified/20191205.090224 submit/tizen/20191205.004241 submit/tizen_5.5/20191205.004241
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

4 years agofixup! [Service] Refactor tizen extension module to be called on demand 79/218779/1
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>
4 years ago[Service] Refactor tizen extension module to be called on demand 37/218737/6 submit/tizen_5.5/20191128.013112
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>
4 years agoRestrict 'require' access on wrt & wrt related modules to web apps 74/218674/1
surya.kumar7 [Tue, 26 Nov 2019 16:22:09 +0000 (21:52 +0530)]
Restrict 'require' access on wrt & wrt related modules to web apps

'wrt' module is supposed to be used only by the framework & access
to it should be prevented for web apps & add-ons

Change-Id: Ic5e6a879df996960b7dbfab0c0115bfa5a1d9118
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
4 years agoFix the issue that OnPause function is called after showing splash image 45/218445/2
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>
4 years ago[VD] Replaces WRT APIs for TV profile 45/218145/6
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>
4 years ago[VD] Webapp Cache Optimizer 58/218258/4 accepted/tizen/5.5/unified/20191125.201705 submit/tizen_5.5/20191122.064443
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>
4 years agoMerge "[Add-on] Delete obsolete add-on DB files" into tizen_5.5 accepted/tizen/5.5/unified/20191122.012336 submit/tizen_5.5/20191121.094423
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

4 years agoMerge "[DA] Update gbs.conf" 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

4 years ago[DA] Update gbs.conf 42/218142/3
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>
4 years ago[VD]Fix account is not logined in automatically when relaunch 14/218214/5
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>
4 years ago[Add-on] Delete obsolete add-on DB files 92/218092/5
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>
4 years agoMerge "[Public] Make not to modify gbs.conf when tizen version is upgraded" into...
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

4 years ago[VD] When login in proxy server, check usrname/passwd from vconf 22/217422/10
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>
4 years ago[Public] Make not to modify gbs.conf when tizen version is upgraded 67/218067/3
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>
4 years agoMerge "[WRTjs] Showing detailed error cause in certificate error popup" into tizen_5.5 accepted/tizen/5.5/unified/20191120.044054 submit/tizen_5.5/20191119.023011
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

4 years agoMerge "[Add-on] Improve the approach to obtain db name for 'options' module" into...
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

4 years ago[Add-on] Improve the approach to obtain db name for 'options' module 11/217811/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>
4 years ago[WRTjs] Showing detailed error cause in certificate error popup 00/217500/6
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>
4 years ago[Addon] Handle exceptions and errors thrown from add-ons code 30/217030/5
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>
4 years agoMerge "[Service][UI] Expose primitives and standard objects" into tizen_5.5 accepted/tizen/5.5/unified/20191120.034626 submit/tizen_5.5/20191113.071758 submit/tizen_5.5/20191114.074818 submit/tizen_5.5/20191115.025402 submit/tizen_5.5/20191118.004004
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

4 years agoMerge "[Service][UI] Support Web device api Extensions" 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

4 years agoMerge "Revert "Set default background color for product wearable."" into tizen_5.5 submit/tizen_5.5/20191113.043747
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

4 years agoRevert "Set default background color for product wearable." 06/217606/1
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>
4 years agoRevert "Set default background color for product wearable." 20/213020/2
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>
4 years ago[Service][UI] Expose primitives and standard objects 39/217239/10
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>
4 years ago[Service][UI] Support Web device api Extensions 26/213826/13
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>
4 years ago[Migration][WRTJS][vd][bugfix] change url compare code. 93/217393/1
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>
5 years agoRemove add-on events to prevent add-ons from monitoring other listeners 02/217002/2
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>
5 years agoMerge "[WRTJS][vd][bugfix] change url compare code. kona : DF191021-00235" into tizen
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

5 years ago[WRTJS][vd][bugfix] change url compare code. 42/216442/7
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>
5 years agoMerge "[Addon] Refactor event emitter object handling & operations through it" into...
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

5 years ago[Addon] Refactor event emitter object handling & operations through it 47/216047/3
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>
5 years ago[VD][Workaround] Show popup when need default client cert 09/216009/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.005729 accepted/tizen/5.5/unified/mobile/hotfix/20201027.062759 accepted/tizen/unified/20191023.004800 submit/tizen/20191022.071114 submit/tizen_5.5/20191031.000006 submit/tizen_5.5_mobile_hotfix/20201026.185106 tizen_5.5.m2_release
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>
5 years agoMerge "Skip exit of bg runnable app even if multitasking is not supported" into tizen
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

5 years agoSkip exit of bg runnable app even if multitasking is not supported 02/216002/1
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>
5 years agoMerge "fixup! Fix application launch issue." into tizen
jaekuk lee [Fri, 18 Oct 2019 05:54:20 +0000 (05:54 +0000)]
Merge "fixup! Fix application launch issue." into tizen

5 years agoMerge "[Addon] Expose a module 'addonapi' for addons usage" 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

5 years agofixup! Fix application launch issue. 38/215938/1
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>
5 years ago[Addon] Expose a module 'addonapi' for addons usage 17/215717/4
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>
5 years agoAdd logs for debugging 17/215017/3
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>
5 years agoRemove addon_setting_app 71/215571/2
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>
5 years ago[Service][UI] Release all remaining timers when stopService is called 33/215433/6
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>
5 years agoAdd and rename APIs for RWI termination 11/215311/8
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>
5 years agoRevert "[VD] Fix crash problem by low memory callback" 41/215441/1 accepted/tizen/unified/20191011.015441 submit/tizen/20191010.010044
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>
5 years ago[Addon] Add new event 'contentDidFinishLoad' 32/215332/4 submit/tizen/20191008.003900
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>
5 years agoMerge "[Service][UI] Expose functions and properties of global object" into tizen submit/tizen/20191007.071001
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

5 years agoMerge "Revert "[Addon] Expose a module 'addonapi' for addons' usage"" 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

5 years agoRevert "[Addon] Expose a module 'addonapi' for addons' usage" 21/215321/1
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

5 years agoMerge "[Addon] Update the logic to update addon package list" into tizen
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

5 years agoMerge "[Addon] Expose a module 'addonapi' for addons' usage" 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