platform/framework/web/chromium-efl.git
14 months agofixup! Bringup Upgradable Web Engine (UWE) 91/290091/3
Gajendra N [Mon, 20 Mar 2023 06:57:30 +0000 (12:27 +0530)]
fixup! Bringup Upgradable Web Engine (UWE)

Due to misordering of spec sections in the original patch, smack
rules were not applied to wrt-service executable before creating
squashfs img. This commit fixes it.

Change-Id: I10cd22e2f92791c6dff2f083ff426f58a31d621e
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
14 months ago[M108 Migration][MM] Enable AV1, VP9 and HEVC codec for 4k video support. 13/290013/3
Sun-woo Nam [Wed, 29 Jun 2022 13:24:11 +0000 (18:54 +0530)]
[M108 Migration][MM] Enable AV1, VP9 and HEVC codec for 4k video support.

This patch enables below patch for 4k support of AV1 and HEVC codecs.

Reference:
https://review.tizen.org/gerrit/#/c/277038/

Change-Id: I9d53ecddedb74cef5065da8ef3eb60b6335641f3
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
14 months agoFix critical SVACE issue 49/290049/2
v-saha [Fri, 17 Mar 2023 13:09:49 +0000 (18:39 +0530)]
Fix critical SVACE issue

This patch fixes remaining critical SVACE issues.

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

Change-Id: I1c26067e382d40c83b8d722088b20b7bea78714c
Signed-off-by: v-saha <v.saha@samsung.com>
14 months ago[M108 Aura Migration][NaCl][PPFWK] Upgradable pepper plugin requirement 63/290063/2
Xiaoshu Wei [Mon, 20 Mar 2023 01:05:00 +0000 (09:05 +0800)]
[M108 Aura Migration][NaCl][PPFWK] Upgradable pepper plugin requirement

Migrated from tizen 7.0:
https://review.tizen.org/gerrit/#/c/280176/

Change-Id: Iaec1fb79816bfb031e855fb87272baa142e9aba5
Signed-off-by: Xiaoshu Wei <xiaoshu.wei@samsung.com>
14 months agofixup! [NUI] NUI implementation for |SkiaRenderer| 14/290014/4
YongGeol Jung [Fri, 17 Mar 2023 06:41:23 +0000 (23:41 -0700)]
fixup! [NUI] NUI implementation for |SkiaRenderer|

Support 64bit environment.

Change-Id: I658ba1fab865c6b39b137a8d5a39f3b6a36728a8

14 months ago[M108 Migration][VD] Implement mixed contents EWK interfaces 80/289680/5
jingjieli [Mon, 13 Mar 2023 09:13:31 +0000 (17:13 +0800)]
[M108 Migration][VD] Implement mixed contents EWK interfaces

1. When the page was loaded over https, but attemped to connect to
   the insecure http resource. The callback will be invoked to ask
   browser to confirm it.
2. Add new EWK interfaces:
   Send "did,block,insecure,content" to notify browser.
   ewk_settings_mixed_contents_reply_set to set "allow/deny" to blink
3. Implement ewk_settings_default_mixed_contents_policy_set

Refrences:
https://review.tizen.org/gerrit/#/c/279551/
https://review.tizen.org/gerrit/#/c/289527/
https://review.tizen.org/gerrit/#/c/289413/

Change-Id: Ic512e076c71a9909ac91bb67add2a3606d0c9d8a
Signed-off-by: jingjieli <jingjie.li@samsung.com>
14 months agoRemoving not needed tools for tizen 15/289615/4
uzair [Fri, 10 Mar 2023 10:03:58 +0000 (15:33 +0530)]
Removing not needed tools for tizen

Below tools are specific to android and windows platform and
not used tizen. Hence removing this reduces source code size by
~65MB.

Change-Id: I158e633af6d84c0cc72d34a6562dfd1267d00d3b
Signed-off-by: uzair <uzair.jaleel@samsung.com>
14 months agoEnsure all gl calls are submitted to GPU 22/289922/4 submit/tizen/20230317.160013
uzair [Wed, 15 Mar 2023 11:09:45 +0000 (16:39 +0530)]
Ensure all gl calls are submitted to GPU

Black screen is observed on static pages as all gl calls
were not submitted to graphics driver, below change helps
fixing the same.

Also improves benchmark scores on TV

+------------------+-------------+------------+
| KPI              |   Before    |    After   |
+------------------+--------------------------+
| Aquarium         |   50 fps    |     60 fps |
+------------------+-------------+------------+
| Falling Leaves   |  Not Smooth |     60 fps |
+------------------+-------------+------------+
| Poster Circle    |  Not Smooth |     60 fps |
+------------------+-------------+------------+

Change-Id: I3df6bead0d7a0817c8dfd5ac4e2836a00fc49580
Signed-off-by: uzair <uzair.jaleel@samsung.com>
14 months agoRevert "[Offscreen] Fix for black screen on static pages" 06/290006/3
Uzair Jaleel [Fri, 17 Mar 2023 05:36:12 +0000 (05:36 +0000)]
Revert "[Offscreen] Fix for black screen on static pages"

This reverts commit 7331a884d7f18045402cff3a470c6b8cfdc0313d.

Reason for revert: This change is not needed anymore as we
are able to meet the webgl Aquarium benchmark and also black
screen on static pages is not observed with [1]

[1]https://review.tizen.org/gerrit/c/289922

Change-Id: I794be4ad43df546e5ecc3f747ca33037707080f4

14 months ago[M108 Migration][VD] Fix filesystem Cannot Used in Source of iframe. 89/289389/2
feifei08.liu [Tue, 7 Mar 2023 03:18:31 +0000 (11:18 +0800)]
[M108 Migration][VD] Fix filesystem Cannot Used in Source of iframe.

Pages come from filesystem cannot used in source of iframe, because the policy
of navigation stop it. In Tizen TV, Apps use filesystem to save the page is
safe, which should not stop to navigate it.

Reference:
- https://review.tizen.org/gerrit/283518/

Change-Id: I51d034dff614a1a276d5cfb0da9dc9a2aeebe019
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
14 months agoRemove wayland from ozone platform build target 16/289816/4
SangYong Park [Tue, 14 Mar 2023 10:27:24 +0000 (19:27 +0900)]
Remove wayland from ozone platform build target

wayland ozone platform does make platform wayland wrapping layer.
and, it makes crash when call wayland api, since wayland platform
is not initialized properly. we remove wayland platform because
do not use it.

Change-Id: Ie3d3d6fa3153f4b16e4b6689269de21591961ac7
Signed-off-by: SangYong Park <sy302.park@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] changing conformant style specifications 96/289996/2
zhaosy [Fri, 17 Mar 2023 01:57:38 +0000 (09:57 +0800)]
[M108 Migration][WRTjs][VD] changing conformant style specifications

if support visual_controller, no_resize conformant style is not needed.

Landscape mode : conformant always needed.
Portrait mode : support visual_controller -> conformant needed.
                not support visual_controller -> no_resize conformant needed.

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

Change-Id: Ia7af940503853ebadb8ab8b55b1ebb6af100d57b
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months agoRemove duplicate function definition 62/289662/2
jiangyuwei [Mon, 13 Mar 2023 05:38:25 +0000 (13:38 +0800)]
Remove duplicate function definition

Below function have duplicate definition:
ewk_check_chromium_ready
ewk_wait_chromium_ready

Change-Id: I702936a0c8a63b627c3a27c5f597776cce41d978
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration][SlimDownCode] Remove unused google-endpoints in //third_party/ 24/289924/2
Chandan Padhi [Wed, 15 Mar 2023 12:35:20 +0000 (18:05 +0530)]
[M108 Migration][SlimDownCode] Remove unused google-endpoints in //third_party/

chromium-efl does not use google-endpoints in third_party/.
The same does not even build for chromium-efl. Therefore,
removing it from the source tree.

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

Change-Id: I8bac0dfa6064c5af528af652bbdbd44b1132d044
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
14 months ago[M108 Migration][MM] Disable video hole for emulator 80/289880/7
Koyyani Maheswari [Wed, 15 Mar 2023 04:32:20 +0000 (10:02 +0530)]
[M108 Migration][MM] Disable video hole for emulator

