platform/framework/web/chromium-efl.git
11 months agoRevert "[M120 Migration][VD] Add waiting for RW image mount" 72/311372/2
jiang yuwei [Mon, 20 May 2024 07:56:51 +0000 (07:56 +0000)]
Revert "[M120 Migration][VD] Add waiting for RW image mount"

This reverts commit 36e4fa72efc2fa71ab28e3c3d00c5790ef8d9c50.

Change-Id: I197ec029fb2420e8d2fe1182e1e9129ef9c77d02

11 months ago[M120 Migration][MM] Suspend/Resume according to webview visibility 54/310854/4
zhishun.zhou [Thu, 9 May 2024 04:10:16 +0000 (12:10 +0800)]
[M120 Migration][MM] Suspend/Resume according to webview visibility

The suspend/resume message delivery to redner process too late.
Let's call player suspend/resume according webview visibility.

Patch from:
https://review.tizen.org/gerrit/#/c/301466/

Change-Id: Ia7e6f51c301e0502e2f3b7e723cae387cb1c4ee2
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
11 months ago[M120 Migration] Enable symbolize on local build by default 55/311355/2 submit/tizen/20240520.160019
chenhuasheng [Mon, 20 May 2024 01:12:07 +0000 (09:12 +0800)]
[M120 Migration] Enable symbolize on local build by default

This enables symbolize on local build for debugging to use backtracing
log.

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

Change-Id: I647a858898fc70a123a5e6a7acd3bd3a2c919baa
Signed-off-by: chenhuasheng <hsheng.chen@samsung.com>
11 months ago[M120 Migration][MM][HBBTV] Support Hbbtv Auto Play 98/310698/3
xiaofang [Mon, 8 May 2023 01:13:32 +0000 (09:13 +0800)]
[M120 Migration][MM][HBBTV] Support Hbbtv Auto Play

when hbbtv load resource complete,state is FutureData.
let paused = false to make "play" is called.

Migration from:
https://review.tizen.org/gerrit/292422/

Change-Id: I739a898420f003fd94d0f6610e69cca47a57afd6
Signed-off-by: yanqing.lu <yanqing.lu@samsung.com>
11 months ago[Chrome] Fix for chrome://apps load failure 42/311242/3
Chandan Padhi [Thu, 16 May 2024 13:35:11 +0000 (19:05 +0530)]
[Chrome] Fix for chrome://apps load failure

chrome://apps failed to load as the corresponding pak file
was not getting generated. This commit enables the same.

Change-Id: I1aaafd3d436cf055c2f92087acb61958170aebfa
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
11 months ago[M120 Migration][MM] Clear glibc's malloc cache periodically 37/310937/3
wuxiaoliang [Fri, 10 May 2024 02:36:51 +0000 (10:36 +0800)]
[M120 Migration][MM] Clear glibc's malloc cache periodically

Migrated from:
https://review.tizen.org/gerrit/#/c/297241/
https://review.tizen.org/gerrit/#/c/298636/

Change-Id: Iad29a6b3b090170aee2ceafd95633ad93923f3b5
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
11 months agoFixup! [M120 Migration] Support HDR10+ property 25/311125/2
wuxiaoliang [Tue, 14 May 2024 09:17:35 +0000 (17:17 +0800)]
Fixup! [M120 Migration] Support HDR10+ property

remove repeated log.

Change-Id: Ia961a1c1d95f84715b1e3c4b9c282c76c2966b96
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
11 months agofixup! [Tizen] Fix for Compiler and linker errors 25/311325/5 submit/tizen/20240519.160016
Adam Bujalski [Thu, 16 May 2024 09:30:44 +0000 (11:30 +0200)]
fixup! [Tizen] Fix for Compiler and linker errors

Setting `use_atk=false` in `gn_chromiumefl.sh` has no effect, due to a
way `use_atk` variable is defined in `//build/config/ui.gni` it only
causes that triggering following warning message:

```
  WARNING at the command-line "--args":1:869: Build argument has no effect.
    use_libjpeg_turbo=true rtc_enable_sctp=true use_alsa=false ....

  Did you mean "use_gtk"?

  The variable "use_atk" was set as a build argument
  but never appeared in a declare_args() block in any buildfile.
```

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1544
Change-Id: I4d9757a61ccf94820e3364d94c8f676721455bb2
Signed-off-by: Adam Bujalski <a.bujalski@samsung.com>
11 months ago[M120 Migration][MM][WebRTC][GS] Recreate renderer for upstream architecture 29/311329/5
Jakub Gajownik [Wed, 15 May 2024 10:31:13 +0000 (12:31 +0200)]
[M120 Migration][MM][WebRTC][GS] Recreate renderer for upstream architecture

Ported commit:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/303066/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: Icf146f1cfea03f37a6e650883ddbb706afde3b37
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration][MM][WebRTC][GS] Disable video hole for upstream architecture 27/311327/6
Jakub Gajownik [Wed, 15 May 2024 10:24:54 +0000 (12:24 +0200)]
[M120 Migration][MM][WebRTC][GS] Disable video hole for upstream architecture

Ported commits:
* [MM][WebRTC][GS] Disable video hole for upstream architecture
  https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/300798/
* fixup! [MM][WebRTC][GS] Disable video hole for upstream architecture
  https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/301044/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I9f1fac5dd3353860dcf1dd0fceeb4ffb1cb25af3
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration] Adding default values for features 30/311330/2
Adam Bujalski [Tue, 18 Apr 2023 08:06:38 +0000 (10:06 +0200)]
[M120 Migration] Adding default values for features

There were variables set in `gn_chromiumefl.sh` but not declared in GN
files, which caused following warning:

  WARNING at the command-line "--args":1:510: Build argument has no effect.

  The variable "SOME_VAR" was set as a build argument
  but never appeared in a declare_args() block in any buildfile.

This patch provides default values for them or avoids providing
value them for TV build in gn_chromiumefl.sh script.

Ref: https://review.tizen.org/gerrit/291865
Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1544
Signed-off-by: Adam Bujalski <a.bujalski@samsung.com>
Change-Id: I4bcaa92138f692b88c84d17400e94a64d4b1789c

11 months ago[M120 Migration] Optimize chromium rebuilds 28/311328/2
Michal Jurkiewicz [Wed, 15 May 2024 12:02:01 +0000 (14:02 +0200)]
[M120 Migration] Optimize chromium rebuilds

Port the following patch from tizen 7.5:

  * [M108 Migration] Optimize chromium rebuilds
    https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/290585

Bug: https://cam.sprc.samsung.pl/browse/VDWASM-1212
Signed-off-by: Michal Jurkiewicz <m.jurkiewicz@samsung.com>
Change-Id: I50fef0b948d3f265d36e41b7019ae81687f689fc

11 months ago[M120 Migration][MM][WebRTC][GS] Adjust software fallback mechanism 21/311321/4
Jakub Gajownik [Wed, 15 May 2024 10:11:57 +0000 (12:11 +0200)]
[M120 Migration][MM][WebRTC][GS] Adjust software fallback mechanism

Ported commit:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/299146/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I2563e5c323b098e6dda23f679bb43edbf16cf5da
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration][MM] Use video surfaces when upstream architecture enabled 90/311290/4
Jakub Gajownik [Wed, 15 May 2024 10:03:02 +0000 (12:03 +0200)]
[M120 Migration][MM] Use video surfaces when upstream architecture enabled

Ported commit:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294858/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I876372dc1c20442f9836df00cd2ed5ed18b38280
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration] Introduce dedicated functions to check modes 89/311289/3
Jakub Gajownik [Thu, 16 May 2024 14:43:30 +0000 (16:43 +0200)]
[M120 Migration] Introduce dedicated functions to check modes

Ported commits:
* Introduce dedicated funtion to check upstream architecture
  https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/308361/
* [MM] Introduce dedicated function to check game mode
  https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/309473/

