platform/framework/web/crosswalk-tizen.git
5 years agoAllow Page to open window for tizen applications 05/191405/4
Suneel Kota [Tue, 16 Oct 2018 13:25:57 +0000 (18:55 +0530)]
Allow Page to open window for tizen applications

the page is allowed to open a window only when CanCreateWindow
is true, in this case no_javascript_access indicates
weather the window created should be scriptable in same process
hence it is made false

Change-Id: I1376ad5ac52ab1d5031177c064f490c1487cf8e1
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
5 years agoMerge "Extract appid from AtomCommandLine and remove redundant code" into tizen_4...
jaekuk lee [Tue, 23 Oct 2018 10:58:53 +0000 (10:58 +0000)]
Merge "Extract appid from AtomCommandLine and remove redundant code" into tizen_4.0.devel

5 years agoAdd cookie manager support. 59/191259/7
k2.nagaraju [Mon, 15 Oct 2018 06:01:45 +0000 (11:31 +0530)]
Add cookie manager support.

Added |cookie_manager.*| files from chromium to electron and added required
changes in |CookieManager| and atom |URLRequestContextGetter| to support
file cookies.

This patch requires below chromium patch
https://review.tizen.org/gerrit/#/c/191289/

Change-Id: Ib4b8c2fd182a521328f5d6d67a51595f6c7b7165
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoExtract appid from AtomCommandLine and remove redundant code 98/191498/6
k2.nagaraju [Wed, 17 Oct 2018 11:41:25 +0000 (17:11 +0530)]
Extract appid from AtomCommandLine and remove redundant code

In prelaunch atom commandLine initialized with |/usr/bin/wrt-loader|.
When actual application is loaded, its command line arguments are
appending to already existing command line parameters. That is the reason
argv[1] is returning appid. Clearing the commandline |argv_| vector in
|atom::AtomCommandLine::Init| before pushing the new command line arguments.

Removed the unused files.
Extract app id from atom command line and parse for base name.

Change-Id: Ia4945208186ffbbe82fb15ab67d4881f7ef5305c
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoDisable forking of new process for navigation 05/190405/5
Suneel Kota [Mon, 1 Oct 2018 13:21:48 +0000 (18:51 +0530)]
Disable forking of new process for navigation

currently electron forks a new process for navigation
when http method is get, so navigation history is lost,
resulting in failure when we test back and forth
navigation.

Change-Id: I1e38e3c20f9d35cedfb0a7490c20447fd87f46e3
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
5 years agofixup! Enable popup support. 03/190403/2
k2.nagaraju [Mon, 1 Oct 2018 13:07:34 +0000 (18:37 +0530)]
fixup! Enable popup support.

Fixed compilation issue of tv build.

Change-Id: Ia602672b9b2dd1f268ec2e443ab2eb949c11e031
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoSet encoding type based on config.xml's value 73/190673/4
surya.kumar7 [Mon, 8 Oct 2018 09:48:04 +0000 (15:18 +0530)]
Set encoding type based on config.xml's value

If the encoding type extracted from config.xml is valid, use that,
otherwise resort to default encoding(UTF-8)

Depends on: https://review.tizen.org/gerrit/#/c/190889/
Depends on: https://review.tizen.org/gerrit/#/c/190893/

Change-Id: Ic95c2ade81f05e47463234b252e35db67a32463e
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoDisable |uses_encoding_detector| in WebPreferences 93/190893/2
surya.kumar7 [Mon, 8 Oct 2018 10:00:32 +0000 (15:30 +0530)]
Disable |uses_encoding_detector| in WebPreferences

As per https://review.tizen.org/gerrit/#/c/136138/, if WebPreferences'
encoding property is set from WRT, uses_encoding_detector property
also has to be disabled

Change-Id: Ic23069d31578572e25a56c75975cb756a90e7c3e
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoAdd vibration capabilities in PWRT 67/190167/11
surya.kumar7 [Thu, 27 Sep 2018 13:30:44 +0000 (19:00 +0530)]
Add vibration capabilities in PWRT

PWRT as the client is responsible for listening to events from
VibrationManager and call appropriate system APIs for vibration
without which tct-vibration-w3c-tests fails

Depends on https://review.tizen.org/gerrit/#/c/190168/

Change-Id: I2964136795a04adeb26e45c3b32797dd6a0aee08
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoEnable visited links chromium component 36/190036/6
surya.kumar7 [Wed, 26 Sep 2018 14:01:41 +0000 (19:31 +0530)]
Enable visited links chromium component

Visited link component from chromium wasn't being used because of
which visited pseudo attribute of link elements doesn't get activated
and CSS3Colors_color_pseudo-classes fails

Reference patch: https://review.tizen.org/gerrit/#/c/130333/
Depends on https://review.tizen.org/gerrit/#/c/190037/

Change-Id: I1beb18174682ae1a7652b7fcc8f780fca62a5d06
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoRefactor Add popup support for runtime and impl to allow cert errors 40/189940/7
deepti [Mon, 24 Sep 2018 10:58:14 +0000 (16:28 +0530)]
Refactor Add popup support for runtime and impl to allow cert errors