There is issue when overlay and TBM are enabled together on emulator
profile. This patch disables overlay for emulator.

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

Change-Id: I4160ad242bd63090f06a9ecfd084893877437b61
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
14 months agofixup! [MM] Use ESPP for media rendering 18/289918/6 submit/tizen/20230316.160014
Koyyani Maheswari [Wed, 15 Mar 2023 10:44:24 +0000 (16:14 +0530)]
fixup! [MM] Use ESPP for media rendering

1) Reduce log statement
Too many buffering related logs are printed. They are
removed.

2) Added missing logs in TizenRendererImpl

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

Change-Id: Iaa1996711130a5c5a0482d94c445eaaab372baf7
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
14 months agofixup! [M108 Migration][API] Introduce AddJavascriptInterface for Tizen 56/289956/2
Gajendra N [Thu, 16 Mar 2023 06:09:15 +0000 (11:39 +0530)]
fixup! [M108 Migration][API] Introduce AddJavascriptInterface for Tizen

Original patch missed a '+' charater during migration, causing wrong value
append during Native to JS conversion. This patch fixes it.

Change-Id: I01d31ba2053d71c495da8380836d2b8fffa86d8d
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
14 months ago[M108 Migration][VD] M108 Migration for Plugin Hole 37/289837/4
zhao dan [Tue, 14 Mar 2023 10:56:26 +0000 (18:56 +0800)]
[M108 Migration][VD] M108 Migration for Plugin Hole

The main hole implementation for plugin and HBBTV.

This patch is migrated from:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/270859/

Change-Id: I19e97a670c11f75461f11b656c3c71774c14402c
Signed-off-by: zhao dan <danys.zhao@samsung.com>
14 months ago[WRTjs][VD] Remove privileged-service build dependency 37/289937/6
VBS [Thu, 16 Mar 2023 00:29:29 +0000 (09:29 +0900)]
[WRTjs][VD] Remove privileged-service build dependency

Remove privileged-service build dependency to prevent appzone deny

Change-Id: Id8e659747b1e45b32caa4614b4fa91ebe8c9ed73
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration][MM] Call player-stop on release 13/289913/2
Venugopal S M [Tue, 20 Sep 2022 07:06:43 +0000 (12:36 +0530)]
[M108 Migration][MM] Call player-stop on release

Call player-stop as the precondition for un-setting callbacks
is player-state-none.

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

Change-Id: Ib4bbe4b44850769694024d733287bc5db81c8ba6
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months ago[M108 Migration][MM] Manage multi-players using resource conflict callback. 85/289885/2
Suhaspoornachandra [Wed, 15 Mar 2023 06:04:12 +0000 (11:34 +0530)]
[M108 Migration][MM] Manage multi-players using resource conflict callback.

Because of hw decoder capacity, only one player can be played on the web page
including multi-players.
It is not known which player will play after web page loading.
Thereafter, the player requested by the user plays, and the other player
is suspended.

- Players who receive the ResourceConflict callback from Resource Manager
  should be suspended.
- Seek is pended while reconfiguring pipeline during resume.
  After prepare, request demuxer seek to operate the seek normally.

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

Change-Id: I4686502216cc1ba266f0f95d01baf7a9a5abc757
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
14 months ago[M108 Migration][MM] Introduce renderer seek 80/288480/12
Venugopal S M [Fri, 10 Mar 2023 13:33:02 +0000 (19:03 +0530)]
[M108 Migration][MM] Introduce renderer seek

This patch introduces seek method for renderer. Pipeline's
seek completes only after renderer (Tizen port) finishes seek.

Reference:
https://review.tizen.org/gerrit/277425/
https://review.tizen.org/gerrit/278833/
https://review.tizen.org/gerrit/277287/
https://review.tizen.org/gerrit/278426/

Change-Id: If808aed7d280be963ec3f0f8a7e7839cfe237bfe
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months agofixup! [MM] Handle buffering and playback 08/289908/2
Venugopal S M [Wed, 15 Mar 2023 06:49:11 +0000 (12:19 +0530)]
fixup! [MM] Handle buffering and playback

- Submit the packet again when the buffer is full.
- Delay read call on need-buffer state

https://review.tizen.org/gerrit/285113
https://review.tizen.org/gerrit/286895

Change-Id: I34a71fed8dae4f19459d01a3ccc3e3f8b28cf812
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months ago[M108 Migration] Disable LibXR module for EFL 30/289730/3
Ayush Kumar [Tue, 14 Mar 2023 04:34:16 +0000 (10:04 +0530)]
[M108 Migration] Disable LibXR module for EFL

Below change disables libxr module for EFL which
gives around 750KB gain in libchromium-impl.so size

==================== |=========================|
                     | Base     |  With patch  |
=====================|=========================|
libchromium-impl.so  |171MB     |  170.25MB    |
                     |          |              |
=====================|=========================|

References: https://review.tizen.org/gerrit/282983/

Change-Id: Id9413e7b87a5f97ae29d71049c965c3032e71ae9
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
14 months agoUse gzip rather than brotli for blink resources 90/289890/5 submit/tizen/20230315.160015
Gajendra N [Wed, 15 Mar 2023 06:40:15 +0000 (12:10 +0530)]
Use gzip rather than brotli for blink resources

On upstream, commit [1] sets brotli compression as default compression
method for Blink resources, but it causes some issue on 7.5 platform.
This patch disables brotli and sets gzip as default for efl port.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3373050

With respect to content_shell.pak size, the difference is only ~100KB.
Brotli : 11907652
gzip : 12010220

Change-Id: I7c76e2904b392ec0615e0f4157820d5dac8f630d
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
14 months ago[M108 Migration][VD]Add NULL pointer checking and logs for EWebView::Hide 45/289245/4
jiangyuwei [Fri, 3 Mar 2023 07:03:04 +0000 (15:03 +0800)]
[M108 Migration][VD]Add NULL pointer checking and logs for EWebView::Hide

1. The pointer(web_contents_) didn't do NULL check before use.
This may cause coredump if web_contents_ is NULL. So add NULL pointer
checking for function Hide.
2. Add some logs for function Hide and EWebView and ~EWebView to trace
certain WebView instance's life cycle.

Reference:
 - https://review.tizen.org/gerrit/#/c/285660/

Change-Id: I315c2e84f7c2f3260af2ddc77ccfad1b9f7e9232
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration] Fix timezone incorrect issue 74/289574/6
fang fengrong [Thu, 9 Mar 2023 00:47:46 +0000 (08:47 +0800)]
[M108 Migration] Fix timezone incorrect issue

If web page uses JavaScript Date objects, then timezone information is incorrect.
Reference site : https://www.w3schools.com/js/js_dates.asp
System icu using "/opt/etc/localtime" instead of "/etc/localtime"

Reference:
https://review.tizen.org/gerrit/#/c/282962

Change-Id: Ie5c2ff93647d94620fa8c1b20d62684db596c72f
Signed-off-by: fang fengrong <fr.fang@samsung.com>
14 months ago[M108 Aura Migration][NaCl][Nacl Fwk] Remove unnecessary nacl toolchain directory 56/289156/2
wurc [Thu, 2 Mar 2023 05:26:51 +0000 (13:26 +0800)]
[M108 Aura Migration][NaCl][Nacl Fwk] Remove unnecessary nacl toolchain directory

Ported patch from M94 Aura:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/279656/

Change-Id: I45cba07cf9b430ccbfb1ebe2647e263ed517b9bf
Signed-off-by: wurc <rongchun.wu@samsung.com>
14 months ago[NUI] NUI implementation for |SkiaRenderer| 97/289697/11
YongGeol Jung [Mon, 13 Mar 2023 15:29:17 +0000 (08:29 -0700)]
[NUI] NUI implementation for |SkiaRenderer|

NUI feature for |SkiaRenderer| is implemented based on [1] and [2].

1. The basic structure is implemented by migrating [1] partially.
2. |NotifySwap| is reused for transfering tbm surface.
3. |SkiaOutputDeviceOffscreenTBM| is added to render tbm surface using |SKSurface|.