There is no using of those functions yet ported, but it
should be easier to do later. Decreases number of patches
needed to be done manually.

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I5b1de2e1cb0548cb15fa9611780939d4ea2ed45a
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration] Fixing compiler warnings 63/311263/9
Adam Bujalski [Tue, 29 Aug 2023 11:44:09 +0000 (13:44 +0200)]
[M120 Migration] Fixing compiler warnings

Porting patches related to fixing compiler warnings for Chromium code
or suppressing them for 3rd party libraries.

Ported patches:
- https://review.tizen.org/gerrit/290586
- https://review.tizen.org/gerrit/290747
- https://review.tizen.org/gerrit/290748
- https://review.tizen.org/gerrit/291197
- https://review.tizen.org/gerrit/298149

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1544
Signed-off-by: Adam Bujalski <a.bujalski@samsung.com>
Change-Id: I00ef221014189c1275613fcec9984dfb52efcdd8

11 months ago[M120 Migration][VD] Add waiting for RW image mount 84/311184/2 submit/tizen/20240517.160021
jiangyuwei [Thu, 16 May 2024 01:56:08 +0000 (09:56 +0800)]
[M120 Migration][VD] Add waiting for RW image mount

When UWE is used but RW image was not mounted yet,
Engine could wrongly dlopen RO package.

This patch adds additional waiting for RW mount
to prevent from opening RO package by mistake.

Max waiting time for RW mount: 10s

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

Change-Id: Ie83cde9ac0fe41391ecc6f01887da52d3d431c89
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
11 months ago[M120 Migration][VD] Implement the specific scrollbar for the TV web browser. 49/310949/5
wangjing [Fri, 10 May 2024 05:44:39 +0000 (13:44 +0800)]
[M120 Migration][VD] Implement the specific scrollbar for the TV web browser.

The web browser team wants specific scrollbar to the TV.
So we implemented the scrollbar based on the GUI guideline document.

If you want test it, need enable with the command as below.
(eg. ubrowser --enable-features=NativeScrollbar)

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

Change-Id: I5b26519be7f05fa78e6a86e816c4f96e3fb47ace
Signed-off-by: wangjing <jing124.wang@samsung.com>
11 months ago[M120 Migration][WASM] Adding flag indicating builds for Tizen TV to V8 40/311240/4
Robert Bycul [Thu, 9 May 2024 10:53:13 +0000 (12:53 +0200)]
[M120 Migration][WASM] Adding flag indicating builds for Tizen TV to V8

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

There are some additional V8 features added for Tizen TVs only, so flag
indicating build for such platform is required in V8.

Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1543
Change-Id: I5a59e989bf5c40c4bbc9e3cc99c4730981ce8a70
Signed-off-by: Robert Bycul <r.bycul@samsung.com>
11 months ago[M120 Migration][WebRTC][GS] Don't trigger redraw for overlay forced frames 39/311239/3
Jakub Gajownik [Wed, 15 May 2024 08:50:51 +0000 (10:50 +0200)]
[M120 Migration][WebRTC][GS] Don't trigger redraw for overlay forced frames

Ported commits:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/296944/
(partially) https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/297919/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/301487/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I3f6a487283613a6bef176ee260c7cca25c6bc9d8
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration] fixup! [MM] Handle buffering and playback 38/311238/3
Jakub Gajownik [Wed, 15 May 2024 05:43:53 +0000 (07:43 +0200)]
[M120 Migration] fixup! [MM] Handle buffering and playback

Ported commit:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294072/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I2f37f454d03943c4b1659d56a2280213f05ec8c5
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[M120 Migration] fixup! [M108 Migration][MM] Introduce renderer seek 37/311237/3
Jakub Gajownik [Wed, 15 May 2024 05:31:41 +0000 (07:31 +0200)]
[M120 Migration] fixup! [M108 Migration][MM] Introduce renderer seek

Ported commit:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/294071/

Bug: https://jira-eu.sec.samsung.net/browse/VDGAME-493
Change-Id: I1016ea89f12f3f5081364601476d45e457f19f82
Signed-off-by: Jakub Gajownik <j.gajownik2@samsung.com>
11 months ago[Coverage] Patch for UnitTest coverage 08/311208/5 submit/tizen/20240516.160022
nishitha [Thu, 16 May 2024 06:08:56 +0000 (11:38 +0530)]
[Coverage] Patch for UnitTest coverage

Improve line and function coverage percentages.

Coverage result with the patch-
Lines    : 86.8%
Functions: 85.1%

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

Change-Id: Ic13957441e962216404b322145608b2e1bf664fe
Signed-off-by: nishitha <n.saravanan@samsung.com>
11 months ago[M120 Migration] Fix availWidth/availHeight is not work 24/311224/1
v-saha [Thu, 16 May 2024 07:56:09 +0000 (13:26 +0530)]
[M120 Migration] Fix availWidth/availHeight is not work

availWidth/availHeight is based on work area, it was set
while init display info, and this is platform dependence.

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

Change-Id: Ie5ffc5dc0669780beb330b762098895ebbc4ce67
Signed-off-by: v-saha <v.saha@samsung.com>
11 months ago[WRTjs][VD] Clear cache in native side directly in low memory case 88/310788/4
zhaosy [Wed, 8 May 2024 06:38:40 +0000 (14:38 +0800)]
[WRTjs][VD] Clear cache in native side directly in low memory case

In low memory case, send event from native side -> wrtjs -> native side to clear cache.
But sometimes, it costs too much time to send event, then app maybe is dead-lock.
So clear cache in native side directly.

Change-Id: Ibfeb32ab4ba9d8c3b8327e3a57e68bdb3d9c2dfe
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
12 months ago[WRTjs][Service] Add Service app status mechanism 48/309848/8 submit/tizen/20240515.160016
Chunling Ye [Wed, 17 Apr 2024 07:19:15 +0000 (15:19 +0800)]
[WRTjs][Service] Add Service app status mechanism

Depend on patch:
https://review.tizen.org/gerrit/309855/

Change-Id: I677bf5cbd60e52314762fb2c56a8e6d555f5f07d
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
12 months agofixup! [M120 Migration] Refactor CookieManager 51/311151/1 accepted/tizen/unified/20240516.031732 accepted/tizen/unified/x/20240516.064103
jiangyuwei [Wed, 15 May 2024 07:28:55 +0000 (15:28 +0800)]
fixup! [M120 Migration] Refactor CookieManager

1.Implement CookieManager functions via network::mojom::CookieManager
2.Delete cookies on UI thread
3.Remove UrlRequestContextGetter related code
4.Fix code style issue

References:
 - https://review.tizen.org/gerrit/293007/

Change-Id: Iaef9935b1ff60bc4f29d3f92b06730137fe8e1c3
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months ago[M120 migration][MM][HBBTV] Add video_id for JS and EWK API 39/311039/4
zhishun.zhou [Mon, 13 May 2024 08:00:04 +0000 (16:00 +0800)]
[M120 migration][MM][HBBTV] Add video_id for JS and EWK API

Support js interface that used to get video id of video element.
It's used by HBBTV.

Patch from:
https://review.tizen.org/gerrit/#/c/293421/
https://review.tizen.org/gerrit/#/c/294255/

Some part of the original patch have been merged by:
https://review.tizen.org/gerrit/#/c/309217/

Change-Id: I49de03056f0ddc79df13a42b880a28dc1e479812
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
12 months ago[M120 Migration][VD] Force sync level database file on low end 05/311105/2
feifei08.liu [Tue, 14 May 2024 06:10:11 +0000 (14:10 +0800)]
[M120 Migration][VD] Force sync level database file on low end

Vdfs4 filesystem can't sync timely. Checked with tizen linux kernel team,
kernel need to wait 30s then do auto sync after last write operation by user.
For HbbTV power cycle test, the new content is not really write done.
Since these exception cases, WebEngine do force sync for level database file.

Refer: https://review.tizen.org/gerrit/297841/

Change-Id: I142d33bf3476cf7cdf2dfb1f1c24b58bf0b0c961
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
12 months ago[M120 Migration][VD] Ignore "p2p" port message notified by system kernel 84/311084/3
jingjieli [Tue, 14 May 2024 02:17:12 +0000 (10:17 +0800)]
[M120 Migration][VD] Ignore "p2p" port message notified by system kernel