Removed extra header files and made proper indent.
Removed unnecessary comments.
Updated copyright year in LICENSE file
Resolved all warnings

Change-Id: Ica52a53f219d4245003b1ccf2e2ca68ac00b8034
Signed-off-by: deepti <d.saraswat@samsung.com>
5 years agoDo not pause/resume app if background support is enabled 62/189962/3
prathmesh.m [Tue, 25 Sep 2018 06:13:03 +0000 (11:43 +0530)]
Do not pause/resume app if background support is enabled

If background support is enabled then the javascript must run in
background even if the app is paused.
Currently on Pause the application is suspended and
hence the JS. With this patch if background support is enbaled
window will be sent to background by platform but engine will
run, ie. JS will be active in background

Change-Id: Ideb74215fcc4fe3f3d31a3458c4e0611ad2c258c
Signed-off-by: prathmesh.m <prathmesh.m@samsung.com>
5 years agoMerge "Enable popup support." into tizen_4.0.devel
jaekuk lee [Thu, 20 Sep 2018 21:23:57 +0000 (21:23 +0000)]
Merge "Enable popup support." into tizen_4.0.devel

5 years agoAdd command line flag to enable touch events 31/189431/4
Suneel Kota [Mon, 17 Sep 2018 14:33:46 +0000 (20:03 +0530)]
Add command line flag to enable touch events

touchstart, touchend and other touch events will
be enabled and the respective event handlers will only
work when touch events are enabled in command line.

Change-Id: I8527d5b098cb9427a567c2f0fb57ba65fd234271
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
5 years agoEnable popup support. 78/188678/7
k2.nagaraju [Fri, 7 Sep 2018 07:38:55 +0000 (13:08 +0530)]
Enable popup support.

Change-Id: I1cb40db8153de192fa353cf36df6d02a677ce47f
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoRemove redundant CommandLine class 55/189655/2
ws29.jung [Wed, 19 Sep 2018 10:59:44 +0000 (19:59 +0900)]
Remove redundant CommandLine class

Electron-efl had 3 different CommandLine classes which do the job
not very different and they weren't a inherited class of any other.
From this patch, common::CommandLine class is removed and only
AtomCommandLine and base::CommandLine are left.

Change-Id: Ic6a85e29a153461771f2441fc3321141f0ce3624
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
5 years agoAdd popup support for runtime and impl to allow cert erros 92/189792/1
Suneel Kota [Thu, 20 Sep 2018 12:48:41 +0000 (18:18 +0530)]
Add popup support for runtime and impl to allow cert erros

this patch adds the popup support, it also adds
the required implementation for providing option
to ALLOW or DENY when certificate error occurs and
remember the old option selected.

Change-Id: Ie479998172322434ad2d948bbacfe91bf00675ac
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
5 years agoSend |WrtViewMsg_ResumeScheduledTasks| IPC only if webview is suspended. 16/188116/2
k2.nagaraju [Fri, 31 Aug 2018 10:04:49 +0000 (15:34 +0530)]
Send |WrtViewMsg_ResumeScheduledTasks| IPC only if webview is suspended.

With this patch approximately 100 to 150ms time is reducing.

Change-Id: I77404f90de3784b262fd3d9bc7239fe0d1b28bb9
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoEnable encrypted app support. 30/187130/4
k2.nagaraju [Mon, 20 Aug 2018 07:22:17 +0000 (12:52 +0530)]
Enable encrypted app support.

Use |WrtFileProtocolHandler| for handling the file schemas.

Change-Id: Ia39034af94d7ebd332e7b9e1d38924499f5cafd9
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoFix the issue that add-on doesn't work 22/187022/2
jaekuk, lee [Fri, 17 Aug 2018 08:31:15 +0000 (17:31 +0900)]
Fix the issue that add-on doesn't work

- Define noExtensions of options
- Don't create WebApplication class when launching Electron app

Change-Id: I0dfb8b1d33c66c3da956e8da307499ee980badac
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
5 years agoSend terminate event to engine 48/186948/2
prathmesh.m [Thu, 16 Aug 2018 12:51:49 +0000 (18:21 +0530)]
Send terminate event to engine

- Pass the onTerminate to engine

Change-Id: Ic62b385182fc65e5fd54ae7ca1ec227565e9e16b
Signed-off-by: prathmesh.m <prathmesh.m@samsung.com>
5 years agoGenerate |UserAgent| without "demo/0.1.0" 41/186941/2
guneet khosla [Thu, 16 Aug 2018 12:18:15 +0000 (17:48 +0530)]
Generate |UserAgent| without "demo/0.1.0"

Earlier, "demo/0.1.0" was appended in |UserAgent|.
This caused failures in tct-workers-w3c-tests.

Change-Id: I017556e0d0d8f1da2b89b2c589b06438522c0038
Signed-off-by: guneet khosla <g.khosla@samsung.com>
5 years agoFix build break 13/186313/1
SangYong Park [Thu, 9 Aug 2018 01:59:46 +0000 (10:59 +0900)]
Fix build break

Fix build break when outputdir is not defined.

