platform/framework/web/chromium-efl.git
16 months ago[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API 84/289084/5
fr.fang [Tue, 28 Feb 2023 12:20:54 +0000 (20:20 +0800)]
[M108 Migration][HBBTV] Implement ewk_context_register_jsplugin_mime_types API

This is required to prevent the renderer from creating frames to handle JS
plugins mimetypes, if those mime types are supported by the renderer by default.

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

Change-Id: I4ffbcccac84b5dc0ec531fbbcf67de18bef9e569
Signed-off-by: fr.fang <fr.fang@samsung.com>
16 months agofixup! [M108 Migration] Enable video hole feature 94/288794/3
Venugopal S M [Mon, 27 Feb 2023 13:25:02 +0000 (18:55 +0530)]
fixup! [M108 Migration] Enable video hole feature

Call decode unset method in IDLE state.

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

Change-Id: Ice0d1ad64e65aca47275df01ad550c73748a22c6
Signed-off-by: wuxiaoliang <xliang.wu@samsung.com>
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
16 months agofixup! [M108 Aura Migration] Add media playback ewk api 96/289096/4
xiaofang [Wed, 1 Mar 2023 05:20:13 +0000 (13:20 +0800)]
fixup! [M108 Aura Migration] Add media playback ewk api

add ewk_view_stop_video impl

Change-Id: Ie02d39d39c43089b9a78c34b2696fde2816b7527
Signed-off-by: xiaofang <fang.xiao@samsung.com>
16 months agofixup! fixup! Enable content shell with aura for desktop 95/289095/2
Gajendra N [Wed, 1 Mar 2023 04:57:36 +0000 (10:27 +0530)]
fixup! fixup! Enable content shell with aura for desktop

The fixup commit 6ec053 caused linker error on desktop build.
It seems for deskop version, tls_model type 'initial-exec' is
suitable. This patch makes necessary changes to handle both profiles.

Change-Id: I2de65051f01a2c9d9444450fa0a5bb301ea85a71
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
16 months ago[M108 Migration] Add an ewk api logs for debugging 50/289050/3
jiangyuwei [Tue, 28 Feb 2023 03:14:01 +0000 (11:14 +0800)]
[M108 Migration] Add an ewk api logs for debugging

Important and frequently used ewk api logs are lacking,
add logs for debugging.

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

Change-Id: I661b4cf68f037a96b5b60cf2e72567815f100ea4
Signed-off-by: jiangyuwei <yuwei.jiang@samsung.com>
16 months ago[WRTJS] Fix a gcc build error caused by function/class ambiguity 81/289081/4
Surya Kumar [Tue, 28 Feb 2023 11:09:39 +0000 (16:39 +0530)]
[WRTJS] Fix a gcc build error caused by function/class ambiguity

1. Existing function name had the same signature as a class's constructor
leading to gcc causing build break. Made changes to resolve
the confusion.
2. Added a missing function definition that otherwise made a class
incomplete.

Reference:
https://github.com/electron/electron/pull/36096/commits/e50ab4a4db4042cbc007cd8d832f61b9c8bc0449

Change-Id: I3e6c27b8bbb450ab3ac908b9c985153e73526ff0
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
16 months agofixup! Enable content shell with aura for desktop 79/289079/2
Gajendra N [Tue, 28 Feb 2023 09:49:32 +0000 (15:19 +0530)]
fixup! Enable content shell with aura for desktop

This patch reverts a change related to ThreadLocalStorage 'tls_model'
done in patch [1], as the change was causing error [2] when our
chromium-efl library is being loaded with dlopen from another library.

As per the comment description mentioned in file
third_party/blink/renderer/platform/heap/thread_local.h, it is suggested
to use "local-exec" type for Linux platform, hence reverting back to
original type, which avoids the error [2].

[1] https://review.tizen.org/gerrit/284216

[2] "cannot allocate memory in static tls block"

Change-Id: I683859fff133217eec91e285a09d9430e6c4d4e7
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
16 months agofixup! [M108 Migration][API] Bring up autofill 77/288777/5
Chandan Padhi [Wed, 22 Feb 2023 15:49:24 +0000 (21:19 +0530)]
fixup! [M108 Migration][API] Bring up autofill

This commit fixes webview crash at launch when autofill is enabled.

Reverts commit fe2ff5b.

Change-Id: I187180dd09bd1595e94a0b33d02fdf3299182938
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
16 months ago[M108 Migration][VD][HBBTV][API] Support DVB scheme for HBBTV 46/289046/2
fr.fang [Tue, 28 Feb 2023 01:15:08 +0000 (09:15 +0800)]
[M108 Migration][VD][HBBTV][API] Support DVB scheme for HBBTV

1.This CL implement api ewk_context_register_url_schemes_as_cors_enabled.
With this CL, WebEngine can parse dvb url host as CORS.
2.Remove WRT dependency of injected bundle, only HbbTV uses it.
3.Fix the loss of IPC message caused by multithreading.

This patch includes :
1) Added protection for NULL message in IPC.
   There was no exception handling for the NULL message
   in low memory situation.
2) Fix the issue the deleted message is used again.
   When multiple render process exit ,the message is deleted
   after it send to one render process.
   Copy the message before it is sent to render process.

References:
https://review.tizen.org/gerrit/#/c/251270/
https://review.tizen.org/gerrit/#/c/250990
https://review.tizen.org/gerrit/#/c/255829

Change-Id: Iaf0084a385649fda71d2c0856398b0c26458c919
Signed-off-by: fr.fang <fr.fang@samsung.com>
16 months ago[M108 Migration][WRTjs][VD] define lib_dir_path 63/289063/4
zhaosy [Tue, 28 Feb 2023 05:25:55 +0000 (13:25 +0800)]
[M108 Migration][WRTjs][VD] define lib_dir_path

lib_dir_path is not defined, so mount app is fail.

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

Change-Id: I2835bf83f2498615db3a5f728fd0979fca1225b1
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
16 months ago[M108 Migration] Implement ewk_settings_do_not_track_set() API 87/288887/3
Jie Zhang [Fri, 24 Feb 2023 05:44:45 +0000 (13:44 +0800)]
[M108 Migration] Implement ewk_settings_do_not_track_set() API

Set to add http head DNT(do not track).

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

Change-Id: Iee5403811413d091d53aa14b8ab4033ac576be0a
Signed-off-by: Jie Zhang <jie137.zhang@samsung.com>
16 months ago[M108 Migration] Selection & Context menu controller. 15/288515/4
v-saha [Fri, 17 Feb 2023 12:34:31 +0000 (18:04 +0530)]
[M108 Migration] Selection & Context menu controller.

This change migrates below fixes related to context menu/text selection.
1. Uses GetSelectedText in RWHVA.
2. Avoid hiding context menu during potrait to landscape and vice versa.
3. Do not restore context popup when in caret mode.

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

Change-Id: Iadc9cb3c5bb9948b867c24ba825e658260908a8c
Signed-off-by: v-saha <v.saha@samsung.com>
16 months agoDummy Implementation for EWK APIs 50/288950/12
feifei08.liu [Mon, 27 Feb 2023 02:03:46 +0000 (10:03 +0800)]
Dummy Implementation for EWK APIs

ewk_settings_mixed_contents_set
ewk_context_time_offset_set, ewk_context_timezone_offset_set
ewk_check_chromium_ready
ewk_view_run_mixed_content_confirm_callback_set
ewk_settings_mixed_contents_set
ewk_view_error_page_load_callback_set
ewk_view_add_item_to_back_forward_list
ewk_view_poweroff_suspend : empy implement, need check history
ewk_view_set_cursor_by_client
ewk_settings_ime_handle_key_event_enabled_get/set