NetLink sends RTM_NEWADDR message for "p2p" port,
this causes WebEngine close all unfinished requests.
user APP should skip its events.

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

Change-Id: Ia430b7a2dded1618585128a72cfe21296132f40b
Signed-off-by: jingjieli <jingjie.li@samsung.com>
12 months ago[M120 Migration] Update libdir and include dir 38/311138/2
Qiang Ji [Tue, 14 May 2024 10:48:18 +0000 (18:48 +0800)]
[M120 Migration] Update libdir and include dir

Don't use fixed dir for lib and include dir, use
_libdir to instead.

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

Change-Id: I1c632fea09a3915fd90c3cc05f25fbf5d75d4c78
Signed-off-by: Qiang Ji <qiang.ji@samsung.com>
12 months ago[WRTjs][VD] Change the Json format for camera info api for service app 40/311140/1
liwei90727 [Tue, 14 May 2024 03:18:34 +0000 (11:18 +0800)]
[WRTjs][VD] Change the Json format for camera info api for service app

This camera api is for devicehome, and there is nested redundant array,
change JS format from
"camera_device_list" :
[
        [
                {
                        "name" : "C922 Pro Stream Webcam",
                        "type" : 12
                }
        ]
],
"device_count" :
[
       "1"
]

to
"camera_device_list": [
    {
      "name": "C922 Pro Stream Webcam",
      "type": "1"
    }
],
"device_count": "1"

Change-Id: I729b5f08d46cc5e8fb043e814812eed2cc49a39e
Signed-off-by: liwei90727 <wei90727.li@samsung.com>
12 months ago[M120 Migration]Make WebContentsViewAuraHelperEfl also work for onscreen mode. 86/311086/3 submit/tizen/20240514.160017
fangfengrong [Tue, 14 May 2024 02:42:21 +0000 (10:42 +0800)]
[M120 Migration]Make WebContentsViewAuraHelperEfl also work for onscreen mode.

While onscreen mode, such as WRT also need use the WebContentsViewAuraHelperEfl
class to route some calls to wrt efl delegate classes.

So remove offscreen mode check,
make WebContentsViewAuraHelperEfl work for both onscreen and offscreen mode.

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

Change-Id: I9e3ae81b59b208a0209799c7c8aff7b8fe2f44a8
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][HBBTV] Set DynamicPlugin when Network service enable. 23/311023/3
fang fengrong [Mon, 13 May 2024 02:58:16 +0000 (10:58 +0800)]
[M120 Migration][HBBTV] Set DynamicPlugin when Network service enable.

Now the Network service is default enabled. When it's enabled,
URLRequestContextGetter is not created,
URLRequestInterceptor with DynamicPlugin is not created.
This patch implement it when Network service is enabled.
Because there is no interceptor, we parse url in ThrottlingURLLoader now.

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

Change-Id: I6b812b06ab3c5e4a3f4db606209e309795fac74e
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] When vd_gcov is set, enable g++ as the default compiler 50/311050/2
zhaodan [Mon, 13 May 2024 08:21:37 +0000 (16:21 +0800)]
[M120 Migration][VD] When vd_gcov is set, enable g++ as the default compiler

ref:https://review.tizen.org/gerrit/#/c/293981/

Change-Id: I90a6663941f3fe4b3487fc93b97d21e0a21377af
Signed-off-by: zhaodan <danys.zhao@samsung.com>
12 months ago[M120 Migration] Fix lfd/iwb device shows black screen while launching webbrowser 79/311079/3
Qiang Ji [Tue, 14 May 2024 00:45:06 +0000 (08:45 +0800)]
[M120 Migration] Fix lfd/iwb device shows black screen while launching webbrowser

From M108, gpu thread and main thread need to share texture id, so we used
virtualized gl context. Gpu thread called egl interface to create gl context,
we need to pass a shared context to it. So we should create gpu thread context
after GLSharedContextEflPrivate which was created when a web view was added.

We modified the startup sequence for LFD/IWB device.
1. Create GPU channel host
2. Create GLSharedContextEflPrivate
3. EstablishGpuChannel
4. Create egl context based on GLSharedContextEflPrivate as shared context

while orig sequence on LFD/IWB is
1. Create GPU channel host
2. EstablishGpuChannel
3. Create egl context without shared context
4. Create GLSharedContextEflPrivate

refs:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/297077/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/301030/

Change-Id: Id2dd854dfbf677b0340896d9b8553b49b30daa57
Signed-off-by: Qiang Ji <qiang.ji@samsung.com>
12 months ago[M120 Migration] Fixes svace issues 49/311049/2 submit/tizen/20240513.160016
jiangyuwei [Mon, 13 May 2024 08:22:37 +0000 (16:22 +0800)]
[M120 Migration] Fixes svace issues

This patch fixes the following issues:
Return value of a function 'evas_device_name_get' is dereferenced
at efl_event_handler.cc:983 without checking for NULL.

Add null check for the device_name.

References:
  - https://review.tizen.org/gerrit/302969/

Change-Id: I3df82fec4d639e5a5e3b61355f3b1b48feef905c
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months ago[M120 Migration] Add a check for layout_object in LoadPlugin. 45/311045/2
jiangyuwei [Mon, 13 May 2024 08:00:19 +0000 (16:00 +0800)]
[M120 Migration] Add a check for layout_object in LoadPlugin.

The check for layout_object is removed in upstream.
But it may still be null, so add a check for it.

References:
  - https://review.tizen.org/gerrit/291492/

Change-Id: I9067a94ad5ffccc884bb636cd37e3963d11d1221
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months agoFix datetime and time input boxes 11/309511/4
Daniil Ruban [Thu, 11 Apr 2024 14:43:10 +0000 (16:43 +0200)]
Fix datetime and time input boxes

- Fixes 'time-tizen-test's
- Due to EFL 'date-time box' returns time in ISO8601 format, chromium blink
  can't parse it. For such reason was added simple offset to the input datetime
  string (ISO8601_TIME_OFFSET).
- Almost the same story with datetime input box (not datetime-local),
  due to there is no TZ in EFL output, blink wasn't able to parse the string.
  As solution - use the same parsing as datetime-local,
  if string shorter then ISO8601 + TZ, then use old one.

Change-Id: Id1bac3a738179d543d19b1165fe76e8233a5cd4a
Signed-off-by: Daniil Ruban <intx82@gmail.com>
12 months ago[M120 Migration][VD] Support radio and checkbox input 08/310908/5
fangfengrong [Thu, 9 May 2024 09:45:33 +0000 (17:45 +0800)]
[M120 Migration][VD] Support radio and checkbox input

Support radio and checkbox input.
Converting 'Enter' key of RC to 'space' key,
for Support select radio and checkbox by Remote Control 'Enter' key.

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

Change-Id: I950292037832e89eb6671abe9df753cd7cf04578
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration]Fix Mouse Position Issue in miniplayer 27/310927/4
fang fengrong [Thu, 9 May 2024 09:21:57 +0000 (17:21 +0800)]
[M120 Migration]Fix Mouse Position Issue in miniplayer

1. On miniplayer window, the window x position is not from 0,
need minus x offset, or else will cause the screen position wrong.

2. When mouse in, set focus to efl window to fix miniplayer without focus issue.

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

Change-Id: I5abb5e3f496ac417cee82f7f347dec81887af778
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[WRTjs][VD] Add lock for preload extension handle map 97/310997/2
Chunling Ye [Sat, 11 May 2024 07:37:37 +0000 (15:37 +0800)]
[WRTjs][VD] Add lock for preload extension handle map

To avoid crash happenend when set preload handle map in
defect DF240509-01457.

Change-Id: I4c9cff243826e34a47a0a56166d8656b2ed5d691
Signed-off-by: Chunling Ye <chunling.ye@samsung.com>
12 months ago[M120 Migration]Fix hbbtv failed to lose window focus issue. 34/310934/3 submit/tizen/20240512.160015
fangfengrong [Fri, 10 May 2024 02:20:31 +0000 (10:20 +0800)]
[M120 Migration]Fix hbbtv failed to lose window focus issue.