Change-Id: I5beec25729a81fee527542c92c9a9bf54a13ff4e
Signed-off-by: SangYong Park <sy302.park@samsung.com>
5 years agoChange the default value of block_sing_process to OFF 58/186058/2
jaekuk, lee [Tue, 7 Aug 2018 05:04:24 +0000 (14:04 +0900)]
Change the default value of block_sing_process to OFF

Change-Id: I886ae28eaa5cb651e8ab601397f5bc3ae6a52e46
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
5 years agoMake build directory depending on profile 65/186065/1
SangYong Park [Tue, 7 Aug 2018 04:30:40 +0000 (13:30 +0900)]
Make build directory depending on profile

. make build directory depending on profile
. change build dependency (dbus-glib-1 -> dbus-1)
. fix build warning

Change-Id: I829394b076f187b51b9246ad7b47a3f631febf54
Signed-off-by: SangYong Park <sy302.park@samsung.com>
5 years agoInitialize chromium binding during preload 80/185780/1
SangYong Park [Wed, 25 Jul 2018 09:44:31 +0000 (18:44 +0900)]
Initialize chromium binding during preload

Initialize chroimium binding during preload for electron's launch sequence.
It will show better launch performance and minimal electron's code change.

Change-Id: I1e1441c2cc1762afc0ae6a46e946ca44a20b8885
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoMake wrt target separate from the main target 36/184936/5
Prathmesh [Tue, 24 Jul 2018 10:26:44 +0000 (15:56 +0530)]
Make wrt target separate from the main target

Make main target as none, so that libs can be
generated separately if required, else all the .so
needs to be statically linked with wrt target

Change-Id: I149b467e1ba4c2b152f73388fb44d830a29ae246
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoRefactor runtime object 32/185132/3
surya.kumar7 [Thu, 26 Jul 2018 07:12:13 +0000 (12:42 +0530)]
Refactor runtime object

Since runtime object is not created during prelaunch, removed
functions which handled such scenarios

Change-Id: I3ab42b4b5b7299c8a700ee670c7c0ca3a6ab68be
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoAdd runtime configuration to dynamically modify single process mode 19/184619/3
surya.kumar7 [Thu, 19 Jul 2018 08:20:00 +0000 (13:50 +0530)]
Add runtime configuration to dynamically modify single process mode

Single process mode can be easily altered with the help of a platform
level environment flag

Change-Id: Ie5b56e0b786f3221b37522ff921a495e17a9347f
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agofixup! Separate Watch app implementation from TV build 21/185021/1
ws29.jung [Wed, 25 Jul 2018 08:34:23 +0000 (17:34 +0900)]
fixup! Separate Watch app implementation from TV build

ttrace was accidently removed from spec file.

Change-Id: I9fe7e74009128bcef8767d610ac5ac3ce820b4bf
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoSeparate Watch app implementation from TV build 13/185013/1
ws29.jung [Wed, 25 Jul 2018 07:41:54 +0000 (16:41 +0900)]
Separate Watch app implementation from TV build

Tizen build has 2 type build: Standard, TV.

Wath App implementation files must include within only Standard build but
gyp and sources files were including watch app files on both Standard and TV.
In this patch, files relate to the Watch App are separated from TV build.

Change-Id: Id355deae9b6316e3a65d237d434cbaff1a620dfd
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoRevert "Set Default TTS voice as Female/en_US" 86/184986/3
Venugopal Muruganathan [Wed, 25 Jul 2018 03:55:58 +0000 (03:55 +0000)]
Revert "Set Default TTS voice as Female/en_US"

This change is not needed. On tizen, we need to use CAPI framework for
TTS.

This reverts commit 6f627f5360b740e5a2c4211d743dd190af7b8202.

Change-Id: I4ba520063aa0b04d8fc4a48c03a20b01de1a4ab3
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
6 years agoAdd tizen tts support 55/184955/5
k2.nagaraju [Tue, 24 Jul 2018 12:35:27 +0000 (18:05 +0530)]
Add tizen tts support

Electron currently uses the chromium tts engine.
Added tizen tts support.

Change-Id: Ie7e0231f2cc2a280a3c0c4d4df72c18378ee6193
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agofixup! Initial implementation of watch app 65/184965/2
Soorya R [Tue, 24 Jul 2018 14:43:06 +0000 (20:13 +0530)]
fixup! Initial implementation of watch app

This CL fixes the crash that occurs when MakeRuntime
is called during prelaunch phase.

Change-Id: I685a0ea66fbdf21081a583781095755cd15ac799
Signed-off-by: Soorya R <soorya.r@samsung.com>
6 years agoFix WebApp crash with installed extension on TV (multiprocess) 23/184923/2
ws29.jung [Tue, 24 Jul 2018 09:01:22 +0000 (18:01 +0900)]
Fix WebApp crash with installed extension on TV (multiprocess)

Earlier then this patch, there was fix up patch for same issue
but only applied with Tizen WebApp. (d8c2683)
This patch moves extension activation on 'browser-window-created' callback
so now BrowserWindow construction is guaranteed before activation for
both Tizen and Electron Web App type.

Change-Id: I94405ead5ef6188da09faaac91f976307fae3a3b
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoResize |web_view_| as soon as it is initialized. 12/184812/3
guneet1995 [Mon, 23 Jul 2018 09:39:18 +0000 (15:09 +0530)]
Resize |web_view_| as soon as it is initialized.