Change-Id: Ib75af16280c2389be7c22cd9b84e637f54d30d3c
Signed-off-by: feifei08.liu <feifei08.liu@samsung.com>
16 months ago[M108 Aura Migration] Add media playback ewk api 51/288951/6
xiaofang [Mon, 27 Feb 2023 02:19:08 +0000 (10:19 +0800)]
[M108 Aura Migration] Add media playback ewk api

ewk api:
ewk_view_stop_video
ewk_view_broadcast_decoder_set
ewk_view_media_device_list_get
ewk_settings_default_audio_input_device_set
ewk_view_is_video_playing

Refer:
https://review.tizen.org/gerrit/#/c/270947/
https://review.tizen.org/gerrit/#/c/271619/
https://review.tizen.org/gerrit/#/c/284880/
https://review.tizen.org/gerrit/#/c/284853/
https://review.tizen.org/gerrit/#/c/276711/
https://review.tizen.org/gerrit/#/c/270211/

Change-Id: I406d049dca2b07ae4f4757c6412f0ceff9509e81
Signed-off-by: xiaofang <fang.xiao@samsung.com>
16 months agofixup! [M108 Migration][clang] set default value for _clang variable 09/289009/1
Gajendra N [Mon, 27 Feb 2023 08:24:52 +0000 (13:54 +0530)]
fixup! [M108 Migration][clang] set default value for _clang variable

This commit enables clang build by default for both VD QB and SR QB.

Signed-off-by: Gajendra N <gajendra.n@samsung.com>
Change-Id: I481464121e0d500829b714f94920db5000e25523

16 months agofixup! [M108 Migration][MM] Migrate Tbm feature for Tizen Multimedia 81/288681/4
Suhaspoornachandra [Tue, 21 Feb 2023 09:20:12 +0000 (14:50 +0530)]
fixup! [M108 Migration][MM] Migrate Tbm feature for Tizen Multimedia

Currently |DestroyMediaPacket| function is called twice(|OnTbmBufferExhausted|
and |GLImageEGL|) per each media packet. Changed to call |DestroyMediaPacket|
function only once per each packet.

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

Change-Id: Ife888684dca419a0d9629e1c39594ce1c71238d1
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
16 months ago[M108 Migration][Native Control] JsPopup Migration & Bring up 51/288051/9
Bakka Uday Kiran [Thu, 23 Feb 2023 09:21:28 +0000 (14:51 +0530)]
[M108 Migration][Native Control] JsPopup Migration & Bring up

This patch brings up popup functionality for JavaScript APIs
like window.alert(), window.prompt() etc.

Reference:
https://review.tizen.org/gerrit/c/278533
https://review.tizen.org/gerrit/c/271926

Change-Id: I9f50d76b8f5d8b309eb1749f6cb18a3e2ffccc4c
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months agoAdd dummy implementation for ewk_set_version_policy API 70/288970/3
Gajendra N [Mon, 27 Feb 2023 05:32:46 +0000 (11:02 +0530)]
Add dummy implementation for ewk_set_version_policy API

ewk_set_version_policy api comes from UWE feature. Since UWE patch is
not yet applied to beta branch due to some error, this patch applies
dummy impl for the above api to succeed 7.5 VD QB build.

Change-Id: I2b6cef8e87e3e480a3ae8f49847e8743d9224aed
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
16 months ago[M108 Migration][VD] Provide ewk_settings_clipboard_enabled_set api 54/288654/5
shurong.chen [Tue, 21 Feb 2023 03:07:53 +0000 (11:07 +0800)]
[M108 Migration][VD] Provide ewk_settings_clipboard_enabled_set api

The patch is for the requirement:
Support ewk setting api for handle ctrl+x/c/v(clipboard).
When clipboard enabled, text input can paste from clipboard.

This patch is migrated from M94 Aura:
https://review.tizen.org/gerrit/#/c/282689/

Change-Id: I2de1e97720968c27d5271e63c2afba3935ec30e9
Signed-off-by: shurong.chen <shurong.chen@samsung.com>
16 months ago[M108 Migration][ContextPopup] Bring up Context Popup 2/2 18/288618/8
Bakka Uday Kiran [Mon, 20 Feb 2023 11:12:11 +0000 (16:42 +0530)]
[M108 Migration][ContextPopup] Bring up Context Popup 2/2

This patch migrates changes related to context popup bringup and
Also handles,

1. Displaying context menu(text_selection) when touchevent is consumed.
2. Simplify logic of text selection.
3. Correcting context menu Show/Hide behaviour by maintaining state
   machine.
4. Fix for scrolling not smooth when context menu is shown.
5. Remove focusing codes in ContextMenuControllerEfl.
6. Check the status of context menu just before display.
7. Adjust the position of context menu for text selection

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

Change-Id: I6d66c9c0ea4f96c602378515434af23a62ca37f6
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Add empty impl for tree api to avoid compile error. 43/288943/3
qiang.ji [Mon, 27 Feb 2023 01:16:18 +0000 (09:16 +0800)]
[M108 Migration] Add empty impl for tree api to avoid compile error.

refs:
ewk_view_clear_tiles_on_hide_enabled_set   https://review.tizen.org/gerrit/#/c/279483/
ewk_view_edge_scroll_by https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/271182/
ewk_view_tile_cover_area_multiplier_set  https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/271942/

Change-Id: Iaf207739e1029a4c6f87637feb927ff6293a19b9
Signed-off-by: qiang.ji <qiang.ji@samsung.com>
16 months ago[M108 Migration][VD] Fix IME focus issue 72/288872/2
liuxd [Fri, 24 Feb 2023 01:39:34 +0000 (09:39 +0800)]
[M108 Migration][VD] Fix IME focus issue

1. Add WebView focus and Widget show state check
2. Fix WebPage auto focus to input,ime have not focus in issue.

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

Change-Id: I7c55cf139766af540119d4633a952816e264032d
Signed-off-by: liuxd <xd123.liu@samsung.com>
16 months ago[M108 Migration] Fix WRTJS build errors 08/288908/4
Surya Kumar [Fri, 24 Feb 2023 08:30:23 +0000 (14:00 +0530)]
[M108 Migration] Fix WRTJS build errors

This patch adds necessary changes to resolve dependency
errors occurring during various wrtjs profile builds.

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

Change-Id: I2a00b44c4d9b4d4b22d4c94462b3197ce1adf876
Signed-off-by: Surya Kumar <surya.kumar7@samsung.com>
16 months ago[M108 Migration] Support Url conversion on the multi process model 00/288900/5
fang fengrong [Sat, 25 Feb 2023 07:32:47 +0000 (15:32 +0800)]
[M108 Migration] Support Url conversion on the multi process model

1. Instantiate WrtDynamicPlugin for browser process on multi process.
2. Revise WrtUrlRequestInterceptor.
   Added to Support app scheme.
   If parsed URL is not file scheme, the request will be redirected,
not handled directly in WrtUrlRequestInterceptor. The parsed URL will
be exposed to the content side(WebApp) after redirection.
3. Cleanup WrtWidget related codes
Remove duplicated codes and unify codes for TV product and public in
a single interface
4. Remove URLRequestInterceptingJobFactory
5.Fix the crash in EWebContext::SetWidgetInfo
  There is a crash when EWebContext::SetWidgetInfo is invoked