Disable lostFocus cause document.hasFocus value is wrong.
So let hbbtv call set focus when they use.

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

Change-Id: I975a6d532ba4bc5481236bad87dc87432d014dab
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][MM] Support Media Sync feature 83/310983/5
yangzw [Fri, 10 May 2024 11:09:25 +0000 (19:09 +0800)]
[M120 Migration][MM] Support Media Sync feature

Add 6 APIs for JS to get/set media info
Add API and callback for mrsurl and contentId

ref:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/293176/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/298300/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/299955/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/299805/
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/297224/

Change-Id: I1bf8600eb43d0ff35cd81e8590a3a8ed3b816255
Signed-off-by: yangzw <zw714.yang@samsung.com>
12 months ago[M120 Migration][VD] Handle some key on IME for HBBTV 09/310909/3
fang fengrong [Thu, 9 May 2024 10:01:29 +0000 (18:01 +0800)]
[M120 Migration][VD] Handle some key on IME for HBBTV

1.[VD] handle Up key on top of IME as same as Return Back key for HBBTV

It's a new requirement for HBBTV from tizen 4.0:
Press up key on the top of IME behavior should handled as same as
press Return Back key behavior.

The requirement is same with webbrowser and wrt, so remove the macro,
handle ConvertUpToReturnBackIfNeeded as common.

Add some log on OnInputPanelStateChanged for debug IME show/hide state.

2.[VD] Modify keycode of IME Cancel key and IME Done key for HBBTV

It's a new requirement for HBBTV:
HBBTV need support IME as same as webapp(WRT).

Make the key/keycode on HBBTV as same as on the webapp(WRT):
IME Cancel:
key:"Cancel", keyCode:65385

IME Done/Go/Search:
key:"Select", keyCode:65376

Also deliver these keys to js for js handle.

refer:
https://review.tizen.org/gerrit/#/c/299729/
https://review.tizen.org/gerrit/#/c/301193/

Change-Id: I57f83b1ffc5fb1da664aea4464f08ed0acaf6d5b
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD]Support use floating IME for webapp 12/310912/2 submit/tizen/20240510.160015
fangfengrong [Thu, 9 May 2024 10:57:08 +0000 (18:57 +0800)]
[M120 Migration][VD]Support use floating IME for webapp

It's a new requirement for webapp on 22/23/24 year product,
webapp can decided use floating IME or not,default is don't use.

If app set use floating IME, then WebEngine need deliver app's set to IME
by ecore_imf_context_input_panel_imdata_set api with action=floating_ui
for IME to floating IME UI.

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

Change-Id: Ib0ad11b7bbcd3ffd4fa5e359dfd9ac27cecc6c25
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration]Fix an issue which Service worker crash in BBC certification tests 33/310933/2
fangfengrong [Fri, 10 May 2024 02:15:58 +0000 (10:15 +0800)]
[M120 Migration]Fix an issue which Service worker crash in BBC certification tests

Produce2024 BBC certification test need verify service  worker.
HbbTV crashed when running the service worker tests.

testcase:
ACT-1490 Service Worker: Non blocking, run off the main thread
ACT-1493 Service Worker: Intercept and cache fetch requests
ACT-1494 Service Worker: Register/unregister

When GetLoaderFactoryForBrowserInitiatedRequest call WillCreateURLLoaderFactory pass a nullptr(frame).
Then  WillCreateURLLoaderFactory pass frame->GetFrameTreeNodeId() as functional parameter caused crash.

solution:
When RenderFrameHost is null, do not create any URLLoaderFactory.

refer:
https://review.tizen.org/gerrit/#/c/296941/
https://review.tizen.org/gerrit/#/c/297918

Change-Id: Ia3f4512cba0ec295dd0c3685ece89a0923a929b2
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration] Disable DoH as default 08/310808/2
shayh [Wed, 8 May 2024 10:43:56 +0000 (18:43 +0800)]
[M120 Migration] Disable DoH as default

DoH is DNS over HTTPs, to improve security of DNS, but need time to query
clearall app will appear some unreasonable url request.
like https://dns.google/dns-query?dns=AAABAAABAAAAAAABA3d3dwdnc3RhdGljA2NvbQAAAQABAAApEAAAAAAAAFQADABQAAAAAA

DoH will effect app loading performance, so disable as default

Change-Id: I2bc3e884a6d56692feb5d9a155ef2a9fe4722778
Signed-off-by: shayh <yuhong.sha@samsung.com>
12 months ago[M120 Migration][VD] Skip flushAndSubmit sync for bbc app 35/310935/3
fangfengrong [Fri, 10 May 2024 02:23:57 +0000 (10:23 +0800)]
[M120 Migration][VD] Skip flushAndSubmit sync for bbc app

bbc loadpage was block by flushAndSubmit.
skip the function for hbbtv app.

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

Change-Id: I398df0fc8b38e2d634e1952ce109ad63297beb68
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[WRTjs][VD] Enable Cookie and DiskCache feature 89/310889/2
zhaosy [Thu, 9 May 2024 07:44:12 +0000 (15:44 +0800)]
[WRTjs][VD] Enable Cookie and DiskCache feature

Enable Cookie and DiskCache feature

Change-Id: I89b305188211d274e3b2ca04fa41a99c142f203c
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
12 months agoFix for chrome crash issue. 11/310911/3
Rohit Kumar [Thu, 9 May 2024 10:48:20 +0000 (16:18 +0530)]
Fix for chrome crash issue.

This change will fix the chrome crashes.
Crashes were happening while accessing the settings from
the context menu, importing bookmarks and clicking on the
about chromium tabs on chrome tab.

The crash was happening because the settings page html
was looking for searchEngineChoiceEntryPointSubtitle and
this key vaule was not getting populated because of the
ENABLE_SEARCH_ENGINE_CHOICE flag. build_chrome needed to
be enabled for this.

Change-Id: I78227ae547e998c18c3023208bb11a0a3928f11a
Signed-off-by: Rohit Kumar <rohit.16@partner.samsung.com>
12 months agoFix for web inspector not working on tizen 9.0 19/310919/4 accepted/tizen/unified/20240510.095755 accepted/tizen/unified/toolchain/20240515.061122 accepted/tizen/unified/x/20240513.060310
uzair [Thu, 9 May 2024 14:06:09 +0000 (19:36 +0530)]
Fix for web inspector not working on tizen 9.0

Issue was reported on emulator and rpi4 headed profiles, during debugging a
web application, web socket connection failure occurs and hence not able
to connect to chrome devtools console. This is due to error checking introduced
in open source [1] and mentions to use --remote-origin-allow flag explicitly
but even after which we see white screen in chrome developer console.
Hence for now temporarily we are disabling the error checking to allow web
application debugging to work as expected as [1] was not present in M108 as well.

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

Change-Id: If0a53754bacdc7f5a59122e348a4fdbde8dcd9c4
Signed-off-by: uzair <uzair.jaleel@samsung.com>
12 months agoFixup! [M120 Migration][MM] Merge tizen tv audio input device patches 52/310852/2 submit/tizen/20240509.160027
peng.yin [Thu, 9 May 2024 01:05:55 +0000 (09:05 +0800)]
Fixup! [M120 Migration][MM] Merge tizen tv audio input device patches

pick related logic from:
https://review.tizen.org/gerrit/#/c/295121/

Change-Id: I7a038107c0717f1097c3f90af04dfc762221ca19
Signed-off-by: peng.yin <peng8.yin@samsung.com>
12 months ago[M120 Migration][VD]Fix wrong key and text issue 53/310853/2
fang fengrong [Thu, 9 May 2024 03:49:03 +0000 (11:49 +0800)]
[M120 Migration][VD]Fix wrong key and text issue

1.[VD]Fix wrong key issue

The keys after IME filtered, WebEngine can only receive text on
callback, then WebEngine make fake key event with the text;
compared with the original key event, the fake event lost many
key properties(such as without the modifiers).