|web_view_| is resized with |window_| dimensions as soon as
it is initialized in native_window_efl.cc. If resize occurs
at a later point, then window.innerHeight and window.innerWidth
are zero.

Change-Id: Ibf7542e546de4efdd2bf77b13934a2fa862401c5
Signed-off-by: guneet1995 <g.khosla@samsung.com>
6 years ago|did-frame-rendered| used for optimize launching time 39/184639/11
k2.nagaraju [Thu, 19 Jul 2018 12:35:53 +0000 (18:05 +0530)]
|did-frame-rendered| used for optimize launching time

Change-Id: I22de24a81b98401f02be6cb53bdd08a8e1db2de3
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agoFixed using BackKey to navigate back to the page 28/184628/8
min7.choi [Thu, 19 Jul 2018 09:59:53 +0000 (18:59 +0900)]
Fixed using BackKey to navigate back to the page

Implemented with remote url, backward compatibility.

Change-Id: I8d04f3d04b02c907b8c1c4b6e0759a7181297384
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoSet Default TTS voice as Female/en_US 55/184855/1
surya.kumar7 [Mon, 23 Jul 2018 15:14:18 +0000 (20:44 +0530)]
Set Default TTS voice as Female/en_US

To resemeble crosswalk, set default TTS voice as Female/en_US
in TtsDispatcher's construction

Change-Id: I4a5e8d1a1813fbd52f8780ac5b353ead777c069d
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoChange extension activate timing 20/184820/2
ws29.jung [Mon, 23 Jul 2018 09:46:46 +0000 (18:46 +0900)]
Change extension activate timing

Before this patch, Web App crashed when any extension was installed
because of calling function from window pointer which is casted from NULL.
Now activation is called after Window is completly constructed.

Change-Id: Ie1fd74f7d8a29a91a11ca7c3a6e668e7b10d5335
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoInitial implementation of watch app 90/184790/2
Soorya R [Fri, 20 Jul 2018 14:04:34 +0000 (19:34 +0530)]
Initial implementation of watch app

Change-Id: Id5ee0d012756014f94c646504255b15476acb063
Signed-off-by: Soorya R <soorya.r@samsung.com>
6 years agoRun Tizen Webapps in single process mode 05/183805/7
surya.kumar7 [Fri, 29 Jun 2018 17:19:29 +0000 (22:49 +0530)]
Run Tizen Webapps in single process mode

Since Tizen Web Apps don't need node support on the renderer
side, removed node dependency on the renderer and made it
run in single process

Cherry-picked from: https://review.tizen.org/gerrit/#/c/176224/

Change-Id: I4d0cd00862538ac85dab5b321e8ab4fbf91f0b4b
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoRegister "chrome-extension://" as a recognized scheme in WARP 44/184544/1
surya.kumar7 [Wed, 18 Jul 2018 13:47:06 +0000 (19:17 +0530)]
Register "chrome-extension://" as a recognized scheme in WARP

Extensions use "chrome-extension://" scheme which is not supported
by WARP and was forwarding the requests to the platform. Extended
support to the new scheme

Change-Id: I245b3384dec5666122a1acef3e59d939f7de70b0
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoEnable video hole for TV 78/184078/4
Venugopal S M [Fri, 13 Jul 2018 09:46:34 +0000 (15:16 +0530)]
Enable video hole for TV

Chromium on TV uses video hole feature for video playback. This way
rendering overhead is reduced. This commit enables video hole feature.

Change-Id: Ib293e22ac44663e78020a670d0da79232dbdee45
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
6 years agoHandle Navigation policy from crosswalk-tizen 07/184107/2
surya.kumar7 [Fri, 13 Jul 2018 16:25:29 +0000 (21:55 +0530)]
Handle Navigation policy from crosswalk-tizen

Before making navigations and creating new windows, WRT should
authorise based on its policy(WARP) and determine whether navigation
should be allowed or not

Change-Id: I9816958da6d9900a8436aba8e246e377ab327fc9
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agofixup! Implementation of Appcontrol functionalities 58/184058/3
Venugopal S M [Fri, 13 Jul 2018 08:27:35 +0000 (13:57 +0530)]
fixup! Implementation of Appcontrol functionalities

For sending IPC only a valid webview is needed. There is No need to
check document element existence.

Change-Id: Ie30738e685fc89ce1586b2ee2a23612563a36c39
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
6 years agoImplementation of Resume and Suspend function. 36/183836/5
deepti [Wed, 11 Jul 2018 10:39:49 +0000 (16:09 +0530)]
Implementation of Resume and Suspend function.

Created IPC for Resume and Suspend operation to reach at Chromium level.

Change-Id: I2a38c77f225b102da14607b3a5dde787c78e697a
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoCheck Injected Bundle inject status 73/183773/1
ws29.jung [Wed, 11 Jul 2018 02:01:14 +0000 (11:01 +0900)]
Check Injected Bundle inject status

Before this patch, Injected Bundle was injected everytime
when BrowserContext is constructed.
BrowserContext can be constructed multiple time with webapp
but Bundle Injection should be done only at the first time.
With this patch, Injection will be done only once.