without injected bundle in the single process mode.

References:
https://review.tizen.org/gerrit/#/c/247502/
https://review.tizen.org/gerrit/#/c/250497/

Change-Id: Id057f3c74e4f4168515b15d9a0509a17bde96479
Signed-off-by: fang fengrong <fr.fang@samsung.com>
16 months agoRemove unutilized code 50/288750/3
Koyyani Maheswari [Wed, 22 Feb 2023 05:33:52 +0000 (11:03 +0530)]
Remove unutilized code

Below features are not used. Respective code is removed.
- tizen_multimedia_eme_support
- tizen_multimedia_support

Reference :
https://review.tizen.org/gerrit/279396/
https://review.tizen.org/gerrit/279317/

Change-Id: I989a3873cfe785afcff1f7172419c0646510e95c
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
16 months ago[M108 Migration][API] Provide ewk_context_tizen_app_version_set api 09/288609/5
Jie Zhang [Mon, 20 Feb 2023 07:27:19 +0000 (15:27 +0800)]
[M108 Migration][API] Provide ewk_context_tizen_app_version_set api

This patch is for the requirement:
Provide ewk setting api for widget version which be used for html5 video.

1.Provide ewk_context_tizen_app_version_set api for HBBTV,
  to set the value of widget version.
2.This api must be used after ewk_context_tizen_app_id_set or
  ewk_send_widget_info beacuse need drop the process privillages
  and set dynamic plugin.

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

Change-Id: I67f644d3455af3d1ac939bbe316d64ee347a9911
Signed-off-by: Jie Zhang <jie137.zhang@samsung.com>
16 months ago[M108 Migration] Bringup Drag and Drop (DnD) 97/288097/10
Bakka Uday Kiran [Fri, 10 Feb 2023 09:32:59 +0000 (15:02 +0530)]
[M108 Migration] Bringup Drag and Drop (DnD)

This patch brings up DnD feature to M108.
Between M85 and M94, due to upstream refactoring,
the DragEnter notification IPC call is done through
mojom::blink::PageBroadcast (WebViewImpl).

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

Change-Id: I9aeb92ad80485f28434065c3cd582e9468497991
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months agofixup! [MM] Implement MMPlayer(CAPI) path to support HBBTV. 95/288795/3
Venugopal S M [Mon, 20 Feb 2023 13:04:15 +0000 (18:34 +0530)]
fixup! [MM] Implement MMPlayer(CAPI) path to support HBBTV.

Notify the completion of playback(EOS) to the pipeline

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

Change-Id: I74172a7d406d64b8c0868443acc02428ce040621
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
16 months ago[M108 Migration] Remove EWK_BRINGUP from ewk_settings.cc 74/288674/3
ayush.k123 [Tue, 21 Feb 2023 09:10:32 +0000 (14:40 +0530)]
[M108 Migration] Remove EWK_BRINGUP from ewk_settings.cc

This patch removes EWK_BRINGUP and unused code from ewk_settings.cc.

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

Change-Id: I7950338a8fb06b8d07e82f991d81f72185227cec
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Support encoding property for WRT config.xml 10/288710/4
ayush.k123 [Wed, 22 Feb 2023 03:08:59 +0000 (08:38 +0530)]
[M108 Migration] Support encoding property for WRT config.xml

ewk_settings_default_text_encoding_name_set() was not affected
due to |usesEncodingDetector| in TextResourceDecoder.
If |defaultTextEncodingName| is changed by ewk_settings API,
|usesEncodingDetector| will be disabled.

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

Change-Id: Ib1295cd52b07cdf5fa6284e706d46a70d10448c8
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months agoCompiler error fixes for supporting VD QB 83/288783/2
uzair [Thu, 23 Feb 2023 03:58:56 +0000 (09:28 +0530)]
Compiler error fixes for supporting VD QB

Below change fixes compiler errors by partially migrating
[1] and [2] for supporting VD QB.

[1] https://review.tizen.org/gerrit/c/271760
[2] https://review.tizen.org/gerrit/c/271757

Change-Id: Iabea727eefc8c7e03fa01a6f529f9b1ed613b931
Signed-off-by: uzair <uzair.jaleel@samsung.com>
16 months ago[M108 Migration][HBBTV] Implement new ewk context api 35/288735/3
fr.fang [Wed, 22 Feb 2023 01:24:18 +0000 (09:24 +0800)]
[M108 Migration][HBBTV] Implement new ewk context api

Support incognito mode in Injected bundle, implement the api of
ewk_context_new_with_injected_bundle_path_in_incognito_mode
for the request from hbbtv.

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

Change-Id: I4f5153f0a88b2fbd655f8a597ba8d78955b122d4
Signed-off-by: fr.fang <fr.fang@samsung.com>
16 months agoDo not include chromium internal headers in ewk header 84/288784/3
yh106.jung [Thu, 23 Feb 2023 03:29:13 +0000 (19:29 -0800)]
Do not include chromium internal headers in ewk header

This patch does not include build_config.h to ewk headers, but to ewk
sources in order to resolve build breaks that occur in modules that
reference chromium-efl.

Change-Id: Ic683dfce4c3e516a00121e005bdf1bb34516171f
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
16 months agoShorten NotifySwap path for offscreen rendering 52/288452/8
Chandan Padhi [Thu, 16 Feb 2023 15:33:24 +0000 (21:03 +0530)]
Shorten NotifySwap path for offscreen rendering

This commit shortens NotifySwap path by removing some
of the changes in upstream code.

w/o patch:
SkiaOutputSurfaceImpl->Display(OutputSurfaceClient)->
RootCompositorFrameSinkImpl(DisplayClient)->FrameSinkManagerImpl->
HostFrameSinkManager(FrameSinkManagerClient)->
DelegatedFrameHost(HostFrameSinkClient)->
DelegatedFrameHostClientAura(DelegatedFrameHostClient)->
RenderWidgetHostViewAura->RWHVAuraOffscreenHelperEfl

with patch:
SkiaOutputSurfaceImpl->Display(OutputSurfaceClient)->
RootCompositorFrameSinkImpl(DisplayClient)->
HostDisplayClient(mojom::DisplayClient)->Compositor->
CompositorObserverEfl(CompositorObserver)->
RWHVAuraOffscreenHelperEfl

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

Change-Id: I5dbfad3a6bb8460804045c6a8b66bae1f74130ac
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
16 months ago[M108 Migration][VD] Avoid pending frame counter becoming negative 44/288644/2
lizhifan [Tue, 21 Feb 2023 02:38:15 +0000 (10:38 +0800)]
[M108 Migration][VD] Avoid pending frame counter becoming negative

There should be only one frame rendering at one time,
this counter help scheduler accomplish this task.

But sometimes this counter could be notified to decrease
more times than it should be, so it becomes negative,
then scheduler is not working properly,
the FPS will go sky high.

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

Change-Id: Icb7ef4ae0c206a8764581cccb078bb57bbc0c432
Signed-off-by: lizhifan <lizhi.fan@samsung.com>
16 months agoFix multiwindow event handling issue 23/288723/3
Gajendra N [Wed, 22 Feb 2023 05:41:09 +0000 (11:11 +0530)]
Fix multiwindow event handling issue

ParentWindowWithContext is used to maintain hierarchy of aura windows, however
it is not suitable for offscreen rendering mode where Native Window is not yet
available at the ozone layer during child aura window creation in case of
'CreateNewWindow'. Enabling ParentWindowWithContext causes event handling issue
during multiple windows (tabs) scenario, hence it disabling for offscreen case.

