platform/framework/web/crosswalk-tizen.git
5 years agoAdd support for tizen websetting useragent 57/195657/2 tizen_4.0.devel
k2.nagaraju [Mon, 17 Dec 2018 05:40:14 +0000 (11:10 +0530)]
Add support for tizen websetting useragent

Tizen websetting useragent support is missing which is causing the
failure of |tct-websetting-tizen-tests| failures.

Change-Id: Ib7e9f3caab94bdc0bff08eddc143d0ab7d038c92
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agofixup! Fix for supporting TCT 96/195596/4
surya.kumar7 [Fri, 14 Dec 2018 14:43:18 +0000 (20:13 +0530)]
fixup! Fix for supporting TCT

1. Unless EWK APIs are used to retrieve EWK specific data,
SIGABRT is thrown while trying to delete them
2. An incorrect API and parameter has been modified

Change-Id: I4d45fd7e396f7e9581e063216d8fe5b172328aeb
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoAlter visibility of a web page as per app loop callbacks 34/195434/2
surya.kumar7 [Thu, 13 Dec 2018 11:02:19 +0000 (16:32 +0530)]
Alter visibility of a web page as per app loop callbacks

The visibility state of a web page has to be communicated
by sending 'visibilitychanged' event to the app when it is
paused/resumed

Change-Id: I8a274561a62c268dd63c2f9ec17341043ba3b63f
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoRefactor atom::Browser and move |OS_TIZEN| functions to tizen::TizenBrowserParts 00/195100/4
surya.kumar7 [Mon, 10 Dec 2018 15:43:15 +0000 (21:13 +0530)]
Refactor atom::Browser and move |OS_TIZEN| functions to tizen::TizenBrowserParts

atom::Browser has been relieved of having Tizen related implementations as
tizen::TizenBrowserparts should be responsible for such tasks
Fixed a few potential |!OS_TIZEN| macro related build errors

Change-Id: I8e9a7995518a6512ac039f7d66f009245b926b10
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoMerge "Return Localized wrt path for media playback support" into tizen_4.0.devel
jaekuk lee [Mon, 10 Dec 2018 00:47:20 +0000 (00:47 +0000)]
Merge "Return Localized wrt path for media playback support" into tizen_4.0.devel

5 years agoMerge "Revert "fixup! Add support for IDS string mapping."" into tizen_4.0.devel
jaekuk lee [Mon, 10 Dec 2018 00:43:31 +0000 (00:43 +0000)]
Merge "Revert "fixup! Add support for IDS string mapping."" into tizen_4.0.devel

5 years agoReturn Localized wrt path for media playback support 47/194847/2
k2.nagaraju [Fri, 7 Dec 2018 10:19:21 +0000 (15:49 +0530)]
Return Localized wrt path for media playback support

File based media urls are not getting localized path
which is causing FILE_NOT_FOUND error.

Change-Id: Id4818a1d4d473a6f0aae5d6ec44ce2e573c872c7
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoRevert "fixup! Add support for IDS string mapping." 39/194839/1
kodam nagaraju [Fri, 7 Dec 2018 10:04:56 +0000 (10:04 +0000)]
Revert "fixup! Add support for IDS string mapping."

This reverts commit 039af89dcbbe2c09b6ca69816562d99fb9636ef7.

Change-Id: Ibf5ea240287cb1128c1e33c8406f71599dea4179

5 years agoMerge "Reduce window creation to one" into tizen_4.0.devel
jaekuk lee [Thu, 6 Dec 2018 00:09:42 +0000 (00:09 +0000)]
Merge "Reduce window creation to one" into tizen_4.0.devel

5 years agofixup! Add support for IDS string mapping. 49/194549/1
surya.kumar7 [Wed, 5 Dec 2018 13:52:07 +0000 (19:22 +0530)]
fixup! Add support for IDS string mapping.

Media playback is affected with this line. Fixed it by
reverting it.

Change-Id: Ic0ddde89fa2174f35bc8de4afa0d25d3f8067659
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoReduce window creation to one 25/193825/5
surya.kumar7 [Thu, 29 Nov 2018 16:12:14 +0000 (21:42 +0530)]
Reduce window creation to one