[1] https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/287806/
[2] https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/288452/

Change-Id: Idf817adb66db71be75ceb0f270763762c625e96d
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
14 months ago[M108 Migration][VD] Implement ewk_cookie_manager_changes_watch product API 78/289678/4 submit/tizen/20230314.160016
xiafeng [Tue, 14 Mar 2023 08:47:13 +0000 (16:47 +0800)]
[M108 Migration][VD] Implement ewk_cookie_manager_changes_watch product API

Due to VD request new API is implemented. The API allows for setting a
callback called when a change to any cookie is made (added, deleted or
modified).

References:
https://review.tizen.org/gerrit/281784/

Change-Id: I19e0dc6e3899242038afe91686e3485969ae631e
Signed-off-by: xiafeng <feng.xia@samsung.com>
14 months agoDummy Implementation for ewk_context_new_with_injected_bundle_path_and_storage_name 18/289718/4
xiafeng [Wed, 15 Mar 2023 02:54:35 +0000 (10:54 +0800)]
Dummy Implementation for ewk_context_new_with_injected_bundle_path_and_storage_name

This is a temporary API only for HBBTV, It should only be used in M85.
HBBTV's default DB name is data, HBBTV need to set a new DB name
for the additional context (For HBBTV HD+ scenario).

Currently, null implementation to avoid hbbtv crash issue on M108.

Change-Id: Ie3db05f7e8278678bf1a7862b18d476c09316338
Signed-off-by: xiafeng <feng.xia@samsung.com>
14 months ago[M108 Migration] Dummy Implementation for EWK APIs 37/289737/3
wuxiaoliang [Tue, 14 Mar 2023 06:24:59 +0000 (14:24 +0800)]
[M108 Migration] Dummy Implementation for EWK APIs

Dummy Impl for: [VD][HbbTV] Virtual main out
ewk_view_sw_audio_decoding_set

Dummy Impl for: [VD][HbbTV] HbbTV TA migration
Ewk_Board_Decoding_Capabilities
ewk_view_board_decoding_capabilities_get
ewk_view_next_player_for_media_switch_set

Dummy Impl for: [VD][HbbTV] Merge from Trunk 2022
ewk_view_set_video_geometry
ewk_view_player_set_visibility
ewk_view_player_play
ewk_view_player_pause
ewk_view_release_players
EWK_HARDWARE_DECODERS_BOTH

Dummy Impl for: [MM][HBBTV][EME] Add HBBTV EME feature
Ewk_DRM_Init_Data_Info
Ewk_DRM_Init_Complete_Info
Ewk_DRM_Error_Info

Dummy Impl for: [VD][HBBTV] Audio tracks count notification
Ewk_Audio_Tracks_Info
ewk_audio_tracks_info_video_id_get
ewk_audio_tracks_info_count_get

Change-Id: Ia6b0b1a6633dae7a1fd31869805d8839933074a4
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Apply Non Cursor Support logic for SmartMonitor 64/289664/2
zhaosy [Mon, 13 Mar 2023 05:46:25 +0000 (13:46 +0800)]
[M108 Migration][WRTjs][VD] Apply Non Cursor Support logic for SmartMonitor

It's SmartMonitor requirment, the cursor in SmartMonitor is different
from TV, in SmartMonitor, window manager cannot disable cursor, just
can hide cursors, so follow the guide.
http://wiki.vd.sec.samsung.net/pages/viewpage.action?pageId=242867218

Besides set cursor name and transparent, WRT should call engine API to
disable mouse event.

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

Change-Id: I4f7d543c410fae4ea8ed305c3312797337da017f
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][SlimDownCode] Remove unused //v8/test/fuzzer/wasm_corpus 15/289415/6
Chandan Padhi [Tue, 7 Mar 2023 09:48:37 +0000 (15:18 +0530)]
[M108 Migration][SlimDownCode] Remove unused //v8/test/fuzzer/wasm_corpus

This commit removes unused //v8/test/fuzzer/wasm_corpus.

Change-Id: Ib6afcf1e807ac7a40eb5d6735b12d954786be4f0
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Remove privileged-service build dependency 19/289719/2
DongHyun Song [Wed, 8 Mar 2023 08:58:17 +0000 (17:58 +0900)]
[M108 Migration][WRTjs][VD] Remove privileged-service build dependency

When libchromium-ewk is used NUI application, appzone denies the
build dependency of libprivileged-service-client.so.

Thus, this patch removes the dependency and change the way to handle
them by dlopen/dlsym.

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

Change-Id: I0b3bd118be5aeaf253651c51534f1f08630076ca
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration] Correct wasm-with-sourcemap.map filename 93/289693/2
Michal Jurkiewicz [Thu, 17 Mar 2022 07:46:52 +0000 (08:46 +0100)]
[M108 Migration] Correct wasm-with-sourcemap.map filename

Ported patch:
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/252402/

Original description:

    [Problem]
    `wasm-with-sourcemap..........map` file has filename that causes problem with
    P4 autosync.

    [Cause]
    It seems that during file renames in review:
    https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2071893/1..5
    mistake was made in `wasm-with-sourcemap.map` file.

    [Solution]
    Changing `wasm-with-sourcemap..........map` name to `wasm-with-sourcemap.map`.

Bug: https://cam.sprc.samsung.pl/browse/VDWASM-1099
Change-Id: I98ab3f8a3ea89b52a4b9f3d02d58b1f54782fc96
Signed-off-by: Michal Jurkiewicz <m.jurkiewicz@samsung.com>
14 months ago[M108 Migration] Create CookieManager when Network Service enable. 99/289399/3
xiafeng [Wed, 8 Mar 2023 05:54:06 +0000 (13:54 +0800)]
[M108 Migration] Create CookieManager when Network Service enable.

From tizen 6.0, network service is default enable. CookieManager is created
when NetworkContext created, while cookie path is not set by ewk api at
that moment. This patch adds a function to create CookieManager in
NetworkContext after we get cookie path.

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

Change-Id: I0848f71dc1728ecf1916f756f05d1b42c56d0bbe
Signed-off-by: xiafeng <feng.xia@samsung.com>
14 months ago[M108 Migration] Fix svace warning 41/289241/5
jiangyuwei [Fri, 3 Mar 2023 06:44:55 +0000 (14:44 +0800)]
[M108 Migration] Fix svace warning

Release the value from app_control_get_extra_data.

Reference:
 - https://review.tizen.org/gerrit/#/c/267099/
 - https://review.tizen.org/gerrit/#/c/265555/

Change-Id: I6697cccaea5c10272440b583aed8432f76b1fc6d
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration] Fix memory leak in intercept request 84/289384/2
feifei08.liu [Tue, 7 Mar 2023 02:04:40 +0000 (10:04 +0800)]
[M108 Migration] Fix memory leak in intercept request

In TV plus test case, HBB team found some memory from ewk intercept
request interface have never been released.
Test case: Repeatly raise Tv plus and exit.

hbbtv_app process never exit, each time raising Tv plus, many ewk intercept
request instances and ProxyingURLLoaderEfl instances will be leaked:
1. In ProxyingURLLoaderFactoryEfl::CreateLoaderAndStart,
   when intercept_request->is_ignored(),
   the new _Ewk_Intercept_Request will be leak;
2. In ProxyingURLLoaderFactoryEfl::CreateLoaderAndStart,
   after creating, the created ProxyingURLLoaderEfl never dtor;
3. In _Ewk_Intercept_Request::put_chunk, when delegate_ is null,
   the function input "char* data" will be leaked.
4. In ProxyingURLLoaderEfl::PutChunk, the instance dose not emplace
   the input data memory nor delete it.

Reference:
- https://review.tizen.org/gerrit/283460/

Change-Id: Icb5d95ea5e201e9f8beb24914b14822b2e99957e
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
14 months ago[M108 Migration][VD] Support Hbbtv for CORS from XMLHttpRequest. 75/289575/3
fr.fang [Fri, 10 Mar 2023 01:14:17 +0000 (09:14 +0800)]
[M108 Migration][VD] Support Hbbtv for CORS from XMLHttpRequest.