Change-Id: Iae0f471768b498b1dc1eff5e1e1d15b80f356834
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
16 months ago[M108 Migration][WCS] Bringup contents magnifier 83/288683/4
ayush.k123 [Tue, 21 Feb 2023 09:34:22 +0000 (15:04 +0530)]
[M108 Migration][WCS] Bringup contents magnifier

This patch brings up contents magnifier.

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

Change-Id: Ib4dcd1c5d22083c1a601f201989ce3b66eb262f4
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Add "custom,scroll,begin","custom,scroll,end" support 08/288708/4
ayush.k123 [Wed, 22 Feb 2023 02:45:01 +0000 (08:15 +0530)]
[M108 Migration] Add "custom,scroll,begin","custom,scroll,end" support

Handles and context menu should be temporarily hidden durnig scrolling.
But specific applications like email-app uses their own scrolling
mechanism within chromium-efl does not know about this happening.
This breaks chromium-EFL behaviour.

To meet these requirements email-app provided smart callbacks to
notify engine that custom scrolling is started and finished.

The patch is a counterpart of above smart callbacks.

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

Change-Id: I5ab6d978b50b4e9ed4302ad28fcc65f1c248453b
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Add Overscroll related callbacks & Bringup Edge Effect feature 63/288663/3
ayush.k123 [Mon, 20 Feb 2023 04:26:12 +0000 (09:56 +0530)]
[M108 Migration] Add Overscroll related callbacks & Bringup Edge Effect feature

This patch adds overscroll related callbacks,
- overscrolled,left
- overscrolled,right
- overscrolled,top
- overscrolled,bottom

They will be invoked when overscroll occurs for specific element.

Edge Effect is a glow like effect shown when webpage is overscrolled
horizontally or vertically to give an indication to user that the webpage
contents end at that point. Browser is notified with 'DidOverscroll' and
'DidUpdateMainFrameLayout' to keep track of overscroll and contents size
changes.

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

Change-Id: I2fcdfd64c68619705f695f6253b00709d7ea903b
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][MM] MediaSourceExperimental experimental feature 12/288612/2
Venugopal S M [Thu, 9 Jun 2022 13:53:40 +0000 (19:23 +0530)]
[M108 Migration][MM] MediaSourceExperimental experimental feature

Enables TrackDefaultList that SourceBuffer may consult.
It causes MSE webTCT failure.

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

Change-Id: Ic93e9656632e7cc6b920524ac74a620b1db0e471
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
16 months ago[M108 Migration][MM] Handle PlaybackRate. 13/288613/2
Venugopal S M [Tue, 19 Jul 2022 01:10:35 +0000 (18:10 -0700)]
[M108 Migration][MM] Handle PlaybackRate.

- Enable call to setPlaybackRate
- Delay setting playback rate if player is not prepared(HBBTV)

Reference:
https://review.tizen.org/gerrit/278307
https://review.tizen.org/gerrit/278434
https://review.tizen.org/gerrit/281298
https://review.tizen.org/gerrit/288027

Change-Id: Ib82d363fb0c5f8e585a10967a3d913cd2eb181d3
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
16 months ago[M108 Migration][clang] set default value for _clang variable 70/288670/2
Chandan Padhi [Tue, 21 Feb 2023 09:04:27 +0000 (14:34 +0530)]
[M108 Migration][clang] set default value for _clang variable

This commit enables clang build by default for VD QB.

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

Change-Id: I5b5932598d2f3235afefb04a5e62b9fd3f268395
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
16 months ago[M108 Migration][MM] Handle BufferingState for playback 14/288614/2
Sun-woo Nam [Fri, 3 Jun 2022 02:10:48 +0000 (19:10 -0700)]
[M108 Migration][MM] Handle BufferingState for playback

- Fix the issue that time is not changed when video is playing.
- Ignore "underrun" for changing ready state.

Reference:
https://review.tizen.org/gerrit/275855
https://review.tizen.org/gerrit/284178

Change-Id: I57386011655b774f7038685801a6a8622a293c26
Signed-off-by: Sun-woo Nam <sunny.nam@samsung.com>
16 months ago[M108 Migration][VD] Support device 02/288602/3
liuxd [Mon, 20 Feb 2023 07:44:46 +0000 (15:44 +0800)]
[M108 Migration][VD] Support device

1. Allow to show IME by the Enter key in RC device
For TV profile, to support the new requirement that allow to show IME
by the Enter key in Remote Control device.

Now add a parameter in web keyboard event to mark if the key event is from RC;
and use "is_from_rc" and "windows_key_code == ui::VKEY_RETURN" to distinguish
the Enter key in Remote Control device.

Migrated from M94_aura:
https://review.tizen.org/gerrit/#/c/281776

2.Support device name property in keyboard event

There is a requirement from HotelTV product team to support device name
property in keyboard event:
Some 3rd-party want to distinguish by device name when key event fired
between devices.

Refer:
https://review.tizen.org/gerrit/#/c/+/282276

Signed-off-by: liuxd <xd123.liu@samsung.com>
Change-Id: I05d8e28afe2b12ccf1d281c7634bab380a0e5b90

16 months ago[M108 Migration] Add "touch,focus" in ewk_settings_extra_feature_set/get 61/288661/3
ayush.k123 [Tue, 21 Feb 2023 03:59:03 +0000 (09:29 +0530)]
[M108 Migration] Add "touch,focus" in ewk_settings_extra_feature_set/get

This patch enables the capturing of touch and focus activities of the
user when user touches on screen.

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

Change-Id: I09131483b3adef94fa2efea209586034ff7db232
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][ContextPopup] Bring up Context Popup 1/2 00/288200/11
b.kiran [Wed, 15 Feb 2023 11:27:00 +0000 (16:57 +0530)]
[M108 Migration][ContextPopup] Bring up Context Popup 1/2

This patch migrates changes related to context popup bringup and
refactoring. Also handles,
1. Implementation of SelectClosestWord.
2. Implementation of CurrentSelectionRect.
3. Replacement of legacy IPCs to mojo used for context menu,
   text selection.

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

Change-Id: If89a3c8ef56bee7dd7db399f674a209d037746c7
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[WRTjs] Enable WRTjs 32/288432/3
SangYong Park [Mon, 16 Jan 2023 02:51:09 +0000 (11:51 +0900)]
[WRTjs] Enable WRTjs

. electron v22.0.0
  + node modules : @types/node, @types/webpack-env, buffer, husky, process,
                   timers-browserify, ts-loader, typescript, webpack,
                   webpack-cli, wrapper-webpack-plugin
  + electron.d.ts : type definitions for electron
. node.js v16.17.1
  + electron's patches
  - benchmark, doc, test, tools/node_modules
  - some deps (brotli, corepack, googletest, icu-small, ngtcp2, npm, openssl, v8, zlib)
. wrt
  : from tizen_7.0 branch (7ecb2e77d908b23a61844e489decd3f15e036dea)
    + aura enabling

Change-Id: I44c715bff439969c34ec6f55f43c81a0bab92894
Signed-off-by: SangYong Park <sy302.park@samsung.com>
16 months ago[M108 Migration] Bring up Selection Controller 06/288206/7
v-saha [Thu, 9 Feb 2023 16:00:12 +0000 (21:30 +0530)]
[M108 Migration] Bring up Selection Controller