Since app life cycle events are bound only to the first elm window
created, many side effects were observed. Restricted the elm windows to
one and mapped any web views being created to that.

Change-Id: I4fda238703ee3af82c1104512b5a14dfaec52a4a
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoMerge "Add support for IDS string mapping." into tizen_4.0.devel
jaekuk lee [Thu, 29 Nov 2018 05:05:29 +0000 (05:05 +0000)]
Merge "Add support for IDS string mapping." into tizen_4.0.devel

5 years agoAdd support for IDS string mapping. 95/193695/3
k2.nagaraju [Fri, 23 Nov 2018 08:34:42 +0000 (14:04 +0530)]
Add support for IDS string mapping.

Change-Id: Ib98e52ef987be07a61ea9d40a8e142f2232378c4
Signed-off-by: k2.nagaraju <k2.nagaraju@samsung.com>
5 years agoMerge "Add TizenWebContentsView component to JSWRT which resemebles EWebView" into...
jaekuk lee [Thu, 29 Nov 2018 04:07:50 +0000 (04:07 +0000)]
Merge "Add TizenWebContentsView component to JSWRT which resemebles EWebView" into tizen_4.0.devel

5 years agoAdd TizenWebContentsView component to JSWRT which resemebles EWebView 33/193433/5
surya.kumar7 [Tue, 20 Nov 2018 10:40:18 +0000 (16:10 +0530)]
Add TizenWebContentsView component to JSWRT which resemebles EWebView

A TizenWebContentsView is associated with every WebContents and is capable
of performing operations on it like handling Context Menu controller,
Selection Controller or Clipboard helper

Change-Id: Ib6ff95ce7395da40b99fd30d7e589129b9835b63
Signed-off-by: surya.kumar7 <surya.kumar7@samsung.com>
5 years agoDeInitilize elm during app exit 97/193897/1
prathmesh.m [Tue, 27 Nov 2018 09:35:27 +0000 (15:05 +0530)]
DeInitilize elm during app exit

- Deinit elm as its no more required

Change-Id: Ie432f0c479bdec4fcb5ef1bc5b6f12bdb4decb68
Signed-off-by: prathmesh.m <prathmesh.m@samsung.com>
5 years agoDelete duplicate api call 24/193424/2
min7.choi [Tue, 20 Nov 2018 09:04:53 +0000 (18:04 +0900)]
Delete duplicate api call

actiavteall() has already been called
There are two pairs of extension related ipc events.

Change-Id: I46393b3f87303e4589f120d70a50626dded0202b
Signed-off-by: min7.choi <min7.choi@samsung.com>
5 years agoMerge "Built UserAgent according to OS And Product." into tizen_4.0.devel
jaekuk lee [Mon, 19 Nov 2018 07:46:08 +0000 (07:46 +0000)]
Merge "Built UserAgent according to OS And Product." into tizen_4.0.devel

5 years agoBuilt UserAgent according to OS And Product. 64/193264/5
deepti [Fri, 16 Nov 2018 13:43:49 +0000 (19:13 +0530)]
Built UserAgent according to OS And Product.

Replaced BuildUserAgentFromProduct() with BuildUserAgentFromOSAndProduct().
because UserAgent was not updating according to device, platform and model.

Change-Id: I27bf6415ff87883d29173d8f4fae9e367a850c7e
Signed-off-by: deepti <d.saraswat@samsung.com>
5 years agoImplement Lazy BrowserWindow Initialization 36/193136/1
ws29.jung [Thu, 15 Nov 2018 05:01:25 +0000 (14:01 +0900)]
Implement Lazy BrowserWindow Initialization

App launching using electron-efl was faster than xwalk and
used more memory because of webview creation under window init.
Now BrowserWindow will not initialized when wrt-loader preloads.
This decrease the memory consumption of wrt-loader and
app launching time is nearly the same as the xwalk.

Change-Id: I0c8a8b2dd86a0e445cd1f6ca75cab2c231cd66a9
Signed-off-by: ws29.jung <ws29.jung@samsung.com>
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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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>
5 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

5 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>
5 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>
5 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>
5 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>
5 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>