This patch support HBBTV CORS from XMLHttpRequest to set the request
header 'origin' to 'hbbtv-carousel://'.

References:
https://review.tizen.org/gerrit/283376

Change-Id: Iba6eb21d66aec06e298c5b790c6dc481ccbf3d1d
Signed-off-by: fr.fang <fr.fang@samsung.com>
14 months ago[M108 Migration][VD] Disable NAVIGATION popup in TV. 88/289388/5
feifei08.liu [Tue, 7 Mar 2023 02:25:33 +0000 (10:25 +0800)]
[M108 Migration][VD] Disable NAVIGATION popup in TV.

NAVIGATION popup show default one which create
by WebEngine.
As WebBrowser owns both WebView and control bar.
It is hard to handle event while popup shows.

After discuss with WebBrowser, disable this popup
at first.

If re-use later, this popup can be implement by
WebBrowser with below APIs:
ewk_view_before_unload_confirm_panel_callback_set
ewk_view_before_unload_confirm_panel_reply

Reference:
- https://review.tizen.org/gerrit/283461/

Change-Id: I8f4d43dd18ecdcb170f96a06d098c345d54e6b4c
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
14 months agofixup! [MM] Implement MMPlayer(CAPI) path to support HBBTV. 85/289585/5
Sun-woo Nam [Fri, 10 Mar 2023 03:48:19 +0000 (19:48 -0800)]
fixup! [MM] Implement MMPlayer(CAPI) path to support HBBTV.

1. Set user agent string for MMPlayer
2. Fix wrong condition checking:
   Check MediaResource::Type::URL instead of |demuxer_override_|
   because it is set as |null| after |SetDemuxer| function call.
3. Change the location of MediaUrlDemuxer creation:
   ContentRendererClientEfl -> ContentRendererClient

These patches can be squashed into the original patch.

Reference:
https://review.tizen.org/gerrit/#/c/276946/
https://review.tizen.org/gerrit/#/c/278781/
https://review.tizen.org/gerrit/#/c/288024/

Change-Id: I76edfa42ffb8f9e16a4b5bfa6db3dfd95a7893b3
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
14 months ago[WRTjs][VD] Refactors WRTContentMain and its delegate 92/289492/8
DongHyun Song [Thu, 9 Mar 2023 00:14:02 +0000 (09:14 +0900)]
[WRTjs][VD] Refactors WRTContentMain and its delegate

Refactors usage of delegate and remove TV profile guard.

Change-Id: I4fbbf8b60caf228c36ebccdda704b81c0a12306c
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Optimize the policy of clear dead mount point 45/289645/3
zhaosy [Mon, 13 Mar 2023 03:03:23 +0000 (11:03 +0800)]
[M108 Migration][WRTjs][VD] Optimize the policy of clear dead mount point

1. The init value of "rtc/memory/WebApp/wrtloadercount" is -1;
and not all loop device is used by wrt, so define the timing
of checking dead mount is 6.

2. Not check mount path is exist or not, bcz WRT move this logic
to app process, if we check it, smack issue will happen.

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

Change-Id: Ia87b67a59553cc8a8cebe143f3b02849171d4a79
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][VD][UWE] Change Chromium TPK to WAS App 64/289464/2
jiangyuwei [Wed, 8 Mar 2023 06:08:28 +0000 (14:08 +0800)]
[M108 Migration][VD][UWE] Change Chromium TPK to WAS App

This patch includes:

1. Change Chromium TPK type from BIU to WAS by removing 2 metadatas.
The BIU(BuiltInUpgrade) app is installed unconditionally,
and the WAS type app can set the installation conditions.

When considering flash size,
Chromium TPK should not be installed unconditionally.

2. Add new metadata, "postinstall.launch"
WAS executes mount daemon when an app containing "postinstall.launch"
metadata is installed or updated.

Reference:
  - https://review.tizen.org/gerrit/#/c/272769/

Change-Id: I9e04337f6ad976a265091d7d2088db0d0ca53bd5
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Aura Migration][NaCl][PPFwk] Enable VD Trusted Plugins functionality 27/289527/3
Xiaoshu Wei [Thu, 9 Mar 2023 07:26:39 +0000 (15:26 +0800)]
[M108 Aura Migration][NaCl][PPFwk] Enable VD Trusted Plugins functionality

Migrated from tizen 7.0:
https://review.tizen.org/gerrit/#/c/279658/

Change-Id: Id0dcc051a1fbc83f0180b4419b31c7b96c594a42
Signed-off-by: Xiaoshu Wei <xiaoshu.wei@samsung.com>
14 months ago[M108 Migration][MM] Suspend a video if sent to background. 14/289614/3
Koyyani Maheswari [Fri, 10 Mar 2023 09:41:09 +0000 (15:11 +0530)]
[M108 Migration][MM] Suspend a video if sent to background.

The video playback is abnormal when switching tabs in web browser.
This patch suspends a video sent to background.

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

Change-Id: Ia429bcbfb3a4ce6b4d005694a7dd27a566a10903
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
14 months ago[M108 Migration][MM] Create MediaPlayerESPlusPlayer as multiple instances. 22/287222/11
Suhaspoornachandra [Wed, 25 Jan 2023 03:26:36 +0000 (08:56 +0530)]
[M108 Migration][MM] Create MediaPlayerESPlusPlayer as multiple instances.

MediaPlayerESPlusPlayer is created as singleton before, previously, but it caused an issue
that no video can be played in multi-video content.
This patch therefore changes MediaPlayerESPlusPlayer to be created as multiple instances and
it makes the latest video be played in multi-video content.

References:
https://review.tizen.org/gerrit/276973/
https://review.tizen.org/gerrit/277230/

Change-Id: Ifeb2e3af55bd5eba2cb58adcda2132d16d533d24
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
14 months ago[M108 Migration][MM] Prevent suspend and release a player during prolonged pause. 00/289600/2
Sun-woo Nam [Fri, 10 Mar 2023 06:35:08 +0000 (22:35 -0800)]
[M108 Migration][MM] Prevent suspend and release a player during prolonged pause.

If a player pauses for 15 seconds, it becomes a 'stale' state.
The stale players is suspended and released, but it causes unexpected behavior
such as black screen.
This patch therefore doesn't suspend the stale players.

Reference:
https://review.tizen.org/gerrit/#/c/276980/
https://review.tizen.org/gerrit/#/c/277231/

Change-Id: I9190275c60a5c0b66b583ca75cd7e8132a37bc58
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
14 months ago[M108 Migration][MM][HBBTV] Check HLS to enable url demuxer. 93/289593/2
Sun-woo Nam [Wed, 15 Feb 2023 05:24:55 +0000 (21:24 -0800)]
[M108 Migration][MM][HBBTV] Check HLS to enable url demuxer.

FFmpeg demuxer is not available for Http Live Streaming contents.
Therefore, I modified to use url demuxer for HLS by referring to the existing
android code.

Reference:
https://review.tizen.org/gerrit/#/c/288322/

Change-Id: I6827d16c8f298748743779ac4cb78957cb46ffdb
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
14 months ago[M108 Migration] Support new pixel format in webrtc 27/289327/6
Suhaspoornachandra [Mon, 6 Mar 2023 09:36:54 +0000 (15:06 +0530)]
[M108 Migration] Support new pixel format in webrtc

Support PIXEL_FORMAT_TBM_INTER_PROCESS_BUFFER and PIXEL_FORMAT_ENCODED.

Reference:
https://review.tizen.org/gerrit/#/c/279885

Change-Id: I30659a3c071b697ed06ff8eaf844ca82799d2b55
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
14 months ago[M108 Migration][VD] Disable show DateTimeDialog for datetime input type 06/289306/2
liuxd [Mon, 6 Mar 2023 06:21:59 +0000 (14:21 +0800)]
[M108 Migration][VD] Disable show DateTimeDialog for datetime input type

Issue: click the below input type, will show black screen
<input type="date">
<input type="datetime-local">
<input type="month">
<input type="time">
<input type="week">

Solution: disable show DateTimeDialog for avoid show black screen