1. Adjusting selection handle's coordinates to current
orientation for mouse move and other changes.
2. Selected Text shouldn't be removed when H/W back button is pressed.
3. Adding ewk_settings_extra_feature_(set|get).
4. Use LongPressStarted as a reason of selection change after long press.

References:
https://review.tizen.org/gerrit/281503
https://review.tizen.org/gerrit/283776

Change-Id: I865c46a8044cd430bd9d6a982f935e2724594da6
Signed-off-by: v-saha <v.saha@samsung.com>
16 months ago[M108 Migration][VD] Hybrid support use evas RGBA 47/288647/3
qiang.ji [Sun, 29 Nov 2020 05:48:58 +0000 (13:48 +0800)]
[M108 Migration][VD] Hybrid support use evas RGBA

1.Set default font familiy to SamsungOneUI
2. Web Terms need to show app contents behind one evas obj, now
evas set the color format RGB, need to change it to RGBA, to
support alpha.

From Tizen3.0 chromium-efl, Opaque RGB surface has been used
to fix garbage issue.It was a temporary fix and seems to have
been resolved now.

Now some wrt app use RGBA mode show transparent background
have black issue, so need to reset the mode to RGB when it
is the wrt app, hybrid app use ewk function to set app type
so judge it to set it use RGBA mode.

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

Change-Id: I10cdf5aaaf3e079362821615bd5397695aa49761
Signed-off-by: qiang.ji <qiang.ji@samsung.com>
16 months ago[M108 Migration] Handle settings in WebPreferences and WebViewImpl 26/288426/6
Bakka Uday Kiran [Thu, 16 Feb 2023 07:01:52 +0000 (12:31 +0530)]
[M108 Migration] Handle settings in WebPreferences and WebViewImpl

This patch handled settings in WebPreferences and
WebViewImpl

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

Change-Id: I2879dec16b3a7dc2490ac2cf63d6659aa2dda1ad
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Patches related to focusable or clickable nodes and tap highlights 59/288559/3
ayush.k123 [Mon, 20 Feb 2023 03:22:28 +0000 (08:52 +0530)]
[M108 Migration] Patches related to focusable or clickable nodes and tap highlights

Patch adds below features:
  - Skip chromium default tap highlight style for HTMLElement
  - Add tap highlight to focusable or clickable node
  - Clear active and hover state before handle tap event
  - Do not show tap highlight for document node

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

Change-Id: I8240fab2d8f34eccecbdef1c50c0fa7617d7fc23
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Exit fullscreen when the app is suspended. 27/288427/4
Bakka Uday Kiran [Thu, 16 Feb 2023 07:27:31 +0000 (12:57 +0530)]
[M108 Migration] Exit fullscreen when the app is suspended.

This patch exits from fullscreen mode when the app
is suspended.

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

Change-Id: I5b155bd8f01dcd2c766f7f95d865f42a0d45fb6c
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration][MM] Show permission pop-up to access IO device. 82/287482/6
Koyyani Maheswari [Mon, 30 Jan 2023 12:59:15 +0000 (18:29 +0530)]
[M108 Migration][MM] Show permission pop-up to access IO device.

1) Permission pop-up to access IO device.
2) Fix usage of public ewk api for media permission.

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

Change-Id: I8aa2aed68c0dc4f0c94dd0b5e02e6aa42d8d6d01
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
16 months ago[M108 Migration][VD] Support all TV keys 61/288561/2
shurong.chen [Fri, 17 Feb 2023 07:45:00 +0000 (15:45 +0800)]
[M108 Migration][VD] Support all TV keys

refer:
[M94 AURA][VD] Support all TV keys
https://review.tizen.org/gerrit/#/c/279339/

[M94 Aura Migration][VD] Support XF86LFDSet XF86LFDUnset and XF86LFDScreenLock key
https://review.tizen.org/gerrit/#/c/285597

[M94 Aura Migration][VD] Support KEY_GAMEPAD_HOMEKEY key
https://review.tizen.org/gerrit/#/c/282778/

Change-Id: I6fdbc2e9553ab52bbe9a99b3497309aa30ae6494
Signed-off-by: shurong.chen <shurong.chen@samsung.com>
16 months ago[M108 Migration][VD] Change default certificate path for ubrowser. 79/288579/2
jingjieli [Mon, 20 Feb 2023 06:16:27 +0000 (14:16 +0800)]
[M108 Migration][VD] Change default certificate path for ubrowser.

VD Security part request certificate user change certificate path.

Migrate patch from M94 AURA:
https://review.tizen.org/gerrit/#/c/279390/

Change-Id: I8c525905be0b59ad13b9174f968c22a6bbed771d
Signed-off-by: jingjieli <jingjie.li@samsung.com>
16 months ago[M108 Migration] Remove EWK_BRINGUP from ewk_view_scroll_by code 14/288514/4
ayush.k123 [Fri, 17 Feb 2023 05:52:49 +0000 (11:22 +0530)]
[M108 Migration] Remove EWK_BRINGUP from ewk_view_scroll_by code

This patch sets scroll offset via mojo connection instead of legacy ipc.

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

Change-Id: Ib2607477ab3b4bcc4f2b8524349803ada5661f76
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][Text Selection] Selection handles & Caret Selection 57/287957/8
v-saha [Mon, 13 Feb 2023 17:44:37 +0000 (23:14 +0530)]
[M108 Migration][Text Selection] Selection handles & Caret Selection

On longpress handles are to be displayed, migrate the handler
and caret related patches.

Expose WebNode::is_text_node in ContextMenuParameters,
add is_caret_mode_forced_ to selection controller.

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

Change-Id: I8450c9c91745f7000a9b1395ff6999aca878ba05
Signed-off-by: v-saha <v.saha@samsung.com>
16 months ago[M108 Migration] Support a11y tree generation for web browser on TV. 30/288430/6
Bakka Uday Kiran [Thu, 16 Feb 2023 09:12:24 +0000 (14:42 +0530)]
[M108 Migration] Support a11y tree generation for web browser on TV.

Currently a11y frame dump using the command [1] doesn't return the a11y
tree of the loaded web page. The reason we don't attach the root evas
object with atk plug of platform. This change enables the same.

[1] /usr/bin/at_spi2_tool -d org.tizen.browser

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

Change-Id: Ib08e8479dfd056ee60e30c47be278e25f56139d2
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Export more symbol in chromium-ewk.filter to fix HBBTV launch fail 79/288479/2
zhao dan [Fri, 17 Feb 2023 05:51:36 +0000 (13:51 +0800)]
[M108 Migration] Export more symbol in chromium-ewk.filter to fix HBBTV launch fail

Some V8_EXPORT interface have been used from HBBTV side, because without
dynamic shared symbol, HBBTV render process can not launch.

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

Change-Id: I30bbf32662c55fe6b205c627adcc51930b2ae980
Signed-off-by: zhao dan <danys.zhao@samsung.com>
16 months ago[M108 Migration] Implement ewk_view_favicon_get() API 93/288493/2
Jie Zhang [Fri, 17 Feb 2023 07:19:22 +0000 (15:19 +0800)]
[M108 Migration] Implement ewk_view_favicon_get() API

This API get the favorite-icon in current webview.

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

Change-Id: Ib293a7636214b39a4cdc111e8a16bd09d66677bd
Signed-off-by: Jie Zhang <jie137.zhang@samsung.com>
16 months ago[M108 Migration]Use container's height to calculate margin top/bottom 28/288428/4
Bakka Uday Kiran [Thu, 16 Feb 2023 07:55:09 +0000 (13:25 +0530)]
[M108 Migration]Use container's height to calculate margin top/bottom