If get the DomKey from DomCode, will get wrong key,such as:
input uppercase letter "A" with IME, the key of key up event is lowercase key "a";
input "+" with IME, the key of key up event is "=".

So keep same with M94, if there is no key value, return empty directly,
don't get the DomKey from DomCode, for avoid getting wrong key value.

2.[EFL] Fix wrong text and wrong unmodifiedText issue

For EFL key event,keep same with M94, should get the text and unmodifiedText
from evt->string, not from evt->key.

On most case, the evt->string same with the evt->key;
but on some case, the evt->string may not same with the evt->key, such as:
when number lock, press the number key on the Numeric keypad area of the
usb-keboard, the evt->string is empty, it not same with the evt->key.
And press the number key when number lock, should not show the number.

refer:
https://review.tizen.org/gerrit/#/c/295521/
https://review.tizen.org/gerrit/#/c/295328/

Change-Id: I114db7a08244ef9ce38a18ac43c3f2f9501813b0
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] update client position of mouse when webview move 51/310851/2
fangfengrong [Thu, 9 May 2024 03:46:46 +0000 (11:46 +0800)]
[M120 Migration][VD] update client position of mouse when webview move

On webbrowser/knox-browser fullscreen to non-fullscreen switch case,
the webview will been moved from (0,0) to (0,144) or from (0,144)
to (0,0), the client position of the mouse which corresponds to the
webview location, should been moved as the webview moved.

So when webview move, trigger a fake mouse move event based on the
current mouse position, then the client position of mouse will been
update according the webview position.

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

Change-Id: Ia9c762d4f31b0581e0cf8c7697b46cec730134bc
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Reset ime context when mouse click or touch on editable node 50/310850/2
fangfengrong [Thu, 9 May 2024 03:43:36 +0000 (11:43 +0800)]
[M120 Migration][VD] Reset ime context when mouse click or touch on editable node

When mouse click or touch on editable node(the IME status is focus in),
need reset ime context, to commit previous preedit text,
or else will cause the new input text been inputed on the last position,
not on the mouse or touch moved position.

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

Change-Id: I48fd54eea1ee887f8ca551ca0dd2f8e7f03b4962
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][MM] Enable logging for playback 34/310734/5
yanqing.lu [Tue, 7 May 2024 08:34:54 +0000 (16:34 +0800)]
[M120 Migration][MM] Enable logging for playback

1. Enable important log for suspend resume issue
   https://review.tizen.org/gerrit/299080

2. Add necessary debug info for espp player
   normally, there're several players created scenario
   add necessary info for these players id, obj addr,
   for easier debugging
   https://review.tizen.org/gerrit/301400

3. [VD] Add debug logs for suspend/resume
   WebView and LocalFrame staus will change during
   tab changes in webbrowser. At this time, if webview
   exist media element, will notify current status to
   media element, but hard to analyze this kind issues
   due to lack useful logs.
   https://review.tizen.org/gerrit/303204

4. Add debug logs for url request and append data
   https://review.tizen.org/gerrit/272717

Change-Id: I2bf76ce89ffd9e29e44658cebba685b8902a9030
Signed-off-by: yanqing.lu <yanqing.lu@samsung.com>
12 months ago[M120 Migration][VD] Support mouse feature for smart monitor 12/310812/2
fang fengrong [Wed, 8 May 2024 11:20:03 +0000 (19:20 +0800)]
[M120 Migration][VD] Support mouse feature for smart monitor

1. Support "mouse pointer size" feature for smart monitor
2. Add cursor theme set for HBBTV
3. Support enable/disable mouse event for smart monitor
4. Support "mouse pointer size" feature for DTV

refer:
https://review.tizen.org/gerrit/#/c/294029/
https://review.tizen.org/gerrit/#/c/300866/

Change-Id: I3b5f869403ea349536c244cd2e0ed14d1dfaa318
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration] Fix without key press event issue 75/310775/2
fang fengrong [Wed, 8 May 2024 03:04:07 +0000 (11:04 +0800)]
[M120 Migration] Fix without key press event issue

1.For Evas_Event_Key_Down event, when create NativeWebKeyboardEvent
from ui::KeyEvent, becasue of without set character, it only create
kRawKeyDown type, without kChar type, it cause don't create keypress
event.

While some app(such as Jawwy app) need listen the keypress event on js.

2. Fix twice keypress event issue, such as press "Enter" key on Remote Control
on linux, use the RawKeyDown type + Char type, for Char type will create keypress event.
on EFL, follow M94, use the KeyDown type, when handle KeyDown event will create keypress event.

So for EFL, remove the InsertChar for avoid create Char type event, then avoid create keypress event.

3. Fix there should be no keypress event for key with keycode is 0,
such as press korean language character, should be no keypress event.

On EFL, for the key with event.keycode is 0, mean the key is not on the key map,
the event.text should be set as 0, and the event.keycode will been reset as 229.

on the issue, event.text set after event.keycode been reset as 229,
it cause get wrong event.text(not 0), then casue create the keypress event.

So for EFL, set the event.text before reset event.keycode, and deliver the saved event.text.

Summarized:
For key press event:
For EFL, follow the M94, use KeyDown type, donot use the RawKeyDown type + Char type,
The key press created when handle keydown event.

For key with event.keycode is 0, mean the key is not on the key map,
such as korean language character,it should without the keypress event;

For key with event.keycode is not 0, mean the key is on the key map,
such as "Done" key on IME, it should have the keypress event.

4.Also add some key logs for debug.

refer:
https://review.tizen.org/gerrit/#/c/293364/
https://review.tizen.org/gerrit/#/c/293924/

Change-Id: I98ff9285db55a62cf9749332290ddee414e50fb8
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration] Don't show IME for non user action 68/310768/3
fangfengrong [Wed, 8 May 2024 03:24:18 +0000 (11:24 +0800)]
[M120 Migration] Don't show IME for non user action

When set don't UseKeyPadWithoutUserAction by
set ewk_settings_uses_keypad_without_user_action_set false
or set "use.keypad.without.useraction" false on WRT,
don't show IME when non user action, such as Element auto focus.

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

Change-Id: I9e6437d9739f73a783a7fb27e01b002f3b9ee733
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][[VD][Remote Access] Fix input type change frequency issue 59/310759/2
fang fengrong [Wed, 8 May 2024 01:27:59 +0000 (09:27 +0800)]
[M120 Migration][[VD][Remote Access] Fix input type change frequency issue

On office 365 case,when input text,the text need sync on line,
and js will call removeAllRanges to clear Selection,
it will lead the  RootEditableElementOfSelection is null.
it will cause the input type get as None.

Because check RootEditableElementOfSelection on getInputInfo()
is for get typeInfo.value by RootEditableElement;
but check RootEditableElementOfSelection on getInputType is for
sync with InputInfo.type, and the input type is for handle IME
status(IME focusOut/focusIn/show/hide), not related with typeInfo.value.
So we no need check RootEditableElementOfSelection on getInputType.

Now for Remote Access, when the input type is ContentEditable type,
not check the RootEditableElementOfSelection any more.

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

Change-Id: I41fcb2e9c5bcabb56905a49677b52870c8204974
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Support search wrap around within the page 54/310754/3
fang fengrong [Wed, 8 May 2024 01:03:32 +0000 (09:03 +0800)]
[M120 Migration][VD] Support search wrap around within the page

1. Support search wrap around within the page
Add "wrap_around" properties on FindOptionsPtr, default value is false.
App can pass "EWK_FIND_OPTIONS_WRAP_AROUND" option when calling
"ewk_view_text_find" api,
to search wrap around within the page.

2. Fix search wrap around issue when set wrap around false
As "new_session" properties signifies whether this operation is the
first request or a follow-up; for find next operation, set new_session
is false, or else will cause search wrap around issue when set wrap
around false.

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

Change-Id: Id5620fd3b6f8bff92fe608f24eaf36a693835692
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] support touch 53/310753/3
fangfengrong [Wed, 8 May 2024 00:54:56 +0000 (08:54 +0800)]
[M120 Migration][VD] support touch

1. [VD] support touch & mouse & multi-touch event for RPI4 and LFD
2. [VD] Enable touch with FMS for UWE
3. Tizen Platform supports up to 20 multi-touch
4. Add a new FMS to enable touch for Projector
   FMS key:"com.samsung/featureconf/touch_detection.ir_touch_detection_support".

refer:
https://review.tizen.org/gerrit/#/c/291444/
https://review.tizen.org/gerrit/#/c/305464

Change-Id: Ie02e9228666055addeb43fdce4dbb9bb4722ac44
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months ago[WRTjs][VD]Additional WebAPI for focus and window stack adjustment 56/310756/5
YONGMAN SON [Wed, 8 May 2024 01:08:32 +0000 (10:08 +0900)]
[WRTjs][VD]Additional WebAPI for focus and window stack adjustment

Make it possible to enable/disable focus through webapi.
Adding a webapi for adjusting Window stack mode.

This is used for special scenarios in video calling app.

Change-Id: Ie342dd168d30a0b3c67db3ce6c37e5d6922b1426
Signed-off-by: YONGMAN SON <yman.son@samsung.com>
12 months ago[M120 Migration][MM] Check for texture and Webgl to render video frame on canvas 79/310779/3 accepted/tizen/unified/20240509.124621 accepted/tizen/unified/toolchain/20240513.061324 accepted/tizen/unified/x/20240510.061424
Suhaspoornachandra [Wed, 8 May 2024 05:27:23 +0000 (10:57 +0530)]
[M120 Migration][MM] Check for texture and Webgl to render video frame on canvas

1) The video frame decoded by WebCodec can be rendered to canvas.
In Canvas2D rendering, it is failed with GL errors because
the frame in tbm format doesn't have a texture.
It needs to generate the image from video frame.