Root Cause:
Click the above datetime input type, will show DateTimeDialog.
But the DateTimeDialog don't support well when CreateAndShowDateLayout,
will show black screen.

And we don't support show DateTimeDialog for datetime input type before.
So follow as previous, don't support show DateTimeDialog.

refer:
https://review.tizen.org/gerrit/#/c/282731

Change-Id: Ia585744b046782061a96b490c10c8ac8718c0593
Signed-off-by: liuxd <xd123.liu@samsung.com>
14 months ago[M108 Migration][VD] Fix FocusInOutCallbacks not handled issue 66/289066/2
liuxd [Tue, 28 Feb 2023 06:37:33 +0000 (14:37 +0800)]
[M108 Migration][VD] Fix FocusInOutCallbacks not handled issue

FocusInOutCallbacks been set on RenderViewReady, and been handled
on OnFocusIn/OnFocusOut.

On below case, the FocusInOutCallbacks not handled.
1. open office365 word:
   open office365 word will CreateNewWindow, and on the process
   without PostRenderViewReady, cause FocusInOutCallbacks without set.

   So add PostRenderViewReady when CreateNewWindow.

2. open website by deeplink:
   ewk_view_focus_set set after PostRenderViewReady.
   Becasue it takes a long time from PostRenderViewReady to receiving
   RenderViewReady, cause EWebView receive RenderViewReady later than
   ewk_view_focus_set.
   It cause FocusInOutCallbacks set later then OnFocusIn/OnFocusOut,
   cause FocusInOutCallbacks not handled.

   So call RenderViewReady directly on PostRenderViewReady.

3. open website by window.open:
   ewk_view_focus_set set before RenderViewReady,
   It cause FocusInOutCallbacks set later then OnFocusIn/OnFocusOut,
   cause FocusInOutCallbacks not handled.

   So pending setfocus when RenderView is not Live.

   Refer:
   https://review.tizen.org/gerrit/#/c/284765

Change-Id: I591ce004f418dca05b56a22c42c7d196a3337024
Signed-off-by: liuxd <xd123.liu@samsung.com>
14 months ago[M108 Migration][VD] Ensure plugin props are setting correctly. 91/289291/5
fr.fang [Wed, 1 Mar 2023 12:59:34 +0000 (20:59 +0800)]
[M108 Migration][VD] Ensure plugin props are setting correctly.

Internally, properties of plugin belong to 2 different targets,
one is HTMLPluginElement, one is the corresponding scriptable object.
Need to set properties to the correct target.

Reference:
https://review.tizen.org/gerrit/#/c/282087

Change-Id: Ic7509825520413e633114ce93c7a32dfcbed4b1c
Signed-off-by: fr.fang <fr.fang@samsung.com>
14 months ago[M108 Migration] Fix Crash in webview. 22/289222/4
jiangyuwei [Fri, 3 Mar 2023 01:56:18 +0000 (09:56 +0800)]
[M108 Migration] Fix Crash in webview.

Add protection in EWebView::SetOrientation.

Reference:
 - https://review.tizen.org/gerrit/#/c/282815/

Change-Id: If424bac3ecba47971b95c7d4df771c626f3b0fb0
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration][WRTjs] Use BUILDFLAG(IS_XXX) for OS checking 82/289482/2
zhaosy [Thu, 9 Mar 2023 00:04:59 +0000 (08:04 +0800)]
[M108 Migration][WRTjs] Use BUILDFLAG(IS_XXX) for OS checking

This patch replaces all occurances of defined(OS_XXX) with
BUILDFLAG(IS_XXX) as per upstream changes mentioned in [1].

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=1234043

Below efl/tizen build flags are replaced:

USE_EFL -> IS_EFL
OS_TIZEN -> IS_TIZEN
OS_TIZEN_TV_PRODUCT -> IS_TIZEN_TV

Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/289238/

Change-Id: I387487f030919116dee9210261f23b215b6c4b60
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[Onscreen] Request to redraw window surface when showing. 75/289475/4
YongGeol Jung [Wed, 8 Mar 2023 08:49:22 +0000 (00:49 -0800)]
[Onscreen] Request to redraw window surface when showing.

A black scene is observed when app is displayed from a resume activity.
Modified to redraw window surface when showing.

Change-Id: Ifacbdcc58b0fb8ba107011eafd7f94f669845fa8
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
14 months ago[M108 Migration][WRTjs] Lazy initialization of ContentMainRunner for wrt-loader 90/289490/2
DongHyun Song [Wed, 8 Mar 2023 23:53:57 +0000 (08:53 +0900)]
[M108 Migration][WRTjs] Lazy initialization of ContentMainRunner for wrt-loader

In case cold booting case, WRT initialization takes much time on
the low-end product. (5s ~ 7s)
Even though wrt-loader is prepared on cold booting sequence as soon
as possible, the candidate launch can be failed because wrt-loader
is not yet ready.

To make short the initialization time, this patch defers the jobs
of WRTContentMain's initialization with ecore_idler, and return
loader's create callback early to prepare wrt-loader.

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

Change-Id: Icb1be128397415903d3de8b3346a862a98e7f1e2
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration][VD] Fix office 365 Word/Excel show empty blank pages issue 64/289064/3
feifei08.liu [Tue, 28 Feb 2023 05:37:00 +0000 (13:37 +0800)]
[M108 Migration][VD] Fix office 365 Word/Excel show empty blank pages issue

1. Fix redirection issue in WebApp.

Now m85, exclude "file://" URLs frome default
SiteInstance.
So if webapp redirect url in file:///index.html.
It will create a new SiteInstance and RenderFrameHost
for the redirected url.

As WRT only get and store main frame once time (the first time
UIprocess communicated with RenderProcess).
So if frame changed, wrt cannot send message to the right frame.

So avoid this code that will not create new frame while redirection
in "file://" URLs.

2. [VD] Disable "OriginIsolationHeader" feature to fix office 365 Word/Excel
show empty blank pages issue.

"OriginIsolationHeader" enabled in M94 which is in development,
it will cause new webview created and
some information do not included in requests,
this feature disabled in M85, so we follow M85 logic disable this feature.

Reference:
- https://review.tizen.org/gerrit/286949/

Change-Id: Ic26c5a4ac80bfa246a3f1d205095093b503ae372
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
14 months ago[M108 Aura Migration][NaCl][PPAPI] Fixing error codes in PPB_FileRef 45/289145/2
pengxia [Thu, 2 Mar 2023 02:23:29 +0000 (10:23 +0800)]
[M108 Aura Migration][NaCl][PPAPI] Fixing error codes in PPB_FileRef

Trying to delete a non-empty directory or rename any directory
to an existing, non-empty one results in generic error (PP_ERROR_FAILED
that is translated to EPERM by nacl_io). Expected result of such
operation would be something that translates to EEXIST or ENOTEMPTY.

This patch makes PPB_FileRef methods mentioned above
result in PP_ERROR_FILEEXISTS, so that it is translated
to EEXIST by nacl_io.

Ported patch from M94 Aura:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/280551/

Change-Id: Ifebf80cc78370a3a170a86dcbd4eb2d10bb41c5a
Signed-off-by: pengxia <pengxia.shen@samsung.com>
14 months ago[M108 Migration][VD] Implement Multi port RWI 13/289413/9
jiangyuwei [Tue, 7 Mar 2023 09:02:13 +0000 (17:02 +0800)]
[M108 Migration][VD] Implement Multi port RWI

RWI server can use easily to debug application.
Multi port RWI can let 3 applications debug at the same time.
Normal RWI server should start when WebContents init.
For RELEASE_MODE shuold use ewk_view_inspector_server_start
to start RWI server.

Reference:
  - https://review.tizen.org/gerrit/279379/
  - https://review.tizen.org/gerrit/281862/

Change-Id: I9dd2be6d0d59c390bb271d004e67b9add29df546
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration] Segregate ContextMenuControllerEfl into a base class 36/289136/6
Ayush Kumar [Mon, 27 Feb 2023 08:34:15 +0000 (14:04 +0530)]
[M108 Migration] Segregate ContextMenuControllerEfl into a base class