Some WebKit-based apps expect vertical margins to be calculated
using container's height rather than its width (as stated in
specification). To provide correct layout of those apps, we
allow for non-compliant calculations in compatibility
mode (to be implemented).

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

Change-Id: I5bffc230b821939c0e89bbb33c7758040ca7bfe9
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Enable NetworkServiceInProcess for Tizen 06/288506/2
ayush.k123 [Fri, 17 Feb 2023 06:41:04 +0000 (12:11 +0530)]
[M108 Migration] Enable NetworkServiceInProcess for Tizen

Below change enable network service to run as in-process for Tizen

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

Change-Id: Iabafafcf1d05a13dde85e4777d02d6b151531976
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Use snprintf in place of sprintf 07/288507/3
ayush.k123 [Fri, 17 Feb 2023 06:50:55 +0000 (12:20 +0530)]
[M108 Migration] Use snprintf in place of sprintf

For better security, VD recommends using snprintf in place of sprintf.

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

Change-Id: If615daf8f65d95f203ed856d8df4a1c87c9a8a7b
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][Accessibility] Support atk in select picker 78/288478/3
ayush.k123 [Fri, 17 Feb 2023 03:02:59 +0000 (08:32 +0530)]
[M108 Migration][Accessibility] Support atk in select picker

This patch is for supporting atk in select picker.

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

Change-Id: I4b8f83a18b6963a5ff8bc6c938d0b3bf2a3f562e
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Add ewk_intercept_request_view_get() 76/288476/3
ayush.k123 [Fri, 17 Feb 2023 03:49:05 +0000 (09:19 +0530)]
[M108 Migration] Add ewk_intercept_request_view_get()

This patch adds a new internal API that provides ewk view object
requesting the resource.

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

Change-Id: I7c7cc588c5013d6136453d7921625b914d6ae99f
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][VD][Accessibility] Support ewk_settings_spatial_navigation_enabled_set 81/288481/2
xiafeng [Sat, 18 Feb 2023 06:07:57 +0000 (14:07 +0800)]
[M108 Migration][VD][Accessibility] Support ewk_settings_spatial_navigation_enabled_set

Support ewk_settings_spatial_navigation_enabled_set.

Related M94 Aura patch:
https://review.tizen.org/gerrit/279760/

Change-Id: Ic8b97b41b89d2a3e1766c65636f0ce743dc85d2d
Signed-off-by: xiafeng <feng.xia@samsung.com>
16 months ago[M108 Migration] Enable ATK_STATE_SHOWING for TV platform 29/288429/3
Bakka Uday Kiran [Thu, 16 Feb 2023 08:10:27 +0000 (13:40 +0530)]
[M108 Migration] Enable ATK_STATE_SHOWING for TV platform

Below change enables setting ATK_STATE_SHOWING state for accessibility
nodes on TV platform.

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

Change-Id: I6fb7ec1d4a28d5b3f65bdcda937691f5af24f8d9
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Remove EWK_BRINGUP from ewk APIs and HttpUserAgentSettingsEfl 86/288386/2
ayush.k123 [Thu, 16 Feb 2023 05:00:11 +0000 (10:30 +0530)]
[M108 Migration] Remove EWK_BRINGUP from ewk APIs and HttpUserAgentSettingsEfl

This patch migrates the following changes:
1. Remove EWK_BRINGUP from HttpUserAgentSettingsEfl
2. Remove EWK_BRINGUP for ewk_view_plain_text_get()
3. Remove EWK_BRINGUP from ewk_hit_test_private.cc

It also cleans up code in eweb_view.h

Reference:
https://review.tizen.org/gerrit/283824
https://review.tizen.org/gerrit/282993
https://review.tizen.org/gerrit/281104
https://review.tizen.org/gerrit/280592

Change-Id: If85b186ec8dc30064fd008e74c897064b03fff17
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][NativeControl] Select Picker 75/288175/9
ayush.k123 [Fri, 10 Feb 2023 03:12:20 +0000 (08:42 +0530)]
[M108 Migration][NativeControl] Select Picker

This CL
1. Includes changes required for select picker feature and
its refactoring.
2. Fixes Backward/Foward buttons in SelectPicker TC.
3. Makes changes to handle popup resize in a better way.
4. Segregates SelectPicker into ewk independant base classes
5. Removes Listbox rendering for Multiple Select for TV

Reference:
https://review.tizen.org/gerrit/280120/
https://review.tizen.org/gerrit/280208/
https://review.tizen.org/gerrit/280225/
https://review.tizen.org/gerrit/280633/
https://review.tizen.org/gerrit/281109/

Change-Id: I104484fe74197e104537c01f53b57dc9e65546e3
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Apply device scale factor 39/287839/7
v-saha [Tue, 7 Feb 2023 05:25:22 +0000 (10:55 +0530)]
[M108 Migration] Apply device scale factor

Fix for web page incorrectly displayed on mobile by applying correct
device scale factor.

Reference:
https://review.tizen.org/gerrit/274908
https://review.tizen.org/gerrit/275246

Change-Id: I2aa127a3d5577dcd74507d8fa9e705e88ccb04c8
Signed-off-by: v-saha <v.saha@samsung.com>
16 months agofixup! [M108 Migration] Enable proper functionality for ewk_policy_decision_* APIs. 13/288413/2
ayush.k123 [Thu, 16 Feb 2023 07:30:09 +0000 (13:00 +0530)]
fixup! [M108 Migration] Enable proper functionality for ewk_policy_decision_* APIs.

This change fixes ewk_policy_decision_navigation_type_get_p tct failure by
making changes according to upstream change.

https://chromium-review.googlesource.com/c/3887581/8/third_party/blink/public/web/web_navigation_type.h

Change-Id: Ia1d105c83c5677971889817933aa59221210f9bf
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Implement ewk_view_main_frame_scrollbar_visible_set 70/288370/4
ayush.k123 [Wed, 15 Feb 2023 05:58:50 +0000 (11:28 +0530)]
[M108 Migration] Implement ewk_view_main_frame_scrollbar_visible_set

This patch implements ewk_view_main_frame_scrollbar_visible_set
which is at least required by HbbTV. It also implements
ewk_view_main_frame_scrollbar_visible_get and adds a
unit test utc_blink_ewk_view_main_frame_scrollbar_visible_set.

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

Change-Id: I05a4f74e74d2305975d2cca81d246036c61987e8
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months agoPost tasks to proper threads 01/288401/3
yh106.jung [Thu, 16 Feb 2023 05:58:41 +0000 (21:58 -0800)]
Post tasks to proper threads

This patch posts tasks to proper content browser's threads, not
to threadpool.

Change-Id: I59efb81e1ac2f470d1c4cf8e84915b73766faec7
Signed-off-by: yh106.jung <yh106.jung@samsung.com>
16 months ago[M108 Migration] Migrate changes related to touch events 74/288374/2
ayush.k123 [Wed, 15 Feb 2023 03:51:00 +0000 (09:21 +0530)]
[M108 Migration] Migrate changes related to touch events

This patch migrates following changes related to touch events:
1. Add helper function for making ui::TouchEvent
2. Set touch events enable/disable preference from ewk api to
   EflEventHandler

Reference:
1. https://review.tizen.org/gerrit/281666
2. https://review.tizen.org/gerrit/282749