Change-Id: Ia7fc7e0e896cca749182ead287829f99118b03b2
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoUpdate gbs.conf file 36/183736/1
min7.choi [Tue, 10 Jul 2018 11:13:11 +0000 (20:13 +0900)]
Update gbs.conf file

Fixed build repo

Change-Id: I3cc48e8795c0fe9ce71dd49c562ba821e123bad1
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agofixup! Implementation of Appcontrol functionalities 04/183404/4
surya.kumar7 [Thu, 5 Jul 2018 10:25:23 +0000 (15:55 +0530)]
fixup! Implementation of Appcontrol functionalities

Sometimes RenderViews are created much before app_data's Initialize() was called
Moved Initialize() to resemble crosswalk's sequence

Change-Id: Icb765754253871b3f010d4e9877e798d101aa147
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoImplementation of Appcontrol functionalities 83/178883/8
surya.kumar7 [Wed, 20 Jun 2018 17:27:22 +0000 (22:57 +0530)]
Implementation of Appcontrol functionalities

Added a few functionalities performed during AppControl
in crosswalk-tizen
1. Added CSP support
2. Added Long polling support
3. Added TizenBrowserParts class to remove bloating atom's Browser

Change-Id: Ifc2d40aa011beee881adf55cbfaca30e78df9bf7
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoBlock to work add-on in settings app 25/183125/1
SangYong Park [Mon, 2 Jul 2018 11:11:40 +0000 (20:11 +0900)]
Block to work add-on in settings app

add-on settings app should work properly without add-on's interference.

Change-Id: Ic284835cd929374708c8c58b49764339d59bb9a5
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoMerge "Fix extension cleanup issue" into tizen.devel
jaekuk lee [Fri, 29 Jun 2018 06:31:56 +0000 (06:31 +0000)]
Merge "Fix extension cleanup issue" into tizen.devel

6 years agoFix extension cleanup issue 43/182943/1
SangYong Park [Fri, 29 Jun 2018 04:41:41 +0000 (13:41 +0900)]
Fix extension cleanup issue

Exception is occured when extension cleanup by web device api. (exit())
because, before-quit event did not occur.

Change-Id: Iea468e56347ab14459fa5b4b4b6e21ac64ba8371
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoFixed the usage of |this| variable in async event handlers callbacks 49/182849/4
surya.kumar7 [Thu, 28 Jun 2018 09:21:49 +0000 (14:51 +0530)]
Fixed the usage of |this| variable in async event handlers callbacks

Updated the usage of |this| variables usage in asynchronous functions

Change-Id: I3a5e8ef13be84369d538f72002737307f1f02ff3
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoEnable Extension manager 74/182274/2
ws29.jung [Fri, 22 Jun 2018 02:40:16 +0000 (11:40 +0900)]
Enable Extension manager

Now extensions can run if it is placed on right place.

Change-Id: I1d39d1b01c7f10b41533b329d7ed6995df675345
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoImplemented getting of start url from resource manager 26/182226/1
Prathmesh [Fri, 15 Jun 2018 07:04:53 +0000 (12:34 +0530)]
Implemented getting of start url from resource manager

- Change the url load logic from window create to on appcontrol
- Pass the AppControl event to Window(On top)
- Make start url ready when getpath() is called
- Refactor code to move under OS_TIZEN macro

Change-Id: I95e3b467578f363a175efe6d2a04c500f6f6793d
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoFix up for hosted app 29/182129/4
Prathmesh [Wed, 20 Jun 2018 14:56:21 +0000 (20:26 +0530)]
Fix up for hosted app

Change-Id: I9d4391250d6bd0f6d3191ddb31df834425f6cd39
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoShow window early for hosted web application 89/181989/3
Prathmesh [Tue, 19 Jun 2018 11:02:52 +0000 (16:32 +0530)]
Show window early for hosted web application

- If the window is not shown and the url is http or https
  (hosted web application), then show on load start
- Currently the window is shown when content is ready, but
  for hosted app the contents need to downloaded. So there
  will be some delay in showing window
- If the app is hosted, then show window on load start

Change-Id: I77948215a9bd501c43ff258a440c3d386c6f4389
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoRevert "Implemented getting of start url from resource manager" 30/182130/2
Prathmesh Manurkar [Wed, 20 Jun 2018 14:58:40 +0000 (14:58 +0000)]
Revert "Implemented getting of start url from resource manager"

This reverts commit 992f0affc8602d20f2901b18724c88c5a5df663e.

Change-Id: Ia1d6019843a934f54ce340c3db8ec742e5b4d841

6 years agomove activateAll API up 99/182099/1
jaekuk, lee [Wed, 20 Jun 2018 08:45:03 +0000 (17:45 +0900)]
move activateAll API up

Change-Id: Id3787e59ff3c77f2c6dfa3772fde9cd7b269ca0c
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoBlock loading of extension in render 90/181790/1
Prathmesh [Mon, 18 Jun 2018 09:22:27 +0000 (14:52 +0530)]
Block loading of extension in render

- Plugins are already loaded in browser
- There is no use of loading in renderer as the plugins
  loaded in browser will be used.