1. Split ContextMenuControllerEfl into two parts, one of which
will be recycled by WRTJS as well
2. Removed redundant and extra headers and cleaned up the code
a bit
3. Modified/Removed functions from ContextMenuController which
are no longer needed in m108

Reference:
1. https://review.tizen.org/gerrit/282571
2. https://review.tizen.org/gerrit/284343

Change-Id: Ifc9730734bea5a0bf530b553bd00a90e0f39f136
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
14 months agofixup! [M108 Migration] Support builds for aarch64 and emulator 28/289428/2
Venugopal S M [Tue, 7 Mar 2023 13:02:57 +0000 (18:32 +0530)]
fixup! [M108 Migration] Support builds for aarch64 and emulator

Remove clang check in "BufferObserverImpl".

Change-Id: Iebdbf7e5743fcbbf5badf5bcfbc2ac1b1206c19b
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months agoClear browser frame only if a valid texture is available 66/289366/4
Chandan Padhi [Mon, 6 Mar 2023 15:46:53 +0000 (21:16 +0530)]
Clear browser frame only if a valid texture is available

This commit adds a check in EvasObjectImagePixelsGetCallback to ensure
that browser frame is cleared only if a valid texture is available
from NotifySwap. This helps in fixing the blink issue while navigating
through hyperlinks on a page.

Change-Id: I95854ec6c6e39f515b44ef673d17ed87c58059f4
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
14 months ago[WRTjs] Seperate runtime dependency of XWalkExtension 31/287731/29
DongHyun Song [Fri, 3 Feb 2023 07:18:04 +0000 (16:18 +0900)]
[WRTjs] Seperate runtime dependency of XWalkExtension

This patch refactors to remove WRT dependency from XWalkExtension
classes to make a common module for other runtimes. Specially,
this is for Hbb runtime by ewk interface later.

Delegation classes, named as WRTXwalkExtension* will have roles of
runtime dependent behaviors.

Change-Id: I5a39b2e9cb26708953541b69de8c0830330b3f8e
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Apply decorator window feature 04/289404/4
zhaosy [Tue, 7 Mar 2023 06:07:23 +0000 (14:07 +0800)]
[M108 Migration][WRTjs][VD] Apply decorator window feature

1.change border background color
2.apply border auto hide/show
3.modify decorator window border style(Flip model window rounded corners required)

Reference patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/287771/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/287489/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/287740/

Change-Id: Ic4dbc3d9b216c06f409ea040e73a5423e1052f2a
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][VD] Support set time and time zone offset 99/289099/9
fang fengrong [Thu, 2 Mar 2023 08:34:51 +0000 (16:34 +0800)]
[M108 Migration][VD] Support set time and time zone offset

It is required for HbbTV to run Ligada tests. However Ligada tests
rely on stream time that can be old, like 2011. Ligada tests compare
time offset via Javascript codes(new Date()). So the time offset has
to be applied on render process side. Ligada tests also use the time
offset for certificates expiration validating.
ICS app also calls the APIs.

References:
https://review.tizen.org/gerrit/#/c/282681

Change-Id: I1f03d6fde935a28c7eaa114fb22bbcf29c5bddfe
Signed-off-by: fang fengrong <fr.fang@samsung.com>
14 months ago[M108][WRTjs] Use BUILDFLAG(IS_XXX) for OS checking 38/289238/5
zhaosy [Fri, 3 Mar 2023 00:17:51 +0000 (08:17 +0800)]
[M108][WRTjs] Use BUILDFLAG(IS_XXX) for OS checking

This patch replaces all occurances of defined(OS_XXX) with
BUILDFLAG(IS_XXX) as per upstream changes mentioned in [1].

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=1234043

Below efl/tizen build flags are replaced:

USE_EFL -> IS_EFL
OS_TIZEN -> IS_TIZEN
OS_TIZEN_TV_PRODUCT -> IS_TIZEN_TV

Reference:
https://review.tizen.org/gerrit/#/c/285956/

Change-Id: Iaea1ba52738be626e218fbc962bff3f2a555938e
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration] Add a command line flag to disable unsandboxed Zygote 46/289346/3
v-saha [Mon, 6 Mar 2023 10:24:43 +0000 (15:54 +0530)]
[M108 Migration] Add a command line flag to disable unsandboxed Zygote

Avoid creation of unused unsandboxed zygote process which reduces overall
PSS memory.

Reference:
https://review.tizen.org/gerrit/c/279945

Change-Id: I40c4ad6c71f70f1f7c28b3188b205e6c55bff235
Signed-off-by: v-saha <v.saha@samsung.com>
14 months agofixup! [M108 Migration] Support unlimitedstorage privilege for Indexed DB 23/289423/2
Gajendra N [Tue, 7 Mar 2023 10:27:10 +0000 (15:57 +0530)]
fixup! [M108 Migration] Support unlimitedstorage privilege for Indexed DB

Fixes crash error occured during youtube page load.

In original patch, std::move was called on already moved pointer which
went unnoticed during migration.

Change-Id: Id853af04730666f609d74e102bdda44002cd8361
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
14 months ago[M108 Migration][VD] Add API to for malicious page warning showing. 52/289052/3
feifei08.liu [Tue, 28 Feb 2023 03:37:54 +0000 (11:37 +0800)]
[M108 Migration][VD] Add API to for malicious page warning showing.

Add ewk_view_html_string_override_current_entry_load to show
warning page for web browser security.
Fix issue occur in the following scenario:
1. Access www.google.com in org.tizen.browser.
2. Access malicious url, then wbs alert page is shown.
3. Press "goback" button, browser show malicious url page,
   not the previous page of www.google.com.
Treat the alert page and malicious page as the same navigation entry.
Add a new ewk API to show error page when malicious url detected.

Reference:
- https://review.tizen.org/gerrit/283452/

Change-Id: I0f9a4467a7a3d5a0af54189d9b79ced320a45188
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
14 months ago[M108 Migration] [SlimDownCode] Delete Redundant Modules 08/289408/2 submit/tizen/20230307.160024
uzair [Tue, 7 Mar 2023 07:03:30 +0000 (12:33 +0530)]
[M108 Migration] [SlimDownCode] Delete Redundant Modules

This patch removes below directories

 ├── android_webview/
 ├── chromecast/
 ├── chrome_elf/
 ├── chromeos/
 ├── docs/
 ├── google_update/
 ├── infra/
 ├── ios/
 ├── styleguide/
 └── third_party
    ├── android_build_tools
    ├── android_crazy_linker
    ├── android_deps_autorolled
    ├── android_deps
    ├── android_data_chart
    ├── android_support_test_runner
    ├── android_swipe_refresh
    ├── android_protobuf
    ├── android_platform
    ├── android_sdk
    ├── android_media
    ├── android_system_sdk
    ├── android_tools
    ├── google_appengine_cloudstorage
    ├── google-closure-library
    ├── google_android_play_core
    ├── android_opengl

Change-Id: I469c2fb9be69423cdf268d23f5fe1d2ee70dc1f4
Signed-off-by: uzair <uzair.jaleel@samsung.com>
14 months agofixup! [M108 Migration][WRTjs] Introduce VconfHandle 65/289365/3
Chandan Padhi [Mon, 6 Mar 2023 15:31:51 +0000 (21:01 +0530)]
fixup! [M108 Migration][WRTjs] Introduce VconfHandle

This commit fixes a desktop build error introduced by the parent
patch.

Change-Id: I4657f4510458199bacc223e66cef02cb4b0e2d31
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
14 months ago[M108 Migration] Segregate InputPicker into ewk independent base classes 45/289345/4
Ayush Kumar [Mon, 6 Mar 2023 04:51:04 +0000 (10:21 +0530)]
[M108 Migration] Segregate InputPicker into ewk independent base classes

1. This patch divides InputPicker component into a common
class which can be used by WRTJS as well.
2. Refactored the components to remove redundant or unused dependencies.

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

Change-Id: I9c9acc50e371a6937032c0231685210206e63f60
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Apply setpriority() and early mount 24/289324/6
DongHyun Song [Mon, 6 Mar 2023 08:42:39 +0000 (17:42 +0900)]
[M108 Migration][WRTjs][VD] Apply setpriority() and early mount