Change-Id: I4df1851be7814316c1800dadca9a908a2c87d75f
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][Compatibility] Support HTMLDocument width and height. 91/287191/4
venu.musham [Wed, 8 Feb 2023 10:42:53 +0000 (16:12 +0530)]
[M108 Migration][Compatibility] Support HTMLDocument width and height.

According to W3C spec document.width and height are deprecated.
For Tizen next version's, to support backward compatibility implement
document.width and document.height.

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

Change-Id: I0d656e980d814138683d0cac987b8e77cf609888
Signed-off-by: venu.musham <venu.musham@samsung.com>
16 months ago[M108 Migration] Migrate patches related to eldbus 81/288281/2
ayush.k123 [Tue, 14 Feb 2023 09:17:24 +0000 (14:47 +0530)]
[M108 Migration] Migrate patches related to eldbus

This patch contains the following code related to eldbus
1) Initialize eldbus on engine side
2) Check eldbus property when initialized
3) Relase a reference of eldbus connection during ewk_shutdown

Refernces: https://review.tizen.org/gerrit/281257/

Change-Id: Ib21c63b3bcdf0c17d7217c82bb6a159b97f25065
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Remove EWK_BRINGUP in tizen_src/ 92/288292/3
Bakka Uday Kiran [Tue, 14 Feb 2023 16:23:22 +0000 (21:53 +0530)]
[M108 Migration] Remove EWK_BRINGUP in tizen_src/

This commit migrates below EWK_BRINGUP removal patches.

Remove EWK_BRINGUP in browser_context_efl.cc
Remove EWK_BRINGUP in ContentBrowserClientEfl::CanCreateWindow
Remove EWK_BRINGUP from DownloadManagerDelegateEfl

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

Change-Id: I0b66de521d2b16c995af8920d8aef1a5db647430
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration][Gesture] Bring up gesture configuration 49/287849/6
v-saha [Tue, 14 Feb 2023 12:04:16 +0000 (17:34 +0530)]
[M108 Migration][Gesture] Bring up gesture configuration

Scroller will be created when ShouldUseMobileFlingCurve() is enabled

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

Change-Id: I4b3d93d354beacd9fa201b93a9a7eb31a9801b10
Signed-off-by: v-saha <v.saha@samsung.com>
16 months ago[M108 Migration] Add error handling and ptr validation check 93/288293/3
Bakka Uday Kiran [Tue, 14 Feb 2023 16:59:40 +0000 (22:29 +0530)]
[M108 Migration] Add error handling and ptr validation check

Add abnormal error handling while allocating memory.
Add ptr validation check after calling mem alloc.

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

Change-Id: If1beab4851e500db797d7b50a4344cbc6672a34d
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months agofixup! [M108 Migration][API] Bring up autofill 31/288331/2
ayush.k123 [Wed, 15 Feb 2023 08:16:45 +0000 (13:46 +0530)]
fixup! [M108 Migration][API] Bring up autofill

Ubrowser for standard profile is crashing on launch due to some
changes in base autofill patch. This patch disables autofill for
standard profile. This will be enabled when patch for autofill on
TV is migrated.

Change-Id: I685e02e309db05f5e942416f86ed0b2e54f73404
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][MM] Ignore buffers if callback is null 62/288262/5
Venugopal S M [Thu, 2 Jun 2022 17:27:51 +0000 (22:57 +0530)]
[M108 Migration][MM] Ignore buffers if callback is null

In "video_onended_event" for no reason, buffers are sent after EOS is
received. The read-calback is null and would crash.

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

Change-Id: Icccfa6c6e35000c7993139077ade2817232051b5
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
16 months ago[M108 Migration] Reset EWebContext ptr in CookieManager during EWebContext destroyed 02/288102/10
Bakka Uday Kiran [Fri, 10 Feb 2023 10:38:38 +0000 (16:08 +0530)]
[M108 Migration] Reset EWebContext ptr in CookieManager during EWebContext destroyed

CookieManager accesses EWebContext when it handles cookie storage,
but it has longer life cycle than EWebContext. To prevent accessing the
destroyed EWebContext, this patch resets the pointer of EWebContext in
CookieManager when EWebContext is destroyed.

Chromium supports only SQLite based persistent cookie storage.
This patch deprecates an enumeration for text file based cookie storage,
EWK_COOKIE_PERSISTENT_STORAGE_TEXT.

Reference:
https://review.tizen.org/gerrit/c/281416
https://review.tizen.org/gerrit/c/280780

Change-Id: I180b12b6929aac1d991d2c942f1eaf6780de992f
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Enable video hole feature 95/287095/9
Venugopal S M [Thu, 19 Jan 2023 13:45:46 +0000 (19:15 +0530)]
[M108 Migration] Enable video hole feature

- Video Hole feature for ESPP renderer
- Enable Video Hole for HbbTV.
- Support 4K video using the h264 codec
- Support Video hole for onscreen rendering mode

Reference:
https://review.tizen.org/gerrit/275372
https://review.tizen.org/gerrit/271981
https://review.tizen.org/gerrit/275415
https://review.tizen.org/gerrit/275793
https://review.tizen.org/gerrit/278370
https://review.tizen.org/gerrit/278413
https://review.tizen.org/gerrit/279187
https://review.tizen.org/gerrit/281153
https://review.tizen.org/gerrit/283850
https://review.tizen.org/gerrit/287464

Change-Id: I86fce9652e25ab8c94b8802717cec9b4fdf938a5
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
16 months ago[M108 Migration] Print time as string 87/288287/3
v-saha [Tue, 14 Feb 2023 12:10:49 +0000 (17:40 +0530)]
[M108 Migration] Print time as string

Time stores int64_t. So, large numbers are printed as exponential
notation. This does not help in debugging. So, print time as string.

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

Change-Id: Ibce730ea00b6200e3ec7edad10c86164e97d39a7
Signed-off-by: v-saha <v.saha@samsung.com>
16 months ago[M108 Migration] Apply preference option for force zoom enable/disable 05/288205/5
Bakka Uday Kiran [Mon, 13 Feb 2023 16:12:18 +0000 (21:42 +0530)]
[M108 Migration] Apply preference option for force zoom enable/disable

Feature was blocked by EWK_BRINGUP macro while previous migration was
in-progress. As chromium content interface was prepared, enable this feature.

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

Change-Id: I2b3a3e496ac9eaedf0d8be3e9a672663f6e22afb
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Remove javascript dialogs dependency on boringssl and skia 01/288201/3
Chandan Padhi [Mon, 13 Feb 2023 14:40:50 +0000 (20:10 +0530)]
[M108 Migration] Remove javascript dialogs dependency on boringssl and skia

Removing this unnecessary dependency would prevent chromium-efl's
dependency on boringssl so that opensource vulnerability for boringssl
does not have to be taken into consideration.

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

Change-Id: If7ad8e4c82a2e07aefc38baf1e81fcac5e4c5729
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
16 months ago[M108 Migration] Remove unneeded tests from third_party/ 60/288260/2
ayush.k123 [Tue, 14 Feb 2023 03:54:49 +0000 (09:24 +0530)]
[M108 Migration] Remove unneeded tests from third_party/

Below change removes

└── third_party
    ├── blink/web_tests/
    ├── blink/manual_tests
    ├── blink/perf_tests

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

Change-Id: Ideca1c5bed5cdf77e4592b40e63ae65bbabde3f5
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Remove "undo,size" and "redo,size" callbacks 48/288148/6
Bakka Uday Kiran [Sun, 12 Feb 2023 15:56:34 +0000 (21:26 +0530)]
[M108 Migration] Remove "undo,size" and "redo,size" callbacks