2) When video hole is off, video use texImge2D method to
paint video content to canvas, need to create TBM texture.

References:
https://review.tizen.org/gerrit/292745
https://review.tizen.org/gerrit/295618

Change-Id: Ia65371ec3460a59f9161127b5a788ea055ffcf42
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
12 months ago[M120 Migration][WebMedia] Support 5K resolution video playback 04/310704/3
zhishun.zhou [Tue, 7 May 2024 05:45:24 +0000 (13:45 +0800)]
[M120 Migration][WebMedia] Support 5K resolution video playback

Support 5K resolution for Smart Monitor (S90PC)
 - S90PC : HEVC, AV1 - 5120x2880 (5K, 16:9)

Patch from:
https://review.tizen.org/gerrit/#/c/291662/

Change-Id: I4c32db00c3e2d708d4e488c3c8f4f0bee0419ba4
Signed-off-by: peng1xiao <peng1.xiao@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
12 months ago[VD][RISCV] Add TIZEN_TV_RISCV64 flag to support riscv feature 85/310685/4 submit/tizen/20240508.160020
jie [Mon, 6 May 2024 11:07:15 +0000 (19:07 +0800)]
[VD][RISCV] Add TIZEN_TV_RISCV64 flag to support riscv feature

 1. Add riscv feature flag TIZEN_TV_RISCV64.
 2. Dissable NSS_InitReadWrite_SanityCheck api when riscv64 building.
    Becasue the nss version is different in riscv repo.
    There is not NSS_InitReadWrite_SanityCheck api.
 3. Only Tizen TV support vd feature for RISC-V.

Change-Id: I6a14f260c2536286b7880fd4e402acd2d3fc5c17
Signed-off-by: huochangjun <changjun.huo@samsung.com>
12 months agoBuild fixes in Tizen-X profile. 45/310545/6
venu.musham [Tue, 30 Apr 2024 13:14:03 +0000 (18:44 +0530)]
Build fixes in Tizen-X profile.

Fixes to aarch64 Tizen-X profile.

Change-Id: I9e3f466efd2989f7aa259ff89ac027585b2008d3
Signed-off-by: venu.musham <venu.musham@samsung.com>
12 months ago[PDNCF] Revert "Make XML input callbacks in Blink more robust to unexpected situations." 22/310722/2
Gajendra N [Tue, 7 May 2024 08:13:15 +0000 (13:43 +0530)]
[PDNCF] Revert "Make XML input callbacks in Blink more robust to unexpected situations."

Revert upstream change added for failsafe check for case blink custom
input fields.

upstream url: https://chromium-review.googlesource.com/c/chromium/src/+/4691203

Change-Id: I581c75505e7797377ac23b27071e7fa4e28a2d93
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
12 months ago[M120 Migration][RBS][VD] Support ewk_settings_ime_handle_key_event_enabled_set for RBS 69/310669/3
fang fengrong [Mon, 6 May 2024 07:35:06 +0000 (15:35 +0800)]
[M120 Migration][RBS][VD] Support ewk_settings_ime_handle_key_event_enabled_set for RBS

It's the Knox-browser's requirement for RBS:
RBS needs to use the virtual desktop's IME instead of the TV IME
to process the input.

So provide an api: api ewk_settings_ime_handle_key_event_enabled_set
for knox-browser to disable use TV IME to handle key event.

Default is enable use IME to handle key event.

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

Change-Id: Ia0bfc54c38697da091a3e3df54584d53173aebda
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months agoRevert "fixup! "Fix errors thrown due to platform libxml2 version upgrade from 2... 12/310712/2
Gajendra N [Tue, 7 May 2024 06:14:51 +0000 (11:44 +0530)]
Revert "fixup! "Fix errors thrown due to platform libxml2 version upgrade from 2.11.5 -> 2.12.5""

Causes TERMS app to crash, hence reverting the fixup.

This reverts commit f1be3ae3a7e405a2c7c5b629a5e14b851cc7ad79.

Change-Id: I9242f25c076bf48f18eadd2a475dde54e2def69b
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
12 months ago[M120 Migration][VD][AX] Remove redundant limitation of GetRole 71/310671/4
jie [Sun, 28 Apr 2024 03:05:42 +0000 (11:05 +0800)]
[M120 Migration][VD][AX] Remove redundant limitation of GetRole

To fix Meaningless words are read out with checkbox,
when role="", set AtkRole to ATK_ROLE_INVALID.

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

Change-Id: Ia8d622496144923ee1de5278af109046a4f3dbcc
Signed-off-by: jie <jie137.zhang@samsung.com>
(cherry picked from commit a8c31b1181b8c719d93dcd682a6e0b15adbceecb)

12 months ago[M120 Migration][VD] Modify IME "Done/Search/Go" key name as "Enter" for webbrowser 65/310665/3
fangfengrong [Mon, 6 May 2024 05:15:59 +0000 (13:15 +0800)]
[M120 Migration][VD] Modify IME "Done/Search/Go" key name as "Enter" for webbrowser

The "Done/Search/Go" key on IME panel, keyname is "Select";
it's not same with the "Enter" key on Physical Keyboard Key,
which keyname is "Enter".

As some website on webbrowser may use the key name,
but can not identify the "Select" key name;
so,modify IME "Done/Search/Go" key name,replace "Enter" with "Select".

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

Change-Id: Ifc4ac44f69c6d60edcf049da8fcda800576d4e04
Signed-off-by: fangfengrong <fr.fang@samsung.com>
12 months agoImplement |EflScreen::GetCursorScreenPoint| 79/310579/3
Hyomin Kim [Tue, 2 Apr 2024 02:06:42 +0000 (19:06 -0700)]
Implement |EflScreen::GetCursorScreenPoint|

The address bar suggestion omnibox refers to
the location of the pointer with the function above.
Before the patch, shadowing didn't work by
moving the pointer over it.

So implement it to enable it.

Change-Id: I97f857d8429a6390d5420a1442d80fe22c381aaf

12 months agoFix: WebInspector video stream crash 12/310412/3
Leonid [Fri, 26 Apr 2024 15:34:56 +0000 (17:34 +0200)]
Fix: WebInspector video stream crash

WebInspector caused a segfault due to not checking
 for raster_context_provider == nullptr

Note: fallback for no TIZEN_TBM_SUPPORT was used