Change-Id: I8175667d01f30be7242ff9eb24f7db597533a7c3
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoImplemented getting of start url from resource manager 27/181627/2
Prathmesh [Fri, 15 Jun 2018 07:04:53 +0000 (12:34 +0530)]
Implemented getting of start url from resource manager

- Change the url load logic from window create to on appcontrol
- Pass the AppControl event to Window(On top)
- Make start url ready when getpath() is called
- Refactor code to move under OS_TIZEN macro

Change-Id: I6b739950d16b8391a9af05b0ba63f306b339fcfc
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoInitial service app implementation 54/181354/1
SangYong Park [Mon, 9 Apr 2018 10:57:11 +0000 (19:57 +0900)]
Initial service app implementation

. add wrt-service executable
. change PWRT mate type to EventEmitter
 (TrackableObject cannot be instantiated without chromium.)

Change-Id: I2464fc12da1dcb7b85e70fcda950dd894222653f
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoAdd splash screen object to electron interface 05/181105/1
Prathmesh [Fri, 8 Jun 2018 06:40:04 +0000 (12:10 +0530)]
Add splash screen object to electron interface

- Build and generate idl's
- Make splash screen object avaliable

Change-Id: I01785552dad600a38b5e13485bfbdabfc6ba68a1
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoFix build error in widget object module 22/181022/1
Prathmesh [Thu, 7 Jun 2018 11:01:50 +0000 (16:31 +0530)]
Fix build error in widget object module

- Ideally widget module needs to be built separately and
  not included in "wrt". Same is there in xwalk.
- But in electron currently, the build system is tightly
  coupled with wrt executable, so no module can be build
  as static_lib separately.
- Currently coping widget_object in lib directory so that
  "wrt" exe will not give linking error.

- Need to find way to build widget object as static lib
  without directly linking to "wrt" exe

Change-Id: Ia5a5584f5b2165c1be5b5bd9eafc49a3d45ef195
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoAdd widget object to electron interface 00/181000/2
Prathmesh [Thu, 7 Jun 2018 07:13:41 +0000 (12:43 +0530)]
Add widget object to electron interface

- Generate the idls
- Build extension independently and add to extension
  libs

Change-Id: Ida4361a75267341ffca46c4d96369a973311e839
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoMerge "Implement Runtime Add-on" into tizen.devel
Hye Kyoung Hwang [Thu, 7 Jun 2018 02:16:51 +0000 (02:16 +0000)]
Merge "Implement Runtime Add-on" into tizen.devel

6 years agoFix for supporting TCT 68/176568/6
k2.nagaraju [Fri, 20 Apr 2018 04:26:52 +0000 (09:56 +0530)]
Fix for supporting TCT

- As node and jquery are having issues, disable node integration for Tizen apps
- Handle Tizen Exit event
- Allow loading of device API's in both main frame and iframe

Change-Id: I3e69b28462761c270862eb47bb37defe37923ea0
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
6 years agoImplement Runtime Add-on 46/180846/1
jaekuk, lee [Tue, 5 Jun 2018 01:28:38 +0000 (10:28 +0900)]
Implement Runtime Add-on

Change-Id: I3d5017a68ba43af8f4efff05069667a35d236e97
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agofixup! Expose the visibility of classes of chromium for web device api. 03/180803/1
k2.nagaraju [Mon, 4 Jun 2018 09:38:54 +0000 (15:08 +0530)]
fixup! Expose the visibility of classes of chromium for web device api.

Change-Id: Iba81e14e308e17fbfa29aad2c1515b2e4a8c2496
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agoExpose the visibility of classes of chromium for web device api. 98/178698/6
k2.nagaraju [Fri, 11 May 2018 09:59:28 +0000 (15:29 +0530)]
Expose the visibility of classes of chromium for web device api.

removed duplicate code from WRT

Change-Id: I41ddadd07ef4cdf961a4a470ae311351235b9028
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agofixup! Refactored code by removing extra check for vector size in SendAppControlEvent... 88/180788/1
deepti [Mon, 4 Jun 2018 07:26:11 +0000 (12:56 +0530)]
fixup! Refactored code by removing extra check for vector size in SendAppControlEvent function. Removed extra header files and made proper indent.

The original patch has build error and this fixes the same.

Change-Id: I912029c37dd5085a2dd2792c3ac22485ab58bc19
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoRefactored code by removing extra check for vector size in SendAppControlEvent function. 64/179864/3
deepti [Wed, 23 May 2018 05:24:04 +0000 (10:54 +0530)]
Refactored code by removing extra check for vector size in SendAppControlEvent function.
Removed extra header files and made proper indent.

Change-Id: I21281e5009e9c5c3ed7d404f9a0ced7a4c273a7b
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoAdd preload manager and invoke preloadable objects in prelaunch phase 15/176815/12
surya.kumar7 [Mon, 7 May 2018 11:36:57 +0000 (17:06 +0530)]
Add preload manager and invoke preloadable objects in prelaunch phase

Preloading the below engine independent components is giving ~50ms improvement
in app launch:
xwalk extension server
AtomContentClient
AtomBrowserClient