The callbacks "undo,size" and "redo,size" are not used by any
client. They have not been reimplemented for a long time. Remove
those callbacks as well as their partial implementation.

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

Change-Id: I36cff29c90956069dc49a4a24ba02f4bc97f5864
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Remove tracing_resources.pak from content_shell.pak 02/288202/4
Chandan Padhi [Mon, 13 Feb 2023 14:45:23 +0000 (20:15 +0530)]
[M108 Migration] Remove tracing_resources.pak from content_shell.pak

This patch reduces content_shell.pak file size by 1 MB.

content_shell.pak size:
w/o patch: 13MB
with patch: 12MB

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

Change-Id: Ieae75657261db52dfbc5c4d327597ee730dbd3d4
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
16 months ago[M108 Migration][MM] Handle User Permission popup. 46/288046/7
Koyyani Maheswari [Thu, 9 Feb 2023 12:16:14 +0000 (17:46 +0530)]
[M108 Migration][MM] Handle User Permission popup.

Code added for handling user permission popup. It will
show popup when user requested for mic and camera.

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

Change-Id: I970f253c62fb572c6321df58c44016c33c5076cd
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
16 months ago[M108 Migration] Update system language in network context. 38/288238/2
ayush.k123 [Tue, 14 Feb 2023 05:02:44 +0000 (10:32 +0530)]
[M108 Migration] Update system language in network context.

This patch updates network context whenever there is a system
language update.

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

Change-Id: Ic9164b2883c6c68e8ca43235a72effba6c2bbbd6
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Remove EWK_BRINGUP from EWebView::SaveAsPdf 66/288166/3
ayush.k123 [Fri, 10 Feb 2023 08:07:42 +0000 (13:37 +0530)]
[M108 Migration] Remove EWK_BRINGUP from EWebView::SaveAsPdf

This patch removes EWK_BRINGUP from EWebView::SaveAsPdf.

Reference:
https://review.tizen.org/gerrit/281743/
https://review.tizen.org/gerrit/282149/

Change-Id: I125746c9dbbd5246ead9901c2d5270cb6975a0e6
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
16 months ago[M108 Migration] Add ASLR to executables. 04/288204/2
Bakka Uday Kiran [Mon, 13 Feb 2023 15:22:21 +0000 (20:52 +0530)]
[M108 Migration] Add ASLR to executables.

Address space layout randomization(ASLR) is a computer security
technique involved in preventing exploitation of memory corruption
vulnerabilities.

ASLR randomly arranges the address space positions of key data areas of
a process to prevent an attacker from reliably jumping to a particular
exploited function in memory.

This adds ASLR to ubrowser, efl_webview_app, mini_browser, and efl_webprocess.

* Output from a command in bash to check ASLR

$ hardening-check ubrowser
ubrowser:
Position Independent Executable: yes

$ file ubrowser
ubrowser: ELF 32-bit LSB  shared object

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

Change-Id: I6e429acd73c01f85bda743c46a47cac6fc298bd4
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration] Remove deprecated codes in WebCacheManagerEfl 92/288192/3
ayush.k123 [Mon, 13 Feb 2023 08:17:02 +0000 (13:47 +0530)]
[M108 Migration] Remove deprecated codes in WebCacheManagerEfl

Some values are deprecated in WebCacheManager as below.
- min_dead_capacity
- max_dead_capacity
- dead_decoded_data_deletion_interval
- page_cache_capacity,
- url_cache_memory_capacity
- url_cache_disk_capacity

This patch removes deprecated variables in WebCacheManagerEfl
and clean up codes.

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

Change-Id: Iecbeb9999fc1ea51a34b101348eee272a96fb7d7
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
16 months ago[M108 Migration][Accessibility] Bringup Accessibility. 70/287870/7
ayush.k123 [Fri, 3 Feb 2023 09:35:58 +0000 (15:05 +0530)]
[M108 Migration][Accessibility] Bringup Accessibility.

- Brings up & Refactoring accessibility in accordance with upstream.
- Make a AXPlatformNodeEfl inherit from AXPlatformNodeAuraLinux
  for ATK event/callback.
- Migrate from BrowserAccessibility* to AXPlatformNode*.
- Remove BrowserAccessibilityManagerEfl / BrowserAccessibilityEfl.
- Support value change event.

Reference:
https://review.tizen.org/gerrit/279337
https://review.tizen.org/gerrit/279612

Change-Id: Ie312e18870a5d20304be4b8c5a6b11aa1b23ae33
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Add discardable memory and purge delay switch 06/288106/4
Bakka Uday Kiran [Fri, 10 Feb 2023 11:56:22 +0000 (17:26 +0530)]
[M108 Migration] Add discardable memory and purge delay switch

This commit enables to manually configure discardable
memory and purge delay from command line.

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

Change-Id: I941092fb926cb2ec9bfdc87c5eaa2127e01e7d00
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration][Webview] Migrate patches for ewk APIs 2/2 76/288176/4
ayush.k123 [Thu, 9 Feb 2023 06:03:59 +0000 (11:33 +0530)]
[M108 Migration][Webview] Migrate patches for ewk APIs 2/2

Migrate patches for ewk APIs 2/2.

References:
https://review.tizen.org/gerrit/c/280052/
https://review.tizen.org/gerrit/c/281861/

Change-Id: Id06a021ac3052646e53a8dd3783edb099d2a32b2
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration] Disable site-per-process mode of Site Isolation by default 03/288103/3
Bakka Uday Kiran [Fri, 10 Feb 2023 10:41:51 +0000 (16:11 +0530)]
[M108 Migration] Disable site-per-process mode of Site Isolation by default

This patch disables site-per-process mode of Site Isolation by default
on all Tizen profiles. It has been enabled on Chrome desktop (for
all sites) and on Android (for sites users log into). On Android,
it has been disabled if memory is less than 1077MB.

More details here:
https://www.chromium.org/developers/design-documents/site-isolation

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

Change-Id: Icbb8e81c53e583634183ad34fa068a4d3e2d7c26
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
16 months ago[M108 Migration][API] Add ewk_context_max_refresh_rate_set 07/288007/4
ayush.k123 [Wed, 8 Feb 2023 09:51:41 +0000 (15:21 +0530)]
[M108 Migration][API] Add ewk_context_max_refresh_rate_set

To reduce current consumption, some devices need to set screen FPS limitation.
This api is added to set screen FPS limitation.

If max refresh rate is set as 30, each thread will work as below.
1) With |setInterval(16ms)|.
 - Renderer main thread : 60fps
 - Renderer raster thread : 30fps
 - Renderer compositor thread : 30fps
 - UI main thread : 30fps

2) With |setInterval(20ms)|
 - Renderer main thread : 50fps
 - Renderer raster thread : 30fps
 - Renderer compositor thread : 30fps
 - UI main thread : 30fps

3) With |requestAnimationFrame|
 - Renderer main thread : 30fps
 - Renderer raster thread : 30fps
 - Renderer compositor thread : 30fps
 - UI main thread : 30fps

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

Change-Id: I05d8e28afe2b12ccf1d281c7634bab380a0e5b40
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
16 months ago[M108 Migration][Webview] Migrate patches for ewk APIs 1/2. 77/287977/2
ayush.k123 [Wed, 8 Feb 2023 06:25:57 +0000 (11:55 +0530)]
[M108 Migration][Webview] Migrate patches for ewk APIs 1/2.

This patch also has the text style related changes,
BackgroundColor() api modifications for EFL

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

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