1)
To reduce the time of wrt-loader ready, this will apply setpriority()
with high priority niceness.
2)
If yet there is no chromium-efl.img mount point, wrt-loader will mount
by itself.
3)
Update as latest manifest

Reference:
https://review.tizen.org/gerrit/279510/
https://review.tizen.org/gerrit/286399/
https://review.tizen.org/gerrit/288395/
https://review.tizen.org/gerrit/289324/

Change-Id: Ie4cf98f6381f745c06457abea94ad123e14b68da
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration][UWE][VD] Extends the waiting time for ps_agent 78/289378/4
Sugyum Kim [Wed, 7 Sep 2022 10:32:51 +0000 (19:32 +0900)]
[M108 Migration][UWE][VD] Extends the waiting time for ps_agent

* Issue: Mount failure occurs when ps_agent is not ready for 20 seconds
on entry model.

Increase the timeout to 30s and add retry logic 20 times.
when ps_agent is ready, it returns immediately.

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

Change-Id: Iea880071ab17338139b1a7cc155450a41855902e
Signed-off-by: Sugyum Kim <su.g.kim@samsung.com>
(cherry picked from commit 26644c120994f637523cbfe048afc74b3781e6c0)

14 months agofixup! [MM] Handle buffering and playback 23/289323/3
Venugopal S M [Mon, 6 Mar 2023 09:19:53 +0000 (14:49 +0530)]
fixup! [MM] Handle buffering and playback

- Avoid buffer request after receiving EOS packet from demuxer
- Print stream type in log.

Reference:
https://review.tizen.org/gerrit/280824
https://review.tizen.org/gerrit/276725
https://review.tizen.org/gerrit/276751

Change-Id: I9cbf51908585e29df9fe0f7ab2ca55039b2d8eb9
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months ago[M108 Migration][MM] Check preparing status before calling media control functions. 00/289100/5
Koyyani Maheswari [Wed, 1 Mar 2023 09:36:34 +0000 (15:06 +0530)]
[M108 Migration][MM] Check preparing status before calling media control functions.

1. Change to initialize sequence fit to |EsppRendererImpl|.
2. Check preparing status to call media control functions in proper status.

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

Change-Id: I2722203895b34a023a0ab1c8e2fb622357c95aae
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
14 months ago[M108 Migration][VD][UWE] Duplicate mount when TPK is updated 77/289377/3
Sugyum Kim [Wed, 17 Aug 2022 04:43:38 +0000 (13:43 +0900)]
[M108 Migration][VD][UWE] Duplicate mount when TPK is updated

When the TPK is updated,
the updated TPK is re-mounted to the existing mount point.

The existing mounted TPK does not disappear and becomes hidden.
Apps that have previously been mounted with so file operate normally
because the file handle is already open.

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

Change-Id: Icd35f3067a285baea5e366676678f9a9fad2a197
Signed-off-by: Sugyum Kim <su.g.kim@samsung.com>
(cherry picked from commit e20ea92a8eeb3373a6ca7975110fc3ee91c6b6bc)

14 months ago[M108 Migration][UWE][VD] Use legacy library in case of load fail 83/289383/2
Sugyum Kim [Wed, 31 Aug 2022 09:50:13 +0000 (18:50 +0900)]
[M108 Migration][UWE][VD] Use legacy library in case of load fail

[Problem]
When we fail loading the upgrade-library, we have to use the legacy-
library. But the current implementation does not give up using the
upgrade-library.

[Solution]
ewk_set_version_policy(1) must be ignored when we fail to load.

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

Change-Id: I3a142825429cf3aa1f64d2ba5bc4c27a89a2f59d
Signed-off-by: Sugyum Kim <su.g.kim@samsung.com>
(cherry picked from commit f42a776bce501c3b2f9407415b9661ef3da2699d)

14 months ago[M108 Migration][WRTjs][TV] Extend wait chromium mount timer to 20s 85/289385/2
liwei [Fri, 18 Nov 2022 07:57:20 +0000 (15:57 +0800)]
[M108 Migration][WRTjs][TV] Extend wait chromium mount timer to 20s

For app perforamnce, wrt-loader will be launched earlier than
before.wrt-loader will be started at 10s after launchapd(3~4s)
is launched, and chromium will be mounted about 10~15s, for
ensure wrt-loader start successfully, extend wait chromium
mount timer from 10s to 20s.

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

Change-Id: I7eb261e9703e5d0b4bc3c4fc912ce61438068a4f
Signed-off-by: liwei <wei90727.li@samsung.com>
(cherry picked from commit 705c97ddf298f1447870f38deb5251bed8bc252e)

14 months ago[M108 Migration][VD] Call PS_Mount_Fast api instead of PS_Mount api 79/289379/1
Sugyum Kim [Thu, 13 Oct 2022 05:45:26 +0000 (14:45 +0900)]
[M108 Migration][VD] Call PS_Mount_Fast api instead of PS_Mount api

PS_Mount_Fast api newly introduced in Tizen 7.0 to improve
mount performance by security team.

Existing PS_Mount API used fork-exec method,
but PS_Mount_Fast API calls mount system function.

There is a performance improvement of about 900ms,
and with this new API, it takes about 500ms at the time of cold boot.

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

Change-Id: I87680117715cc972019f9ead4cc1e7055f2a6723
Signed-off-by: Sugyum Kim <su.g.kim@samsung.com>
(cherry picked from commit 0298504f5fa3bffba9d327993d06a276c875f6cf)

14 months ago[M108 Migration][VD][UWE] Bringup Upgradable WebEngine for VD 08/289308/5
jiangyuwei [Mon, 6 Mar 2023 06:49:53 +0000 (14:49 +0800)]
[M108 Migration][VD][UWE] Bringup Upgradable WebEngine for VD

Reference:
   https://review.tizen.org/gerrit/#/c/279392/

Change-Id: I9576a04715f4c1d559513d5ea2c976f07d5f81f9
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
14 months ago[M108 Migration]Notify internal API compatibility when installing wrtjs rpm 47/289347/2 submit/tizen/20230306.160017
uzair [Mon, 6 Mar 2023 10:32:10 +0000 (16:02 +0530)]
[M108 Migration]Notify internal API compatibility when installing wrtjs rpm

Previously, the second and third versions haven't been used.
So, this removes the unused versions except for the wrtjs version
and newly adds {TPK_VERSION} and {INTERNAL_API_REVISION} like below:

{TPK_VERSION}.{INTERNAL_API_REVISION}.{WRTJS_VERSION}

The {INTERNAL_API_REVISION} needs to check API compatibility
between chromium-efl and wrtjs.

In addition, this notifies internal API version compatibility result
using the {INTERNAL_API_REVISION} when installing rpm file.
The internal API compatibility can be guaranteed only if the
{INTERNAL_API_REVISION} is same with chromium-efl.

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

Change-Id: I8fba74c012701f59a46fde7733fcb926f69a86b9
Signed-off-by: uzair <uzair.jaleel@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Apply auto submit OSD to P4 FET from TRAMS 92/289292/3
zhaosy [Mon, 6 Mar 2023 02:21:11 +0000 (10:21 +0800)]
[M108 Migration][WRTjs][VD] Apply auto submit OSD to P4 FET from TRAMS

OSD maybe is changed in TRAMS, but we don't know it.
So apply auto submit OSD to P4 FET branch(Once it's changed in P4, email will be recieved).

ps.If OSD is changed in P4 FET, need to merge it to gerrit manually.

Reference Patch:
https://review.tizen.org/gerrit/286523/

Change-Id: I0ad2df3178d80175c34754ca71916980bca66486
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][VD] Do not overwrite process title with symbolic link 52/289252/4
zhaosy [Fri, 3 Mar 2023 07:40:04 +0000 (15:40 +0800)]
[M108 Migration][VD] Do not overwrite process title with symbolic link

In Chromium-efl, we exec from /usr/lib/chromium-efl/efl_webprocess.
Therefore, we don't need to overwrite process title with symbolic link
of /proc/self/exe.