Change-Id: I1c9d701ded01f471d588984e52adffc4a1d6dbbf
Signed-off-by: Leonid <l.sawin@samsung.com>
12 months agoFix: multiple warnings under cc/* 71/309971/4
Leonid [Thu, 18 Apr 2024 12:23:35 +0000 (14:23 +0200)]
Fix: multiple warnings under cc/*

Mostly resolved unreachable code and
 undefined behavior issues via NOTREACHED

This is one of a few minor patches aimed at reducing
 build times and improving code quality

Change-Id: Ie4617947abdfecede475ec7fe9d0fd974d149a29
Signed-off-by: Leonid <l.sawin@samsung.com>
12 months ago[M120 Migration] Limit the length and scheme of pageurl in favicon DB 68/310668/2
jiangyuwei [Mon, 6 May 2024 06:00:37 +0000 (14:00 +0800)]
[M120 Migration] Limit the length and scheme of pageurl in favicon DB

The length of pageurl in favicon DB <= 1024.
The scheme of pageurl in favicon DB exclude data scheme.

References:
 - https://review.tizen.org/gerrit/304020/

Change-Id: I8d65da6df6836e19658213d3bb944192e955ce44
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months ago[M120 Migration]V8 memory related 10/310510/2
zhaodan [Tue, 30 Apr 2024 05:54:47 +0000 (13:54 +0800)]
[M120 Migration]V8 memory related

1: To avoid the crash of webengine side.
2: V8 max heap memory size tuning.
3: Add a check for the size of js array.

Ref:
https://review.tizen.org/gerrit/#/c/291550/
https://review.tizen.org/gerrit/#/c/291218/
https://review.tizen.org/gerrit/#/c/291216/

Change-Id: Iee3052bf9235d8a516b9d0173fa38346144042c4
Signed-off-by: zhaodan <danys.zhao@samsung.com>
12 months ago[M120 Migration] [EFL] Fix wrong screen position issue 76/310676/5 submit/tizen/20240507.160016
wangjing [Mon, 6 May 2024 08:54:52 +0000 (16:54 +0800)]
[M120 Migration] [EFL] Fix wrong screen position issue

1. screen position is same with the client position on mouse event.
Should set the root location which is delivered in EFL event as the screen
position.
And set the location which is root location minus the TopControlsHeight(
the y position of the native view) as client position.

2. mouse_wheel can't scroll when mouse position below the screen.
When WebBrowser use ewk_view_feed_mouse_wheel API to edge scroll,
need adjust mouse position inside the webview.

Refer:
https://review.tizen.org/gerrit/296171/
https://review.tizen.org/gerrit/297033/

Change-Id: Ic159d3b0619c407f36db0f6966ecad715a33ee16
Signed-off-by: wangjing <jing124.wang@samsung.com>
12 months ago[M120 Migration][VD] Ignore "huart" port message notified by system kernel 63/310663/2
jingjieli [Mon, 6 May 2024 03:24:02 +0000 (11:24 +0800)]
[M120 Migration][VD] Ignore "huart" port message notified by system kernel

NetLink sends RTM_NEWADDR message for "huart" port,
this causes WebEngine close all unfinished requests.
HyperUART is used for logging system device for SDB,
user APP should skip its events.

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

Change-Id: I2f6b19bb73acedbd3e04436b7f5f0ec2edf5a853
Signed-off-by: jingjieli <jingjie.li@samsung.com>
12 months ago[M120 Migration] To update evas object of position when webview is moved 66/310666/3
fang fengrong [Mon, 6 May 2024 05:26:55 +0000 (13:26 +0800)]
[M120 Migration] To update evas object of position when webview is moved

Need to update the position info for view of Ewk_View_Smart_Data.

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

Change-Id: I08c01e1aef0c38f3e261f15c565367ce61018464
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Support app setting customized recommended words 67/310667/3
fang fengrong [Mon, 6 May 2024 05:44:20 +0000 (13:44 +0800)]
[M120 Migration][VD] Support app setting customized recommended words

Implement PepperExtensionSystemHost::SetIMERecommendedWordsType
which enable/disable allow app to set auto words.
Implement PepperExtensionSystemHost::SetIMERecommendedWords
which receive recommended words from app. Then recommended words
are passed to IME.

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

Change-Id: I9c7a93c76d3605edf6b8b4c1a5d97d53067f6a7a
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[WRTjs][VD] Update po file 92/310692/2
zhaosy [Tue, 7 May 2024 01:04:56 +0000 (09:04 +0800)]
[WRTjs][VD] Update po file

po is updated in Trams, so update the latest po file

Change-Id: I2f165d96617e8ef556a21b161c47c6dfaaf848a8
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
12 months ago[M120 Migration] fix H264 cannot support 4K60fps issue. 23/310523/3 submit/tizen/20240506.160016
zhishun.zhou [Tue, 30 Apr 2024 08:31:12 +0000 (16:31 +0800)]
[M120 Migration] fix H264 cannot support 4K60fps issue.

On lowend target the maximum capacity of H264 is 4K 30fps, while the
default max framerate value is media::kMaxFramerate [60], that will
cause fail for H264 4k video. Let's set the framerate from
ri_get_max_resolution.

Patch from: https://review.tizen.org/gerrit/#/c/303095/

Change-Id: Iaa6c41befa86c9f53a0530a53e1c59970271e263
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
12 months ago[M120 Migration][VD][MM] Get H264 max_res from RS on M108 09/310509/3
zhishun.zhou [Tue, 30 Apr 2024 06:04:28 +0000 (14:04 +0800)]
[M120 Migration][VD][MM] Get H264 max_res from RS on M108

Issue: H264 4K video shows black on M108.
Reason: WebMedia limits H264 max_res to FHD, which will decoded by 2K decoder.
        But 2K decoder cannot support 4K stream.
Solution: Get h264 max_res from RS from M108. For previous version, keep
        limitation of FHD for H264.
Patch from: https://review.tizen.org/gerrit/#/c/300936/

Change-Id: If70f33fefc9681b0c9643d38db449d55db449bd1
Signed-off-by: xiaofang <fang.xiao@samsung.com>
Signed-off-by: yanqing.lu <yanqing.lu@samsung.com>
Signed-off-by: zhishun.zhou <zhishun.zhou@samsung.com>
12 months ago[M120 Migration][VD] Introduce --allow-universal-access-from-files runtime toggle 62/310662/2
jiangyuwei [Mon, 6 May 2024 02:40:11 +0000 (10:40 +0800)]
[M120 Migration][VD] Introduce --allow-universal-access-from-files runtime toggle

To enable cross origin XHR currently WRT launches chromium with
--disable-web-security flag, which allows all types of the documents
access every other documents.
This patch introduces --allow-universal-access-from-files which
allows to grant universal access only to local documents, the same
as it is currently implemented in WebKit-EFL.

References:
 - https://review.tizen.org/gerrit/291139/

Change-Id: Id206a7a8224732bc1d80e4447a74e09b5edd4264
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months ago[M120 Migration] Refactor CookieManager 60/310660/2
jiangyuwei [Mon, 6 May 2024 00:54:32 +0000 (08:54 +0800)]
[M120 Migration] Refactor CookieManager

1.Implement CookieManager functions via network::mojom::CookieManager
2.Delete cookies on UI thread
3.Remove UrlRequestContextGetter related code
4.Fix code style issue

References:
 - https://review.tizen.org/gerrit/293007/

Change-Id: I48b29381be4343f103ec99e86bcbe38cb4fb776b
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months ago[M120 Migration][VD] Support Pointer Lock API for WRT 27/310527/4
fang fengrong [Tue, 30 Apr 2024 09:08:51 +0000 (17:08 +0800)]
[M120 Migration][VD] Support Pointer Lock API for WRT

1:The Pointer Lock API is WASM team's requirement for WebApp from tizen 5.5.

  Now We support the Pointer Lock API as below:
  1. Element.requestPointerLock()
  2. Document.exitPointerLock()
  3. Document: pointerlockchange
  4. Document.onpointerlockchange
  5. Document: pointerlockerrors
  6. Document.onpointerlockerror
  7. Document.pointerLockElement
  Refer:https://www.w3.org/TR/pointerlock/

refer:
https://review.tizen.org/gerrit/#/c/293093
https://review.tizen.org/gerrit/#/c/301993/
https://review.tizen.org/gerrit/#/c/302015
https://review.tizen.org/gerrit/#/c/303532

Change-Id: I3a44d90854c895215ba30656d6e613551e207d49
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Provide ewk_settings_drag_drop_enabled_set api 24/310524/3
fang fengrong [Tue, 30 Apr 2024 08:25:12 +0000 (16:25 +0800)]
[M120 Migration][VD] Provide ewk_settings_drag_drop_enabled_set api

The patch is for the requirement:
Provide ewk setting api for text/image selection and using
mouse drag and drop.

1.Provide ewk_settings_drag_drop_enabled_set api for app,
to set enable drag and drop true or false;
2.Check the dragDropEnabled value before handle mouse drag,
When app set enable drag and drop, mouse drag can handle.

Default is enable drag and drop.

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

Change-Id: I2d6effdc2893a5f64c538d6c6eeaeb3cdf94020a
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Fix cookie can't be stored when process exit 19/310519/2
jiangyuwei [Tue, 30 Apr 2024 07:52:22 +0000 (15:52 +0800)]
[M120 Migration][VD] Fix cookie can't be stored when process exit

When process exit and launch again, cookie can't be load.

Change the way to get cookie path when network service enable.

In addition, flush local storage database and SQLite database to
commit all pending operations before process terminated.

References:
 - https://review.tizen.org/gerrit/300148/

Change-Id: I0997f05885a5772ada815fe6db6a71d5bc48ece7
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
12 months agofixup! "Fix errors thrown due to platform libxml2 version upgrade from 2.11.5 ->... 29/310629/3 submit/tizen/20240503.160016
Gajendra N [Fri, 3 May 2024 03:40:10 +0000 (09:10 +0530)]
fixup! "Fix errors thrown due to platform libxml2 version upgrade from 2.11.5 -> 2.12.5"

Original commit which enables system's libxml, causes crash on Xfinity and eManual app launch.
Enabling third_party/libxml and commit [1] combinedly fixes crash on TERMS, eManual
and Xfinity apps.

[1] 97af58e5047f29c097e63d926ffafa2246e6de3e

Change-Id: I36eafaf828ad295c84756ade5f637234adcc6ddc
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
12 months agoFixup![M120 Migration][VD] Support cursor for TV product 56/310456/2
fang fengrong [Mon, 29 Apr 2024 10:15:40 +0000 (18:15 +0800)]
Fixup![M120 Migration][VD] Support cursor for TV product

add the "kWebPNRPointer" on the end of the enum CursorType.

Change-Id: I47164f01e0acd0d412b03240dacad5924a831819
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[M120 Migration][VD] Supporting app custom UI for <select> tag 91/310491/2
fang fengrong [Thu, 25 Apr 2024 03:05:41 +0000 (11:05 +0800)]
[M120 Migration][VD] Supporting app custom UI for <select> tag

For <select> tag, the default UI is PC-like UI.
App can use custom UI instead of default UI.
The patch provide api and callback to app to create the UI by
themselves.

migrated from:
https://review.tizen.org/gerrit/#/c/290868

Change-Id: Ie2c3aa517d8c975f877d47b093735f7af73a4032
Signed-off-by: fang fengrong <fr.fang@samsung.com>
12 months ago[Chrome] Fix for crash on "Add to Chrome" in chrome web store 05/310605/2
Chandan Padhi [Thu, 2 May 2024 12:35:36 +0000 (18:05 +0530)]
[Chrome] Fix for crash on "Add to Chrome" in chrome web store

There's a browser crash when we click "Add to Chrome" for installing
extensions from chrome web store.

ActivationClient for some reason seems to be null for Chrome EL.
Adding a null check for it to fix this crash until we figure out
why it is null in the first place.

This commit also fixes a similar crash when we select the Print
option from context menu.

Change-Id: I68144ed9bc4c15adb2037f0538804d72f2d6828a
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
12 months agoAdd |should_show_after_init| in widget's params 32/310432/21
hyoputer [Mon, 29 Apr 2024 02:28:41 +0000 (11:28 +0900)]
Add |should_show_after_init| in widget's params

Add the parameter above to limit the part of
the patches [0] which affect Chrome to WRT and web apps.
This could prevent unexpected side effects such as
crashing when JS popup boxes [1] appear.

This patch is based on the patch [2].

[0]
fd9524e406896591489cbaf0d5c3608c98fdf002
38d9f1c827a067bfa3c04d01a73c61e425d51e58
251376038bd874752c4a9e3b5bf6bff912c63a08
b4e6d11ee5aae17c542d1943a14255a76415fcef

[1]
https://www.w3schools.com/js/js_popup.asp

[2]
9f5b5463761e55304ce82e47d4de16798aa1189f

Change-Id: If1803a5cccae56287fc5200407787b5481574dab

12 months agoDesktop build related fixes. 86/309686/4 submit/tizen/20240502.160016
venu.musham [Mon, 15 Apr 2024 10:31:44 +0000 (16:01 +0530)]
Desktop build related fixes.

fixes related to offscreen desktop build.

Change-Id: If03cd47fa5c233bd291d4fbd14680ef73000565b
Signed-off-by: venu.musham <venu.musham@samsung.com>
12 months ago[Chrome] Add stub implementation of SelectFileDialog for EFL 44/310544/3
Chandan Padhi [Tue, 30 Apr 2024 12:12:00 +0000 (17:42 +0530)]
[Chrome] Add stub implementation of SelectFileDialog for EFL

This commit adds a stub select file dialog to avoid crashes with
file select/chooser in Bookmarks, Extensions, Downloads, etc.

ui::SelectFileDialog::Create() always returned null as SelectFileDialog
implementation was missing for EFL that resulted in these crashes.

This commit also reverts [1] as the 'return' was added in SelectFileDialog
that was already invalid/garbage.

[1] 77ae934d32474ca1e5138aa751288ec687779923

Change-Id: Iee6cf97cf9b04781715ab42e5e6673e8536ee41d
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
12 months ago[M120 Migration] Change png image use zopfli encoding. 92/310492/2
zhaodan [Tue, 30 Apr 2024 03:23:20 +0000 (11:23 +0800)]
[M120 Migration] Change png image use zopfli encoding.

Now we have to apply new png images(zopfli png)
since it's good archiving efficiency(30%)
(VD don't have enough Flash Memory space)

This patch is migrated from:
https://review.tizen.org/gerrit/#/c/272540/

Change-Id: Ibe7fbd815ab826c9497e1132f8bc79b30ed23705
Signed-off-by: zhaodan <danys.zhao@samsung.com>
12 months ago[Chrome] Fix for crash during scroll 75/310575/1
Chandan Padhi [Thu, 2 May 2024 05:37:59 +0000 (11:07 +0530)]
[Chrome] Fix for crash during scroll

WebContentsViewAuraHelperEfl is not instantiated for Chrome
that results in crash while dereferencing |wcva_helper()|.

This commit adds null checks for |wcva_helper()| in
RWHVAuraCommonHelperEfl.

Change-Id: Ie596acd81654eb9e9fc1610bc48fa4d888293c2b
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
12 months ago[M120 Migration] Modify |GetSnapshot| function to support NUI 13/309613/4 submit/tizen/20240501.160015
Akshay Kanagali [Fri, 12 Apr 2024 13:14:00 +0000 (18:44 +0530)]
[M120 Migration] Modify |GetSnapshot| function to support NUI

This patch is Post Aura adaptation of
https://review.tizen.org/gerrit/c/272396

With this patch we are Redrawing and invoking
CompositorObserverEfl::NotifySwap() and setting tbm_surface_h
whenever EWebView::GetSnapshotAsync() is invoked.

References :
https://review.tizen.org/gerrit/300310/
https://review.tizen.org/gerrit/300951/

Change-Id: I3296833710cd2d933aef6a8b319383fa58b4b9fd
Signed-off-by: Akshay Kanagali <a.kanagali@partner.samsung.com>