Change-Id: Iee9bc108aeed0414962b301345c799807dfd043d
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoInitial Implementation of AppControl Function 20/178720/4
deepti [Fri, 11 May 2018 11:09:46 +0000 (16:39 +0530)]
Initial Implementation of AppControl Function

Handled condition of resetting app.
Implemented SendAppControlEvent() for execution of AppControlEventscript.

Change-Id: I98b9420a6f5076de598dbdbbdd0968806fc1f34f
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoSet default encoding for WebContents as UTF-8 08/179008/1
surya.kumar7 [Tue, 15 May 2018 08:14:21 +0000 (13:44 +0530)]
Set default encoding for WebContents as UTF-8

Currently, the default encoding being used is ISO-8859-1 which is
a single-byte encoding and is capable of only supporting limited symbols.
Change it to UTF-8(multi byte encoding) just like in crosswalk to extend
support for more symbols

Change-Id: I92e70445ca668c8db8c258e4ad1a6d41816dd2fb
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoImplement splash screen 65/176465/7
min7.choi [Thu, 19 Apr 2018 10:30:05 +0000 (19:30 +0900)]
Implement splash screen

Implementation of splash screen used in tizen.
now the hide screen is only implemented in complete.
first-paint and costom will be implemented later.
Also, the window state of the splash screen will be implemented later

Change-Id: I444f1be7dd04be46d5cd8edca5e022616d9020ff
Signed-off-by: min7.choi <min7.choi@samsung.com>
6 years agoElectron App launching implement 37/176137/8
ws29.jung [Tue, 17 Apr 2018 02:13:23 +0000 (11:13 +0900)]
Electron App launching implement

Ironically, Electron JS Runtime was not able to execute Electron Web App,
but only able to run Tizen Web app.
From this patch, if Electron App is packaged as wgt, JS Runtime will parse xml
then will launch Electron App from its own entry point.

Change-Id: Iec5df77495063e129d99a8e1dd21bc8f489b8ffe
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoIPC bring up and removing ewk dependency to support webdevice API. 86/174986/14
k2.nagaraju [Thu, 5 Apr 2018 14:44:03 +0000 (20:14 +0530)]
IPC bring up and removing ewk dependency to support webdevice API.

- Modified the exising xwalk extension server and client to
  work in multiprocess

- related patch
  https://review.tizen.org/gerrit/#/c/173694/

Change-Id: I5675b9fc3f2aad7d477b8a7dd60a3639e3d9b757
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
6 years agoAdded Injected Bundle and extension server and client 94/173694/12
prathmeshm [Fri, 23 Mar 2018 06:46:03 +0000 (12:16 +0530)]
Added Injected Bundle and extension server and client

- Added injected bundle in electron
- Added extension server and client
- Set injected bundle path to chromium for init

- related patch
  https://review.tizen.org/gerrit/#/c/174986/

Change-Id: Iee1717b760cb68576ad02c7cab657b099e54b913
Signed-off-by: prathmeshm <prathmesh.m@samsung.com>
6 years agoImplement window rotation 66/175266/4
ws29.jung [Tue, 10 Apr 2018 02:13:36 +0000 (11:13 +0900)]
Implement window rotation

When mobile device is rotated, webapp did not follow the rotation.
Now window will properly rotate as mobile device rotates.

Change-Id: I27f45277188d119dc87e5e912607ffec26607373
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoAdd CRX type to Addon manager 72/175872/1
jaekuk, lee [Fri, 13 Apr 2018 05:07:21 +0000 (14:07 +0900)]
Add CRX type to Addon manager

Change-Id: I883ac2de7230f9801758728ccad6e024f2f079e0
Signed-off-by: jaekuk, lee <juku1999@samsung.com>
6 years agoInitial Implementation of Node prelaunch 62/173962/9
ws29.jung [Tue, 27 Mar 2018 07:41:37 +0000 (16:41 +0900)]
Initial Implementation of Node prelaunch

This patch is created to reduce WebApp launching time by using
method of Node environment prelaunching.
Prelaunch will load and run electron.asar and app.asar
then it will wait until onCreate event emit.
onCreate event will be triggered when actual WebApp is launched.

Change-Id: I42f198e9755dd8e017691c22edf96eef15cb3eb5
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoHandling app Control Data 04/174104/8
deepti [Wed, 28 Mar 2018 06:16:09 +0000 (11:46 +0530)]
Handling app Control Data

1)Take decision whether to launch or send app control data.
2)Parsing of config file to check whether to reload or not.

Change-Id: I51f0d48aba58ca62d185b994beca12abb9344578
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoImplement Hardware Backkey action 87/174687/2
ws29.jung [Tue, 3 Apr 2018 11:05:00 +0000 (20:05 +0900)]
Implement Hardware Backkey action

Hardware Backkey callback was already registered and called but
inside of it, there was nothing implemented related with WebApp.
Now hardware backkey work as it should be, like going back history
and App quit when there is no history to go back.

Change-Id: Ib95be89c8dc4da0628b7c69c531f36ff921c1b04
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
6 years agoCleanup build script and gyp files 61/174061/1
SangYong Park [Tue, 27 Mar 2018 12:52:19 +0000 (21:52 +0900)]
Cleanup build script and gyp files