Before this patch, /proc/[pid]/comm of browser app is 'launchpad-loader'.
After this patch, it will be 'browser'.

Reference patch:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/269598/

Change-Id: Ic24db12dd7b447042accbc4434aa6cb18585b80c
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][WRTjs][VD] Refactor key event handler 00/289300/4
zhaosy [Mon, 6 Mar 2023 04:56:36 +0000 (12:56 +0800)]
[M108 Migration][WRTjs][VD] Refactor key event handler

RenderWidgetHostViewEfl is removed in Aura, so in EflEventHandler
check registered keys and device names.

Reference Patch:
https://review.tizen.org/gerrit/281297/

Change-Id: I2d4eb524baa6c89998490172b0106dd24afa7f58
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months agofixup! [MM] Use ESPP for media rendering 04/289104/5
Venugopal S M [Thu, 2 Mar 2023 08:14:20 +0000 (13:44 +0530)]
fixup! [MM] Use ESPP for media rendering

Fix build errors due to difference in data type

Change-Id: I1b1eb5837e499a386f5bd08a795d21c839518948
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
14 months ago[M108 Migration][WRTjs]add protection for DBusConnection 93/289293/4
zhaosy [Mon, 6 Mar 2023 02:47:33 +0000 (10:47 +0800)]
[M108 Migration][WRTjs]add protection for DBusConnection

Add protection for DBusConnection for avoid some abnormal
crash happen.

Reference Patch:
https://review.tizen.org/gerrit/288901/

Change-Id: I42fd0770422bc4f826aa746e75b871d68efbaf3a
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
14 months ago[M108 Migration][WRTjs] Introduce VconfHandle 33/289233/3
DongHyun Song [Fri, 3 Mar 2023 04:27:03 +0000 (13:27 +0900)]
[M108 Migration][WRTjs] Introduce VconfHandle

Adds source code of VconfHandle and removes bring-up tag.

Change-Id: I30a8ae83ac9e423d1a3778dca6b0aac497fd6880
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[M108 Migration] [!fixup] Set EflWindow bounds while received parent view resize... 98/289198/2
qiang.ji [Thu, 2 Mar 2023 09:59:47 +0000 (17:59 +0800)]
[M108 Migration] [!fixup] Set EflWindow bounds while received parent view resize event

1. We have two ways to set Efl window bounds/ Gpu thread output surface
size. One is InitCompositor, the other is OnParentViewResize in
RenderWidgetHostViewAuraHelperEfl.
2. In current state, EwebView resize event is coming before
RenderWidgetHostViewAuraHelperEfl creation, so we cannot call
OnParentViewResize to set correct bounds. This will cause main thread
's output surface size dismatch with gpu thread.

Solution: Manually to call SetBoundsInPixels to set bounds even
RenderWidgetHostViewAuraHelperEfl is not created yet

refs:
https://review.tizen.org/gerrit/#/c/282220/

Change-Id: I8e75694c9864a65add80d58791c8d92eb4c73233
Signed-off-by: qiang.ji <qiang.ji@samsung.com>
14 months ago[M108 Migration][MM] Fix crash when the browser is terminated when playing video. 34/289234/5
Suhaspoornachandra [Fri, 3 Mar 2023 03:52:37 +0000 (09:22 +0530)]
[M108 Migration][MM] Fix crash when the browser is terminated when playing video.

1. MediaPlayerESPlusPlayer should be released before destroyed.
2. WebContents is sometimes destroyed before TizenRendererImpl is destroyed.
   It causes TizenRendererImpl accesses dangling pointer.
3. buffering_callback_ in BufferObserverImpl should be null-checked.

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

Change-Id: I772c80ce9a0f96c5cdc6db6c31aff3465a54eb88
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
14 months ago[M108 Migration] Initialize DeviceDisplayInfoEfl in renderer. 47/289247/3
v-saha [Fri, 3 Mar 2023 07:01:00 +0000 (12:31 +0530)]
[M108 Migration] Initialize DeviceDisplayInfoEfl in renderer.

Display info should be updated only when webview is created by
browser.

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

Change-Id: I421e59068125018e5c2d51b60fc8af420a657381
Signed-off-by: v-saha <v.saha@samsung.com>
14 months ago[M108 Migration][MM][CAPI] Support Video Hole in the onscreen rendering mode. 43/289243/3
Sun-woo Nam [Thu, 2 Mar 2023 04:51:10 +0000 (20:51 -0800)]
[M108 Migration][MM][CAPI] Support Video Hole in the onscreen rendering mode.

Ecore_Wl2_Window is used as the main window handle in the onscreen rendering
mode.
Previously, |player_set_display| was used to use video hole in CAPI MMPlayer.
However, |player_set_display| could only receive evas objects, including
elm window, as a parameter.
Threrefore, this patch uses |player_set_display_webapp| api to hand over
the wayland surface id for the TV profile. In case of the public profile,
use |player_set_ecore_wl_display| instead of |player_set_display_webapp|.

Reference: https://review.tizen.org/gerrit/#/c/289148/

Change-Id: I0eb011c20a6584e581b151fec35468cd58073cfa
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
14 months ago[M108 Migration][Autofill] Introduce autofill fw interface 35/289135/5
Ayush Kumar [Fri, 24 Feb 2023 05:04:43 +0000 (10:34 +0530)]
[M108 Migration][Autofill] Introduce autofill fw interface

This change
1. Introduces interface for autofill fw in tizen.
2. Supports mockup for callbacks and APIs for SPASS feature for TV.
3. Refactors, enhances and fixes issue related to tizen autofill.

References : https://review.tizen.org/gerrit/269462

Change-Id: Ia91806470622bc4a1c2c5a2d917bf1babdb1e675
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
14 months ago[WRTjs][VD] Remove prefetching xwalk extension feature 55/289255/5 submit/tizen/20230305.160307
DongHyun Song [Fri, 3 Mar 2023 07:36:31 +0000 (16:36 +0900)]
[WRTjs][VD] Remove prefetching xwalk extension feature

Prefetching is almost ineffective to load webapp, compared to its
complicated logic and heavy performing of DB file.

Change-Id: I1d0cd3130054e68d6b67e7035be2112c7e3365cb
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
14 months ago[Offscreen] Fix for black screen on static pages 72/288672/4
uzair [Tue, 21 Feb 2023 09:11:24 +0000 (14:41 +0530)]
[Offscreen] Fix for black screen on static pages

Below change makes sure ensure all drawing to the context
has been flushed and submitted to graphics driver before
shown on screen.

Change-Id: Ia4b751b211bd66c9be04328b947e355b0c274c6b
Signed-off-by: uzair <uzair.jaleel@samsung.com>
14 months agofixup! Shorten NotifySwap path for offscreen rendering 06/289206/7
YongGeol Jung [Thu, 2 Mar 2023 11:40:14 +0000 (03:40 -0800)]
fixup! Shorten NotifySwap path for offscreen rendering

Create |CompositorObserverEfl| to get |NotifySwap| message for WRT offscreen
mode.

Change-Id: Ie2b75929e2d5c386f13838352bdaf859aae04ce7

14 months agoMap blink::WebNavigationType to Ewk_Policy_Navigation_Type 23/289223/6
yh106.jung [Fri, 3 Mar 2023 01:38:18 +0000 (17:38 -0800)]
Map blink::WebNavigationType to Ewk_Policy_Navigation_Type

Ewk_Policy_Navigation_Type is no longer exactly matched with
blink::WebNavigationType.
So, this patch internally maps blink::WebNavigationType to
Ewk_Policy_Navigation_Type.

Change-Id: I4fee4701455da6bf71030f7fb0d569198b9a4f53
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
14 months agoRevert "fixup! [M108 Migration] Enable proper functionality for ewk_policy_decision_... 28/289228/3
Ayush Kumar [Fri, 3 Mar 2023 02:44:49 +0000 (08:14 +0530)]
Revert "fixup! [M108 Migration] Enable proper functionality for ewk_policy_decision_* APIs."

This reverts commit 1fddb3c6b1010c0d18af692ccf12cdf772c08cb3.

Change-Id: Ia1d105c83c5677971889817933aa59221211b9bf
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>