Minimize change of electron's code
(Later patch will be fixed brightray's gyp files.)

Change-Id: I2cae341abeddd812c0997d91b90e94ff36aab46e
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRevert "Handling App Control Data" 44/173944/1
jaekuk lee [Tue, 27 Mar 2018 05:15:14 +0000 (05:15 +0000)]
Revert "Handling App Control Data"

This reverts commit fd80b9a284b4e8fcbf0787ce457a0e1c93498bc0.

Change-Id: Ifdbad4f988f46c92ea5ffbde5a61ac4c69006c03

6 years agoHandling App Control Data 43/173243/1
deepti [Tue, 20 Mar 2018 06:38:50 +0000 (12:08 +0530)]
Handling App Control Data

Change-Id: I42374c5f69b6ed749889dfc14f04240924309639
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoAdd missing node modules 28/172828/1
SangYong Park [Fri, 16 Mar 2018 07:42:13 +0000 (16:42 +0900)]
Add missing node modules

Previous patch remove necessary files.
(aff6b29276dda4fba6cd1cd62d5e38c479f8223a)
so, Add files again.

Change-Id: Ib52b9310e152dfaa4d0736744ceeaa9a44f10c51
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRemove unnecessary node modules 16/172716/1
SangYong Park [Thu, 15 Mar 2018 10:34:09 +0000 (19:34 +0900)]
Remove unnecessary node modules

Cleanup wrt javascript code and remove unnecessary node modules.

Change-Id: I70a09e77bc974916315372c83652e035742609d2
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoCall bootstrap when needed 54/172654/1
SangYong Park [Thu, 15 Mar 2018 05:15:52 +0000 (14:15 +0900)]
Call bootstrap when needed

bootstrap and build take a lot of times.
bootstrap is not necessary without change build configuration.
so do not call after bootstrap is called once.

Change-Id: If17c5e2de9a8a6bb85de2bb9bd811b31a185a553
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoDisallow multiple process creations 99/172399/6
surya.kumar7 [Tue, 13 Mar 2018 13:05:13 +0000 (18:35 +0530)]
Disallow multiple process creations

When a request to a new window(in electron's context) comes, if the
rule CHILD_PROCESS_SPAWN is true, electron forks the current process
and creates the new window on another process. Disabling it will mean
the new window will be created from and appended to the existing
process.

Change-Id: I907a2fb8a0cb6585e033737164a066379fadc5c5
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
6 years agoFix DEBUG environment variable issue 29/172529/1
SangYong Park [Wed, 14 Mar 2018 08:56:05 +0000 (17:56 +0900)]
Fix DEBUG environment variable issue

After enable debug module's log, web inspector is created.
Because, debug module is set DEBUG environment variable
when enable() api is called. so reset environment variable after
log enabling.

Change-Id: Iac559ef57da9625dbcda4af3157f7fc0212721f5
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoSaving App Control Data 72/172072/5
deepti [Fri, 9 Mar 2018 10:22:27 +0000 (15:52 +0530)]
Saving App Control Data

Change-Id: Icd2555eb5451de82bb5223f8ac7d493f53defbe0
Signed-off-by: deepti <d.saraswat@samsung.com>
6 years agoRemove unnecessary WAS contents 92/172492/2
SangYong Park [Wed, 14 Mar 2018 07:24:05 +0000 (16:24 +0900)]
Remove unnecessary WAS contents

. WAS contents contains unnecessry contents for current scenario,
  so remove it.
. add workaround fix for npm debug module's log

Change-Id: I540f8be24f634f0df2e01614070548529965d3f1
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoRevert "Revert "Print console messages to dlog"" 96/172496/1
jaekuk lee [Wed, 14 Mar 2018 07:41:07 +0000 (07:41 +0000)]
Revert "Revert "Print console messages to dlog""

This reverts commit 1e66211336d2c6b42b525a3ddbffdddafac77ac5.

Change-Id: I5255a6b28e70da7d84bf8716d4c468b7daac6b18

6 years agoRevert "Print console messages to dlog" 57/172357/2
jaekuk lee [Tue, 13 Mar 2018 10:43:22 +0000 (10:43 +0000)]
Revert "Print console messages to dlog"

This reverts commit 5b05d606f8ebfa38cb35175a8d585e6e38632c39.

Change-Id: Iaba35a5b7b43771acf378a743995f6e25a25ca12

6 years agoInstall rpm file after gbs building 25/172325/1
SangYong Park [Tue, 13 Mar 2018 07:53:34 +0000 (16:53 +0900)]
Install rpm file after gbs building

If target device/emulator is connected,
then, install rpm file after gbs building.

Change-Id: I32f9d2de9acf71a4865b1a7022a199925aa97979
Signed-off-by: SangYong Park <sy302.park@samsung.com>
6 years agoPrint console messages to dlog 30/172130/1
SangYong Park [Mon, 12 Mar 2018 05:39:57 +0000 (14:39 +0900)]
Print console messages to dlog

Change-Id: I0826b601c629969ca710d298f64e0716b4ad5f88
Signed-off-by: SangYong Park <sy302.park@samsung.com>