platform/framework/web/chromium-efl.git
20 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>
20 months ago[M108 Migration][AppControl] Introduce app control scheme (appcontrol://) 97/287997/3
ayush.k123 [Wed, 8 Feb 2023 06:46:34 +0000 (12:16 +0530)]
[M108 Migration][AppControl] Introduce app control scheme (appcontrol://)

This patch introduces app control scheme in chromium-efl.

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

Change-Id: If6275c50a84def752db078b744db3bc792ab1751
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
20 months ago[M108 Migration][Viewport] Refactors orientation change and sets custom viewport... 53/287953/5
v-saha [Wed, 8 Feb 2023 18:47:27 +0000 (00:17 +0530)]
[M108 Migration][Viewport] Refactors orientation change and sets custom viewport size

Due to additional resize code called during orientation change,
orientation callback was called too early (when screen
dimensions were not set yet).

Even though resize callback was called again from
RenderWidgetHostImpl::WasResized() when all data was set,
orientation events were not dispatched again (due to the fact,
that orientation was changed during first, early call) and
wrong values of screen dimensions were set as final values.

Chromium-efl consists of Evas_Object widgets which appear on top of
webview resulting in overlapping the web page content, for example,
1) virtual keyboard,
2) popup menu picker.

As for 1), EFL allows auto-resizing the window on vk show/hide by using
elm_conformant widget. Because it does not work for TIZEN 3.0 [1]
Browser app manually resizes webview on vk appearance [2].

As for 2), chromium-efl fully implements select picker internally and
app is not aware of it.

This patch overrides GetVisibleViewportSize() and returns smaller
viewport while showing select picker. According to the comment from [3]
this method allows us to define smaller viewport if a portion of the
view is obstructed.

GetVisibleViewportSize() is always called on any size update and result
in sending a new size to the Renderer.

To make <select> element visible, this patch implements:
EWebView::ScrollFocusedNodeIntoView because
RenderWidgetHostViewEfl::ScrollFocusedEditableNode scrolls webview for
editable elements only.

This change fixes WCS TC 195.

Additionally, refactor picker code in EWebView class:
1. Rename ShowPopupMenu -> HandlePopupMenu
   it does not only show picker but also changes viewport.
2. PopupMenuClose and HidePopupMenu return void.
3. PopupMenuClose calls ReleasePopupMenuList as it was already exposed.
4. Get rid of CloseSelectPicker and IsSelectPickerShown as they are
   no longer used.

[1] TSAM-537
[2] virtual gfx::Size GetVisibleViewportSize() const = 0
    src/content/public/browser/render_widget_host_view.h

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

Change-Id: I2fc82ebe04d42d6a2ab21b1bb29d04f5037d4306
Signed-off-by: v-saha <v.saha@samsung.com>
20 months ago[M108 Migration] Bringup Link Effect feature 75/287975/7
Bakka Uday Kiran [Wed, 8 Feb 2023 10:31:31 +0000 (16:01 +0530)]
[M108 Migration] Bringup Link Effect feature

Link effect feature produces sound effect when user taps
on elements. The functionality is enabled on few elements
that satisfy certain contraints. This check is done at
blink side on GestureTap event and notifies
RenderFrameObserver to play the sound effect using tizen
haptic feedback library on mobile.

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

Change-Id: I349a479817405b84fc4c2552b208a304a535ad10
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
20 months ago[M108 Migration] Add ewk apis to support functionality for Permissions.query JS api 99/287999/2
Gajendra N [Wed, 8 Feb 2023 09:52:33 +0000 (15:22 +0530)]
[M108 Migration] Add ewk apis to support functionality for Permissions.query JS api

At javascript side, permissions.query() is used to query the exisiting
permission status granted for an origin. The query has to be passed to
web browser to get the status, and hence there is need for introducing
new ewk apis :

ewk_view_user_media_permission_query_callback_set
ewk_user_media_permission_query_origin_get
ewk_user_media_permission_query_device_type_get

Web Browser returns EWK_USER_MEDIA_PERMISSION_QUERY_RESULT_{ASK|GRANTED|DENIED}
enum value, based on which blink::PermissionStatus::{ASK|GRANTED|DENIED} status
is returned to blink.

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

Change-Id: Ic54dd1aa379216a31d64255712f21371781c29d1
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
20 months ago[M108 Migration] Avoid creation of PersonalDataManager from pre-launched wrt-loader 42/287942/2
ayush.k123 [Wed, 8 Feb 2023 05:20:29 +0000 (10:50 +0530)]
[M108 Migration] Avoid creation of PersonalDataManager from pre-launched wrt-loader

The db path is determined after the webapp is launched. So it should
hold to create instance to access DB until the actual webapp is
launched from prelaunched wrt-loader.
The PersonalDataManager instance will be created when it is actually
used, not the BrowserContextEfl constructor. This patch fixes the
db lock issue with ubrowser by pre-launched wrt-loader process.

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

Change-Id: I42ae897a6fa06230010170103f933cc8b10877ec
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
20 months ago[M108 Migration][Locale] Migrate locale related changes 67/287967/3
Gajendra N [Wed, 8 Feb 2023 07:08:28 +0000 (12:38 +0530)]
[M108 Migration][Locale] Migrate locale related changes

This patch adds additional locales for Tizen, and initializes
LocaleEfl and path service at proper place.

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

Change-Id: Icd657b4f6cf50f025ba37ce5ee9a0b18ca676981
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
20 months ago[M108 Migration][AddJavascriptInterface] Change callback to main thread 08/288008/2
ayush.k123 [Thu, 9 Feb 2023 03:15:54 +0000 (08:45 +0530)]
[M108 Migration][AddJavascriptInterface] Change callback to main thread

This patch makes IPC message GinNativeBridgeHostMsg_InvokeMethod
dispatch to the UI thread instead of the default I/O thread.

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

Change-Id: I8625bc70c2a733f616ace6a363e2ca485a674e60
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
20 months ago[M108 Migration] Add ewk_settings_multiple_windows_support_[get|set] 40/288040/2
ayush.k123 [Thu, 9 Feb 2023 09:50:21 +0000 (15:20 +0530)]
[M108 Migration] Add ewk_settings_multiple_windows_support_[get|set]

This patch adds ewk_settings_multiple_windows_suppport_[get|set].
It can set whether the webview supports multiple windows.
If set to true, 'create,window' callback must be implemented by the
application. The default is TRUE.

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

Change-Id: Icd0075f6e550e22292b9b099c8ba264411c16ba8
Signed-off-by: Ayush Kumar<ayush.k123@samsung.com>
20 months ago[M108 Migration][API] Add ewk_view_save_page_as_mhtml as new internal API 54/287954/4
Bakka Uday Kiran [Wed, 8 Feb 2023 07:04:47 +0000 (12:34 +0530)]
[M108 Migration][API] Add ewk_view_save_page_as_mhtml as new internal API

This patch adds ewk_view_save_page_as_mhtml by MPR.
It would be used to save current page as MHTML format for offline usage.

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

Change-Id: Iff36f5ca44053116e4b1d5109fb08ad57e2ed8fa
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
20 months ago[M108 Migration][API] Add ewk_settings_tizen_compatibility_mode_set API 11/287911/8
Bakka Uday Kiran [Fri, 3 Feb 2023 07:26:33 +0000 (12:56 +0530)]
[M108 Migration][API] Add ewk_settings_tizen_compatibility_mode_set API

This API allows rendering the pages as if they are run with the
specified engine version. The compatibility mode changes behavior of
web features since they follow the newest specifications resulting in
different behavior for content delivered for earlier engines.

API will be applied by WRT/XWalk to support product patches for
chromium-efl in compatibility mode with WebKit/Tizen 2.4.

WebCore patches will be applied once compatibility mode is set.
Checking whether engine has been launched with compatibility mode:

* renderer:
    content::WebSettings::TizenCompatibilityModeEnabled()
    Blink::Settings::TizenCompatibilityModeEnabled()
* ui:
    WebPreferencesEfl::TizenVersion::{major|minor|release|}

Applying WebCore changes immediately after changing compatibility
mode can be done inside Page::settingsChanged(TizenVersionChange).

Ewk API can be tested with ubrowser by passing tizen-version | -t flag,
for example,
$ ubrowser -t 2.4

Also, this patch exposes TizenVersion on blink::web_pref::WebPreferences
to allow client to check if compatibility mode is turned on.
Struct TizenVersion has been replaced with individual elements in
web_preferences.mojom for simplicity.

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

Change-Id: I4c720a371846fdef4d01dada80723d32bd5ef2fa
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
20 months agofixup! [M108 Migration][MM] Handle buffering and playback 90/287890/5
Koyyani Maheswari [Tue, 7 Feb 2023 09:34:55 +0000 (15:04 +0530)]
fixup! [M108 Migration][MM] Handle buffering and playback

This commit fixes crash when playing audio element.
There is a case that video demuxer stream is used even if it doesn't exist.
So prevent access to invalid demuxer stream.

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

Change-Id: I737793d799f657f4553ca4d3ffe2ea5fc2f6ed7c
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
20 months ago[M108 Migration] Remove EWK_BRINGUP from ewk_back_forward_list_private 06/288006/2
ayush.k123 [Wed, 8 Feb 2023 09:38:50 +0000 (15:08 +0530)]
[M108 Migration] Remove EWK_BRINGUP from ewk_back_forward_list_private

This removes EWK_BRIRNGUP from the file and replaces deprecated
notification types with methods in WebContentsObserver as per the
reference in [1].

    NOTIFICATION_NAV_ENTRY_CHANGED
    -> WebContentsObserver::NavigationEntryChanged

    NOTIFICATION_NAV_ENTRY_COMMITTED
    -> WebContentsObserver::NavigationEntryCommitted

[1] https://chromium-review.googlesource.com/630420

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

Change-Id: Ib980ae58958b734d3d1b92984095446e6dfb8f3f
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
20 months ago[M108 Migration] Support ecore mainloop on utility process 20/288020/3
v-saha [Thu, 9 Feb 2023 06:16:20 +0000 (11:46 +0530)]
[M108 Migration] Support ecore mainloop on utility process

Ecore events are not triggered on utility process as MessagePumpDefault
is used as the message pump. This commit sets MessagePumpEcore as the
message pump for utility process to support ecore events.

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

Change-Id: If2b62fdef2bc9a44e446e37ba67d71c6f93b1845
Signed-off-by: v-saha <v.saha@samsung.com>
20 months ago[M108 Migration] Fix default font size setting issue. 56/287956/4
v-saha [Wed, 8 Feb 2023 07:12:10 +0000 (12:42 +0530)]
[M108 Migration] Fix default font size setting issue.

Default font size was not changed by |ewk_settings_default_font_size_set|. This
is because the set value was not delivered to renderer process. Changed to
apply value by calling |ewkUpdateWebkitPreferences|.

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

Change-Id: I9f3311a4a598fc1553d637bcb41d95b320f5c3d2
Signed-off-by: v-saha <v.saha@samsung.com>
20 months ago[M108 Migration][MM] Migrate AudioIO related patches 45/286445/14
Koyyani Maheswari [Thu, 5 Jan 2023 05:36:03 +0000 (11:06 +0530)]
[M108 Migration][MM] Migrate AudioIO related patches

This patch migrates patchs related to Audio IO.

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

Change-Id: I766dcba9eefa6ff6d4ed0fe7be1ae7a254ce5c7b
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
20 months ago[M108 Migration][WCS] Bringup clipboard 29/287729/5
ayush.k123 [Thu, 2 Feb 2023 09:55:40 +0000 (15:25 +0530)]
[M108 Migration][WCS] Bringup clipboard

This patch migrates clipboard related patches from 94.

References:
https://review.tizen.org/gerrit/280878/
https://review.tizen.org/gerrit/280951/
https://review.tizen.org/gerrit/278392/

Change-Id: I1c6f744a642602fb49036b6391fe1d1f7ed62d51
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
20 months ago[M108 Migration] Migrate navigation related fixup patches 65/287665/8
Gajendra N [Thu, 2 Feb 2023 05:26:01 +0000 (10:56 +0530)]
[M108 Migration] Migrate navigation related fixup patches

This commit squashes fixup patches related to navigation.

References:
https://review.tizen.org/gerrit/278830
https://review.tizen.org/gerrit/278897
https://review.tizen.org/gerrit/280781

Also,
1) Removes EWK_BRINGUP in CRCE::HandleNavigation.
2) RenderView is removed in upstream, hence replaces |render_view_id|
with |render_frame_id| in NavigationiPolicyParams.

Change-Id: Ie9e66291f1c65aca48a97f7eff2a6143b171d07f
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
20 months ago[M108 Migration] Migrate changes related to RenderViewReady and RenderViewCreated 89/287689/6
Bakka Uday Kiran [Thu, 2 Feb 2023 08:38:57 +0000 (14:08 +0530)]
[M108 Migration] Migrate changes related to RenderViewReady and RenderViewCreated

This patch contains the following the changes
1)Handle RenderViewReady in WebContentsObserverEfl.
2)Invoke EWebView::RenderViewReady manually for window.open case.
3)Replaces RenderViewCreated with RenderViewReady and removes
unused RenderViewCreated methods.

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

Change-Id: I87e6a122c5b4b04fc6b3e69cded3d7f1d7dea918
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
20 months agoImplement WebViewObserver for EFL 22/287622/4
Chandan Padhi [Wed, 1 Feb 2023 12:46:51 +0000 (18:16 +0530)]
Implement WebViewObserver for EFL

This commit
1. adds WebViewObserverEfl
2. removes upstream code changes related to RenderFrame(Impl|Observer)
3. removes EWK_BRINGUP for related code

Change-Id: I39ec8e55378cb6936a5cefbcdb99e4a4d395c56a
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
20 months ago[M108 Migration] Encrypt password field in AutoFill DB 19/287619/5
v-saha [Wed, 1 Feb 2023 11:01:47 +0000 (16:31 +0530)]
[M108 Migration] Encrypt password field in AutoFill DB

Currently, password field is not encrypted in autofill db.
If device is rooted, the passwords in autofill db can be
easily exposed.

This patch does the following :

[1] Enables storing of passwords in autofill DB in encrypted form.
[2] If the DB already has unencrypted passwords, then firstly
    migrate them to the DB in encrypted form, and then enable [1].

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

Change-Id: I168532dbdd2f3fc68cd5a2887dcbc9e5c86957bc
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][API] Implement ewk_view_session_timeout_set internal API 57/287657/3
ayush.k123 [Wed, 1 Feb 2023 10:31:49 +0000 (16:01 +0530)]
[M108 Migration][API] Implement ewk_view_session_timeout_set internal API

XHR request can specify a timeout value which will be used to break a
connection after some time. Default value is 0 which means that no
limit is set. Additionally, a new API is defined to set a maximum timeout
value (0 is default). Using this API one can set a maximum timeout value
which will be used during XHR request - the request will not take longer
time that specified value.

Based on the upstream changes in threadable_loader.h, consequent changes have
been made in this patch to enable timeout.

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

Change-Id: I50efed39e4403b45a80aca44f57b83195187a910
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
21 months ago[M108 Migration] Migrate WebView focus related patches 07/287607/4
ayush.k123 [Wed, 1 Feb 2023 07:14:15 +0000 (12:44 +0530)]
[M108 Migration] Migrate WebView focus related patches

This patch migrates WebView's focus related patches.

References: https://review.tizen.org/gerrit/c/279552/

Change-Id: I42047923805973b8ac3a9b8290b13771953c0d3e
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months agofixup! [M67 Dev][Tizen] Fix crashes at webview launch 21/287621/2
Chandan Padhi [Wed, 1 Feb 2023 12:06:11 +0000 (17:36 +0530)]
fixup! [M67 Dev][Tizen] Fix crashes at webview launch

Applying this change for desktop as well to fix webview crash at launch.

Change-Id: Icd2759ee0a8adfb6ae08d6b5a8d0c4ad0180c5da
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months ago[M108 Migration] Add back MaybeCheckCSP() method which was removed in upstream 97/287597/4
v-saha [Wed, 1 Feb 2023 06:04:24 +0000 (11:34 +0530)]
[M108 Migration] Add back MaybeCheckCSP() method which was removed in upstream

In M63, MaybeCheckCSP() method was used to decide navigation policy
by checking CSP rules. After M63, the method was removed in upstream
patches [1] & [2] which caused the navigation policy to be decided
by ContentRendererClient. For WebApps, it is routed to WRTRenderClient.
In WRT, the navigation policy is decided but also requests app_control
to the refused URL to support backward compatibility which can't be
avoided, thus resulting in unexpected launch of VD Browser.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/1037804
[2] https://chromium-review.googlesource.com/c/chromium/src/+/1083825

This patch adds back MaybeCheckCSP() to decide the policy at blink side
itself, so that the request doesn't reach WRT.

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

Change-Id: I32ee8fe2f1d833aa945fa1ab9b5e86b7a179f372
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][API] Re-implement ewk_view_visibility_set 08/287208/13
Bakka Uday Kiran [Mon, 23 Jan 2023 18:34:12 +0000 (00:04 +0530)]
[M108 Migration][API] Re-implement ewk_view_visibility_set

1. In w3c spec as [1]"The Page Visibility" specification defines a means
for site developers to programmatically determine the current
visibility of a document and be notified of visibility changes.

Also, it does not mean directly showing or hiding the current webview.

Previous codes have an unnecessary behavior. This patch will just set
visibility to |WasShown| or |WasHidden| without evas_object_show
(or hide) in webview.

And ewk_view_page_visibility_state_set() was already changed by [2]
like current patch.

2. This patch implements ewk_view_page_visibility_state_set.
It just supports 'visible' and 'hidden' for now.

3. In aura, calling WebContents::{WasShown|WasHidden} eventually invokes
RWHVA's ShowWithVisibility() / Hide() functions which has additional
functionality related to page visibility, compared to tizen branch.
Hence make the changes suitable to new architecture.
Also show / hide content image evas object in sync with RWHVA's visibility.

References:
[1] https://www.w3.org/TR/page-visibility/
[2] https://review.tizen.org/gerrit/c/77637
https://review.tizen.org/gerrit/c/277832
https://review.tizen.org/gerrit/c/279282
https://review.tizen.org/gerrit/c/282642

Change-Id: I0e9df5734b3a2e14a3ad82c75e8eaf50b33e368f
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Use mobile scrollbar theme for mobile profile 87/287487/7
Bakka Uday Kiran [Mon, 30 Jan 2023 16:59:32 +0000 (22:29 +0530)]
[M108 Migration] Use mobile scrollbar theme for mobile profile

Before this change, desktop style scrollbar was displayed for mobile
profile.

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

Change-Id: I3e9f72e6e277f03e0a6ad953449c714a2ce12429
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Move codes that handle EWK IPC messages from render frame 60/287560/2
v-saha [Tue, 31 Jan 2023 14:31:59 +0000 (20:01 +0530)]
[M108 Migration] Move codes that handle EWK IPC messages from render frame

IPC messages for EWK are currently handled in WebViewBrowserMessageFilter
for both render view host messages and render frame host messages.
But render frame host messages come from specific render frame, so they
should be handled on specific render frame host. WebContentsObserver
provides OnMessageReceived function for that. So, this patch moves codes
which handle IPC messages for EWk from render frame into WebContentsObserverEfl
which is drived from WebContentsObserver.

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

Change-Id: I13648a043e3931472fbb27f710472b05b9d16e55
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][TTS] Text to Speech Bringup 51/286651/13
Koyyani Maheswari [Wed, 11 Jan 2023 05:54:26 +0000 (11:24 +0530)]
[M108 Migration][TTS] Text to Speech Bringup

This patch brings the following changes to TTS

-Change state, destruction handling
-Run TTS as native platform interface.
-Remove unused code
-Handle EWK tts_mode set method
-Handle pause/stop during initialization

Reference:
https://review.tizen.org/gerrit/274760/
https://review.tizen.org/gerrit/275686/

Change-Id: Id23d3cb0c766b93fa7e7c7db83bab87f5ed99724
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
21 months ago[M108 Migration][Certificate] Bring up certificate 32/287532/3
ayush.k123 [Tue, 31 Jan 2023 03:54:28 +0000 (09:24 +0530)]
[M108 Migration][Certificate] Bring up certificate

Migrate certificate related code from M94

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

Change-Id: Ie9a8dc27fcc5b0eaf0f0f0d5dcc5f271992d3963
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][MM] Avoid evicting buffers on abort/duration change 56/287556/2
Venugopal S M [Tue, 15 Nov 2022 14:53:08 +0000 (20:23 +0530)]
[M108 Migration][MM] Avoid evicting buffers on abort/duration change

Chromium still maintains deprecated logic to remove buffers on
duration change.

MSE conformance test
- MediaElementEvents:
  Source buffer should not add/remove/update during the duration
  update callback.

MSE Conformance link:
  https://ytlr-cert.appspot.com/latest/main.html?tests=18

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

Change-Id: Ia0c6dca0bf60482bbd0dfb21c26498b86db9154d
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
21 months ago[M108 Migration] Bringup Vibration feature 61/287461/4
Bakka Uday Kiran [Mon, 30 Jan 2023 07:06:15 +0000 (12:36 +0530)]
[M108 Migration] Bringup Vibration feature

This patch enables support for Vibration client callbacks.

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

Change-Id: Ia0fc9221ecfbb448efeb185a2425d3b51d9b03bc
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Migrate AVAS patches 55/287555/3
Gajendra N [Tue, 31 Jan 2023 10:07:30 +0000 (15:37 +0530)]
[M108 Migration] Migrate AVAS patches

This commit squashes below avas patches and merge to M108.

References:
https://review.tizen.org/gerrit/279548
https://review.tizen.org/gerrit/279561
https://review.tizen.org/gerrit/279586
https://review.tizen.org/gerrit/279595
https://review.tizen.org/gerrit/279918
https://review.tizen.org/gerrit/282003
https://review.tizen.org/gerrit/282095
https://review.tizen.org/gerrit/282431

Change-Id: I800ae039bbbe0340a0f222582bda3fc1b8fd115b
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration] Set ContentSecurityPolicy rules to blink 84/287484/3
Bakka Uday Kiran [Mon, 30 Jan 2023 13:48:51 +0000 (19:18 +0530)]
[M108 Migration] Set ContentSecurityPolicy rules to blink

1. Set CSP rules from ewk API to engine via mojo IPC after
|RenderFrameObserver::DidCreateDocumentElement| is notified.

2. Set sandbox flag on security context
when |WebDocument::SetContentSecurityPolicyUsingHeader| is invoked.

References:
https://review.tizen.org/gerrit/c/278286
https://review.tizen.org/gerrit/c/281099

Change-Id: I005b4ca61bc4c6dd1f7765eb18563889685c1a77
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Disable tracing ui(chrome://tracing) 31/287531/2
ayush.k123 [Mon, 30 Jan 2023 11:09:19 +0000 (16:39 +0530)]
[M108 Migration] Disable tracing ui(chrome://tracing)

'chrome://tracing' ui is for desktop browser, not tizen.

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

Change-Id: I41ea63a7a22084cfd78872ed815b74c0e5bbdd13
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Support unlimitedstorage privilege for Indexed DB 80/287180/8
v-saha [Tue, 24 Jan 2023 06:49:37 +0000 (12:19 +0530)]
[M108 Migration] Support unlimitedstorage privilege for Indexed DB

The unlimitedstorage privilege can be granted when temporary quota is
exceeded during indexedDB transaction. The minimum preserve space for
system is changed to 10% of the total disk space from 1GB.
The unlimitedstorage quota is the amount of available disk space
excluding 10% of the total disk space. the maximum quota is less than
or equal to 2GB.

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

Change-Id: Ib2a05423c1d2b3ed7cb8db44caad8705941d99b9
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][API] Bring up autofill 23/287123/11
v-saha [Fri, 20 Jan 2023 06:28:15 +0000 (11:58 +0530)]
[M108 Migration][API] Bring up autofill

This patch migrates Autofill feature base code.

References:
https://review.tizen.org/gerrit/273586
https://review.tizen.org/gerrit/282263

Change-Id: Ie0dd8d81050e78dc812a8b6059aa2f6d795f8173
Signed-off-by: v-saha <v.saha@samsung.com>
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Toggle screencast off in Web inspector by default 80/287480/2
v-saha [Mon, 30 Jan 2023 11:55:51 +0000 (17:25 +0530)]
[M108 Migration] Toggle screencast off in Web inspector by default

When web inspector is launched & screencast is enabled
by default, it occupies a large amount of space & is tangential
to the earlier layouts we show to the user

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

Change-Id: Iae31c76d277ca1015ba335ce57c79cf9d86b20fc
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][NativeControl] Refactor Permission Popup. 44/287444/3
ayush.k123 [Fri, 27 Jan 2023 05:16:44 +0000 (10:46 +0530)]
[M108 Migration][NativeControl] Refactor Permission Popup.

This patch includes below changes:
- Refactor Permission_popup.
- Fix SetPopupTitle() hardcoding.
- Permission popup is closed, When request is cancelled.
- NULL checking while DeletePermissionRequest.

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

Change-Id: I87080ac0061bb9bdf42c8db6a09db6a51b2a6596
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][SAM] Migrate SAM score improvement patches 59/287359/2
Gajendra N [Fri, 27 Jan 2023 06:23:38 +0000 (11:53 +0530)]
[M108 Migration][SAM] Migrate SAM score improvement patches

Improves MCD Score from 2.08 to 3.33.
Reduces LOC for WebContentsDelegateEfl by ~280 lines.
Reduces LOC for ContentBrowserClientEfl by ~85 lines.

References:
https://review.tizen.org/gerrit/275891
https://review.tizen.org/gerrit/275576
https://review.tizen.org/gerrit/275660
https://review.tizen.org/gerrit/276084

Change-Id: Ic034b902c7ccf9d74c100641aadbf604763c5f95
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration][MM] Migrate Tbm feature for Tizen Multimedia 41/286841/8
Suhaspoornachandra [Wed, 25 Jan 2023 09:22:59 +0000 (14:52 +0530)]
[M108 Migration][MM]  Migrate Tbm feature for Tizen Multimedia

This commit migrates below patches and their fixup's
1) Add Tbm Surface support
2) Add support for tbm buffer handling
3) [MM] Handle TBM on video frame drop
4) [MM] Fix memory leak during playing video using TBM
5) [MM] Fix the crash when player is destroyed before tbm media
   packet (partial)

Reference:
https://review.tizen.org/gerrit/269846/
https://review.tizen.org/gerrit/270726/
https://review.tizen.org/gerrit/272817/
https://review.tizen.org/gerrit/273650/
https://review.tizen.org/gerrit/274633/
https://review.tizen.org/gerrit/279208/
https://review.tizen.org/gerrit/282988/

Change-Id: Id65cfea36a7469c81c764d5d84d0ff9f84013244
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
21 months ago[M108 Migration] Bring up ttrace 10/287210/7
Bakka Uday Kiran [Tue, 24 Jan 2023 19:50:55 +0000 (01:20 +0530)]
[M108 Migration] Bring up ttrace

Add '--ttrace' build option
  Import ttrace package
  Define USE_TTRACE macro
  Add use_ttrace GN variable
Add helper macro functions for TTRACE
Add TTRACE backend under TRACE_EVENT macro
Enable TTRACE except chrome trace log for TV product by default.

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

Change-Id: I40e2ec67c3619827a8b7de9c7e3bbcc22722d8a4
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration][Product TV] Support TV specific keys 27/287327/5
Bakka Uday Kiran [Wed, 25 Jan 2023 12:08:03 +0000 (17:38 +0530)]
[M108 Migration][Product TV] Support TV specific keys

1. Support keys on TV remote controller,
like the media control keys: play, pause, stop.
Mapping these keys from EFL key names to VKEYs.

2. Enable DomCode and DomKey conversion
on standard profiles.

Reference:
https://review.tizen.org/gerrit/c/277836
https://review.tizen.org/gerrit/c/279232
https://review.tizen.org/gerrit/c/279340

Change-Id: Iefb7f9c30a5bdc623e77adf2034c3c1c8160cb6a
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Implement view port setting and zoom factor API 09/287209/5
b.kiran [Wed, 25 Jan 2023 04:56:48 +0000 (10:26 +0530)]
[M108 Migration] Implement view port setting and zoom factor API

This patch implement below preference setting and
API for content scale.

1. As default meta view port enabling for mobile
2. Implement ewk api for view port set/get

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

Change-Id: Id030ba049d55d46e55aaa2b8c75e27f3c7ed5fe9
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration][API] Introduce AddJavascriptInterface for Tizen 32/287232/4
Gajendra N [Tue, 24 Jan 2023 06:45:06 +0000 (12:15 +0530)]
[M108 Migration][API] Introduce AddJavascriptInterface for Tizen

Introduces AddJavascriptInterface for tizen, adds logs for debugging and
support for posting blob type data type when using custom JS msg handler.

Additionally, on M108, due to lot of upstream changes in base/values.{h,cc}
prototypes, this patch fixes many build errors with respect to conversion
of JS types (list, blob, dict etc) to Native types.

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

Change-Id: Id18d8756919c3730ad991ab2a2ea02f91d64131f
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration][STT] Speech bring up. 45/286645/13
Suhaspoornachandra [Wed, 11 Jan 2023 04:53:28 +0000 (10:23 +0530)]
[M108 Migration][STT] Speech bring up.

Refrence:
https://review.tizen.org/gerrit/c/274769/
https://review.tizen.org/gerrit/c/275686/

Change-Id: Ic439f156dc8804d7d2ad7eed59f3bd550153623a
Signed-off-by: Suhaspoornachandra <s.poornachan@samsung.com>
21 months ago[PDNCF] Backport ImageManager class and its dependencies 90/287190/3
uzair [Thu, 5 Jan 2023 08:01:55 +0000 (13:31 +0530)]
[PDNCF] Backport ImageManager class and its dependencies

Zero copy video rendering path is dependent on chromium GL_CHROMIUM_image
extension but open source plans to deprecate it in future and hence
some part of code is removed before 108 branch was forked for tizen and the new
CHROMIUM_shared_image extension path is not completely present in 108 version.

For now we partially backport [1] and [2] to bringup TBM path.

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3582497
[2] https://chromium-review.googlesource.com/c/chromium/src/+/3743320

Change-Id: If3d8eff200650113bd5b4893bb1636cd9895cb03
Signed-off-by: uzair <uzair.jaleel@samsung.com>
21 months ago[M108 Migration][Canvas2D][TCT] Do not accelerate small size canvas. 86/287186/2
v-saha [Mon, 23 Jan 2023 14:07:42 +0000 (19:37 +0530)]
[M108 Migration][Canvas2D][TCT] Do not accelerate small size canvas.

Accelerating canvas with smaller size causes TCT issues since M76, it is
known in upstream and reported too. Hence disabling acceleration for
smaller canvases for  EFL port.

References:
https://review.tizen.org/gerrit/274897
https://bugs.chromium.org/p/chromium/issues/detail?id=1051392

Change-Id: Ie7642016d3d66b8290c9e3a0d170b5f8e16311fa
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration] Enable ScreenOrientationDelegate for EFL 83/287183/4
ayush.k123 [Mon, 23 Jan 2023 10:16:57 +0000 (15:46 +0530)]
[M108 Migration] Enable ScreenOrientationDelegate for EFL

ScreenOrientationDelegate is needed for fixing
tct-screenorientation-w3c-tests failures on M108.

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

Change-Id: I08d37b9c5c40a551971a79df6b0938300d38d25e
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Patch migration for BrowsingDataRemoverEfl 51/286951/10
Bakka Uday Kiran [Tue, 17 Jan 2023 08:23:20 +0000 (13:53 +0530)]
[M108 Migration] Patch migration for BrowsingDataRemoverEfl

This patch
 -Migrates Session storage related changes from M94.
 -Fixes build error caused by accessing StoragePartition
 -Migrates the below patch for BrowsingDataRemoverEfl.
 -Removes EWK_BRINGUP caused by M94 upversion by changing
  to use QuotaManager instead of AppCacheService

References:
https://review.tizen.org/gerrit/c/273503
https://review.tizen.org/gerrit/c/283349

Change-Id: Ibaa832abd99f41f2bbb1f6ec98fe26dab4ba3fc7
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Implement ewk_settings_use_system_font_set API 78/287178/9
Bakka Uday Kiran [Sun, 22 Jan 2023 17:54:02 +0000 (23:24 +0530)]
[M108 Migration] Implement ewk_settings_use_system_font_set API

Added needed to support to control the font setting for browser.

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

Change-Id: I051d586183dadfa928f97415dfb246e4b32b361a
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Enable proper functionality for ewk_view_text_selection_clear API 82/287182/3
ayush.k123 [Mon, 23 Jan 2023 05:39:52 +0000 (11:09 +0530)]
[M108 Migration] Enable proper functionality for ewk_view_text_selection_clear API

This patch enables proper functionality of ewk_view_text_selection_clear
api.

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

Change-Id: Idbcdc8e50fbde018aefb3ca576597508a3978a97
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][API] Migrate favicon related patches 45/287045/3
ayush.k123 [Thu, 19 Jan 2023 05:30:29 +0000 (11:00 +0530)]
[M108 Migration][API] Migrate favicon related patches

This change adds modification related to favicon.

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

Change-Id: I0e72acea7c54565aef4eeb76194e73e8320b3d94
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Bringup Native DateTime InputPicker 86/287086/4
ayush.k123 [Thu, 19 Jan 2023 03:36:35 +0000 (09:06 +0530)]
[M108 Migration] Bringup Native DateTime InputPicker

Add the missed implementations for Native Date Time Input Picker.

Add support for datetime input type.
(Datetime input type is deprecated.)

Add changes get/setenv to vconf_get_str/vconf_set_str
for security issue in input picker

It also fixes error of InputPicker.

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

Change-Id: I9c3f0b76521cdfa972e3a0bb4a42e97f196f3997
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months agofixup! [M108 Migration] Remove EWK_BRINGUP from EWebView::ExecuteJavaScript 85/287085/3
Bakka Uday Kiran [Thu, 19 Jan 2023 10:49:23 +0000 (16:19 +0530)]
fixup! [M108 Migration] Remove EWK_BRINGUP from EWebView::ExecuteJavaScript

This patch fixes the error[1] that occurs during starting
of efl_webview_app on both desktop and tv

[1] RAW: Bad variant access, Aborted (core dumped)

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

Change-Id: I1617011377bedf37ab9142b0efa3012fd89e147a
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Enable snapshot feature for EFL port 69/286769/7
Chandan Padhi [Thu, 12 Jan 2023 13:04:51 +0000 (18:34 +0530)]
[M108 Migration] Enable snapshot feature for EFL port

This commit provides support for both asynchronous and
synchronous snapshot APIs. This also adds sample code
to test async and sync snapshot APIs in ubrowser and
efl_webview_app respectively.

Legacy IPCs have also been replaced with Mojo calls for
software capture.

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

Change-Id: I2e03fcffb5cfcf6377a09e7dec97d9533881265c
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months ago[M108 Migration][NativeControl] InputPicker Migration 20/287020/2
ayush.k123 [Tue, 17 Jan 2023 03:59:53 +0000 (09:29 +0530)]
[M108 Migration][NativeControl] InputPicker Migration

This patch includes below changes:

- Rename InputPicker.[h|cc] to input_picker.[h|cc].
- And rename inputpicker directory to input_picker too.
- Layout struct was changed to class and it take charge of
  creating layout and handling callbacks.
- Add static |CreateAndShow*| functions to create and
  show pickers instead of |show*Popup|.
- Integrate |*popupCallback| for date picker to reduce duplication.
- Use Android's ColorChooserUIController for color chooser
  implementation.

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

Change-Id: Iaac7ace5541067b799fc8f6fb804d6de3dd86cf6
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Bring up Geolocation 29/286929/8
ayush.k123 [Mon, 16 Jan 2023 12:45:08 +0000 (18:15 +0530)]
[M108 Migration] Bring up Geolocation

This patch brings up Geolocation feature to M108.

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

Change-Id: I004a61ee5b1800c97c5ca97f3714e5fce16a8a59
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months agoAdd WebContentsViewAuraHelperEfl class 62/286962/6
Gajendra N [Tue, 17 Jan 2023 09:09:53 +0000 (14:39 +0530)]
Add WebContentsViewAuraHelperEfl class

This patch introduces helper class for WebContentsViewAura for routing
some calls to efl delegate classes. Also cleans up unnecessary code.

Change-Id: I2949b17af7cdd05610973fb7f7b616b6d466cdb8
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration][UA] Refactor user agent strings 66/286966/4
Chandan Padhi [Tue, 17 Jan 2023 14:36:51 +0000 (20:06 +0530)]
[M108 Migration][UA] Refactor user agent strings

This commit,
1. reduces system api access
2. moves combination of the user_agent_string to constructor
3. fixes script execution in gn file to get the chromium version
   in defined pattern
4. removes unnecessary code

These changes are required for User Agent String Test in Behavior TCT.

References:
https://review.tizen.org/gerrit/279991/
https://review.tizen.org/gerrit/281101/

Change-Id: I46787be994fdeada8e11d703a903b5069ed7de46
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months ago[M108 Migration] Fix crashes observed during browser / renderer exit 82/286982/3
v-saha [Fri, 6 Jan 2023 06:25:05 +0000 (11:55 +0530)]
[M108 Migration] Fix crashes observed during browser / renderer exit

This patch fixes crashes related to VD Fonts iterator and NativeTCT

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

Change-Id: Ic76f2b365c63507f446c538240774b9629b76b2e
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Aura Migration][MM] Remove pulseaudio dependency 00/287000/1
Venugopal S M [Wed, 11 Mar 2020 15:09:24 +0000 (20:39 +0530)]
[M108 Aura Migration][MM] Remove pulseaudio dependency

This patch disables pulse audio for chromium.

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

Change-Id: I7fb42320d45ee9127d97ca302132ee285bc2c578
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
21 months ago[M108 Migration] Remove EWK_BRINGUP from EWebView::ExecuteJavaScript 34/286934/3
Bakka Uday Kiran [Tue, 17 Jan 2023 05:06:12 +0000 (10:36 +0530)]
[M108 Migration] Remove EWK_BRINGUP from EWebView::ExecuteJavaScript

This patch removes EWK_BRINGUP from EWebView::ExecuteJavaScript.

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

Change-Id: I602c63a2284edc1681899ba68d511beeefb629ad
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Add implementation of SetUserAgentOverride 00/286900/2
v-saha [Mon, 16 Jan 2023 10:11:42 +0000 (15:41 +0530)]
[M108 Migration] Add implementation of SetUserAgentOverride

This commit adds missing implementation for SetUserAgentOverride.

This also removes EWK_BRINGUP in EWebView::GetUserAgent() so that
ewk_view_user_agent_get() returns the actual user agent string
instead of empty string.

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

Change-Id: I71f2893a7dae1c77a42bed9c78f48867ca38bc2b
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration][IME] Support IME additional functionalities 19/286819/7
Gajendra N [Fri, 13 Jan 2023 06:25:34 +0000 (11:55 +0530)]
[M108 Migration][IME] Support IME additional functionalities

Functionalities:
1) Notify FocusedNodeChanged and TextInputStateChanged status
2) New parameters during FocusedNodeChanged:
   password_minlength, radio_or_checkbox, input_maxlength, editable etc.
3) |is_in_form_tag| check
4) inputDevice and remote control info
5) Few other IME related changes, etc.

References:
https://review.tizen.org/gerrit/279650
https://review.tizen.org/gerrit/284673

Change-Id: I3cf646b83727a2aa6d3f23216afa22e972eb80e6
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration][Sensor] Generic Sensor implementation 06/286906/3
ayush.k123 [Mon, 16 Jan 2023 11:08:18 +0000 (16:38 +0530)]
[M108 Migration][Sensor] Generic Sensor implementation

This patch adds implementation of generic sensors
to return sensor readings for types ACCELEROMETER,
LINEAR_ACCELERATION & GYROSCOPE.

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

Change-Id: I22e22a07d926a1ec87d59206ebc65dcf18da1f5c
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Enable proper functionality for ewk_policy_decision_* APIs. 73/286873/3
ayush.k123 [Thu, 12 Jan 2023 11:24:39 +0000 (16:54 +0530)]
[M108 Migration] Enable proper functionality for ewk_policy_decision_* APIs.

This patch migrates the following commits to enables proper functionality
of ewk_policy_decision_* APIs

Reference:
1. https://review.tizen.org/gerrit/273968/
2. https://review.tizen.org/gerrit/279203/
3. https://review.tizen.org/gerrit/280669/

Change-Id: Ic599e5a9d0d9bfa345ab06dc045227814bd6c931
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Remove EWK_BRINGUP from EWebView::Find 78/286878/2
Bakka Uday Kiran [Mon, 16 Jan 2023 07:36:47 +0000 (13:06 +0530)]
[M108 Migration] Remove EWK_BRINGUP from EWebView::Find

This patch removes EWK_BRINGUP from EWebView::Find.

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

Change-Id: Idd59f673439176c6e8b61380a1458bb1878dc579
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Remove unsupported display modes of web app manifest 44/286844/5
Bakka Uday Kiran [Fri, 13 Jan 2023 11:56:34 +0000 (17:26 +0530)]
[M108 Migration] Remove unsupported display modes of web app manifest

This patch removes added web app display modes without ACR.
It will be added according to ACR process when needed.

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

Change-Id: I1eb79456f727db0e319e56901a53ce977beb5a00
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Fix incorrect module dependancy 08/286708/2
Gajendra N [Wed, 11 Jan 2023 11:45:35 +0000 (17:15 +0530)]
[M108 Migration] Fix incorrect module dependancy

Fixing dependency issue : `ui/` shouldn't depend on `content/`, which
may result in build breaks caused by not yet generated mojo files.

IMContentEfl which resides in ui layer had a direct dependancy on
content::RenderWidgetHostImpl, which is incorrect as per chromium
guidelines. Instead, introduce a public helper class as proxy to
route calls at content layer.

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

Change-Id: Ia1ecd29fc9badf58e89c997b6c081880de1c4f66
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months ago[M108 Migration] Add debug log for network request 29/286729/3
Bakka Uday Kiran [Thu, 12 Jan 2023 06:31:42 +0000 (12:01 +0530)]
[M108 Migration] Add debug log for network request

This patch adds debug log for network request.

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

Change-Id: I018d3c4325cc1ab1310e3bf167c166308b379a67
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Migrate patches related to NavigationThrottle and Ewk_Error 13/286713/2
ayush.k123 [Wed, 11 Jan 2023 08:58:50 +0000 (14:28 +0530)]
[M108 Migration] Migrate patches related to NavigationThrottle and Ewk_Error

This patch enables proper functionality of ewk_error_* APIs.

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

Change-Id: I150edcb9497529bac5b7f8eb2c08a596f8145cfc
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][API] Implement application type by EWK API 12/286712/4
ayush.k123 [Wed, 11 Jan 2023 10:45:36 +0000 (16:15 +0530)]
[M108 Migration][API] Implement application type by EWK API

Support function of set and get application type.
  EWK_APPLICATION_TYPE_WEBBROWSER = 0,
  EWK_APPLICATION_TYPE_HBBTV = 1,
  EWK_APPLICATION_TYPE_TIZENWRT = 2,
  EWK_APPLICATION_TYPE_OTHER = 3

Can distinguish application type in Chromium as:
  IsWebBrowser
  IsHbbTV
  IsTizenWRT

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

Change-Id: I8a0af3761f7ef1d46854e16b1abff11cda5d1147
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Remove usage of deprecated BrowserThread::DB/FILE 46/286646/5
Bakka Uday Kiran [Wed, 11 Jan 2023 05:13:40 +0000 (10:43 +0530)]
[M108 Migration] Remove usage of deprecated BrowserThread::DB/FILE

BrowserThread::DB/FILE have been deprecated in upstream
chromium code. This commit removes EWK_BRINGUP macro by
replacing BrowserThread::DB/FILE with SequencedTaskRunner.

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

Change-Id: I29f08251a51aee73de96f4a3bea88e4994d22b5b
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months agoFix build warnings due to unsupported cflags for clang 75/286675/1
Chandan Padhi [Tue, 10 Jan 2023 13:15:41 +0000 (18:45 +0530)]
Fix build warnings due to unsupported cflags for clang

This commit removes following cflags from tizen build that
are not supported for clang.
-Wno-unused-but-set-variable
-Wno-null-pointer-subtraction

Change-Id: Idde981cf2bc247de0a60aca8b2c6c215baf0caa9
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months ago[M108 Migration] Enable proper functionality for ewk_cookie_manager_* APIs. 54/286654/4
Ayush Kumar [Wed, 11 Jan 2023 07:58:52 +0000 (13:28 +0530)]
[M108 Migration] Enable proper functionality for ewk_cookie_manager_* APIs.

This patch enables the proper functionality of ewk_cookies_manager_* APIs.

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

Change-Id: I8a9f23a0cf017d57e80d57e052eba46973a099ae
Signed-off-by: Ayush Kumar<ayush.k123@samsung.com>
21 months ago[IME] Enable Text Composition logic 97/286597/4
Gajendra N [Tue, 10 Jan 2023 09:06:28 +0000 (14:36 +0530)]
[IME] Enable Text Composition logic

This patch adds necessary changes to enable text composition flow
for English and Korean key down and up inputs from HW:KB and IME.

IMContextEfl is notified after a keyevent is processed at the Blink
side, after which |ui::Event| is created and composition is confirmed.

References:
https://review.tizen.org/gerrit/281341
https://review.tizen.org/gerrit/281934
https://review.tizen.org/gerrit/286244

Change-Id: I640aa403ba5d9fd003ce06d0d08f0a792b909686
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
21 months agoRemove gl_current_context_efl.cc 25/286625/2
Chandan Padhi [Fri, 6 Jan 2023 13:14:54 +0000 (18:44 +0530)]
Remove gl_current_context_efl.cc

GetTextureIdFromTexture is no longer used as SharedMailboxManager has been
removed. This commit moves GLGetCurentContext to gl_shared_context_efl.cc
and removes gl_current_context_efl.cc.

Change-Id: I5495ef311b0fa1e707fe6cd273d8206871e2f4c4
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months ago[M108 Migration] Migrate process title related patches 39/286539/5
Koyyani Maheswari [Mon, 9 Jan 2023 10:16:59 +0000 (15:46 +0530)]
[M108 Migration] Migrate process title related patches

1. In Chromium upstream, child process's title has been set by adding all
command line switch. But it is not actually useful and causes some
problems. For instance, crash manager cannot create a file because a title
is too long and it has illegal characters. So, this patch sets process'
title by adding only process type and service type.
2. This change corrects the originally migrated patch to store the process
path in arg[0] and rest of flags in arg[1] properly.
3. As we use setenv to update certain environment vars in chromium-efl,
comparing the memory location of process environment vars with default
|environ| would fail. So this change removes the check for efl port.

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

Change-Id: I7531a9b033b303fa9777fe59606a57a86b4b5b4b
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
21 months ago[M108 Migration] Migrate patches related to contents size and page scale factor 41/286641/2
ayush.k123 [Tue, 10 Jan 2023 10:07:41 +0000 (15:37 +0530)]
[M108 Migration] Migrate patches related to contents size and page scale factor

This patch enables proper functionality for below ewk apis:
ewk_view_contents_size_*
ewk_view_scale_*
ewk_view_scroll_*

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

Change-Id: Id50aaf1abfa970288be3e6953c92a057927ef934
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][API] Implement Intercept Request EWK APIs 87/286587/4
ayush.k123 [Tue, 10 Jan 2023 03:51:29 +0000 (09:21 +0530)]
[M108 Migration][API] Implement Intercept Request EWK APIs

This patch implements Intercept Request EWK APIs.

Reference:
1. https://review.tizen.org/gerrit/273043/
2. https://review.tizen.org/gerrit/273467/
3. https://review.tizen.org/gerrit/279298/

Change-Id: I9bee738d055289644ec3f78c1fc633bca7ed500f
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration][API] Fix ewk_view_text_selection_text_get API 68/286568/2
Bakka Uday Kiran [Tue, 10 Jan 2023 04:10:48 +0000 (09:40 +0530)]
[M108 Migration][API] Fix ewk_view_text_selection_text_get API

It enables sync for text selected by javascript
and proper functionality of ewk_view_text_selection_text_get API.

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

Change-Id: Iec4996ec1f6adb79cb12bacb7863f30d7c34f15a
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration] Add public EWK APIs for multimedia and refactor TizenExtensibleAPI 30/286530/3
ayush.k123 [Mon, 9 Jan 2023 04:09:46 +0000 (09:39 +0530)]
[M108 Migration] Add public EWK APIs for multimedia and refactor TizenExtensibleAPI

Define public APIs
- Public API request for BackgroundMusic
- Public API reuqest for BlockMultimediaOnCall
- Public API request for EnableManualVideoRotation
- Public API reuqest for SoundMode

This patch also refactors TIzenExtensibleAPI.

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

Change-Id: I0b92aeb1900d69be7773e20b409f15fd481447d6
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
21 months ago[M108 Migration] Fix EnteredDOMWindow function return null 49/286449/4
Koyyani Maheswari [Fri, 6 Jan 2023 10:21:49 +0000 (15:51 +0530)]
[M108 Migration] Fix EnteredDOMWindow function return null

With some webapp, there was app crash issue when EnteredDOMWindow
object is null. Now when EnteredDOMWindow object is null, function
returns CurrentDOMWindow object instead of null.

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

Change-Id: Ia79dc1c31770c4d670cb7a1f82a0c13254dc27b1
Signed-off-by: Koyyani Maheswari <m.koyyani@samsung.com>
21 months ago[M108 Migration][Callback] Bring up ewk callbacks which are related with page loading 70/286470/4
v-saha [Fri, 6 Jan 2023 10:53:35 +0000 (16:23 +0530)]
[M108 Migration][Callback] Bring up ewk callbacks which are related with page loading

Below functions were removed from upstream.
WebContentsObserver::DidStartProvisionalLoadForFrame
WebContentsObserver::DidCommitProvisionalLoadForFrame
WebContentsObserver::DidFailProvisionalLoad
WebContentsObserver::DidNavigateMainFrame
WebContentsObserver::DidNavigateAnyFrame

So this patch implements callbacks for page loading using newly added
fucntions:
WebContentsObserver::DidStartNavigation
WebContentsObserver::DidRedirectNavigation
WebContentsObserver::DidFinishNavigation

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

Change-Id: Ib998156f39155b6e334dedeec50249613fd9711d
Signed-off-by: v-saha <v.saha@samsung.com>
21 months ago[M108 Migration] Fix crashes related to shared memory. 08/286508/6
Bakka Uday Kiran [Mon, 9 Jan 2023 05:56:10 +0000 (11:26 +0530)]
[M108 Migration] Fix crashes related to shared memory.

This change supresses couple of checks related to shared memory to
avoid crashes during app exit scenario and adds logs for the same.

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

Change-Id: I1466ec87f91b76fe6989a1d40c17e4cf5f496ab5
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
21 months ago[M108 Migration][API] Add PWA APIs as public API 95/286495/2
ayush.k123 [Fri, 6 Jan 2023 09:06:24 +0000 (14:36 +0530)]
[M108 Migration][API] Add PWA APIs as public API

This patch adds below PWA APIs as public API.

- Ewk_View_Request_Manifest_Callback
- ewk_view_request_manifest
- Ewk_View_Request_Manifest
- Ewk_View_Orientation_Type
- Ewk_View_Web_Display_Mode
- ewk_manifest_short_name_get
- ewk_manifest_name_get
- ewk_manifest_start_url_get
- ewk_manifest_orientation_type_get
- ewk_manifest_web_display_mode_get
- ewk_manifest_theme_color_get
- ewk_manifest_background_color_get
- ewk_manifest_icons_count_get
- ewk_manifest_icons_src_get
- ewk_manifest_icons_type_get
- ewk_manifest_icons_sizes_count_get
- ewk_manifest_icons_width_get
- ewk_manifest_icons_height_get

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

Change-Id: Ie4fc7a2e90ca0a5d21b16863e7469e90f4b5d2e7
Signed-off-by: Ayush Kumar <ayush.k123@samsung.com>
21 months ago[M108 Migration] Use third party libevent instead of system library 56/286456/2
ayush.k123 [Thu, 5 Jan 2023 08:38:20 +0000 (14:08 +0530)]
[M108 Migration] Use third party libevent instead of system library

This patch makes changes to use Chromium third party libevent
for all profiles. This fixes following error occurring on the
device with new platform binary.

>> error while loading shared libraries: libevent-2.1.so.7:

Applying this patch does not change the size of libchromium-ewk.so

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

Change-Id: I684e6c735ddc13ba6126b0ba2539747b9580ef7a
Signed-off-by: ayush.k123 <ayush.k123@samsung.com>
21 months ago[MM] Implement MMPlayer(CAPI) path to support HBBTV. 15/286315/4
Venugopal S M [Tue, 3 Jan 2023 14:01:12 +0000 (19:31 +0530)]
[MM] Implement MMPlayer(CAPI) path to support HBBTV.

Many of functions for HBBTV contents are implemented in MMPlayer side. To reuse
these implementations, MMPlayer will be used for playing HBBTV contents. Others
will be played by ESPP API.

Reference:
https://review.tizen.org/gerrit/276142
https://review.tizen.org/gerrit/276755
https://review.tizen.org/gerrit/276965

Change-Id: I4618e6e9f9a820bff4ada655aa22cb537bccd96b
Signed-off-by: YongGeol Jung <yg48.jung@samsung.com>
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
21 months agofixup! Remove InProcessGpuThreadEfl and GpuChildThreadEfl 13/286313/2
Chandan Padhi [Tue, 3 Jan 2023 12:33:13 +0000 (18:03 +0530)]
fixup! Remove InProcessGpuThreadEfl and GpuChildThreadEfl

In GpuChildThread, GpuChannelManager's shared context will be
overriden with the one created by EFL. Therefore, we can avoid
creation of default shared context in GpuChannelManager.

Change-Id: Id32b42bbf68cc9fc77a85614d5681bd9df293881
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months agofixup! Add build switch to separate onscreen and offscreen targets 58/286358/2
ayush.k123 [Wed, 4 Jan 2023 11:09:31 +0000 (16:39 +0530)]
fixup! Add build switch to separate onscreen and offscreen targets

This patch fixes the path error of pak files during build and
packaging of rpm when out directory does not exist yet.

Change-Id: I77fe89c4a10175b4f1b4ea28f21cba92b5e007a7
Signed-off-by: Ayush Kumar <ayush.k@samsung.com>
21 months agoRemove EWK_BRINGUP for code disabled during M108 build bring up 13/285213/4
Chandan Padhi [Wed, 7 Dec 2022 13:58:55 +0000 (19:28 +0530)]
Remove EWK_BRINGUP for code disabled during M108 build bring up

This commit enables code that was disabled during M108 build bring up.

Change-Id: I73290609db730754af2e9dd55f6eacc0d880197a
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
21 months agoAdd build switch to separate onscreen and offscreen targets 84/285984/10
ayush.k123 [Fri, 23 Dec 2022 11:07:31 +0000 (16:37 +0530)]
Add build switch to separate onscreen and offscreen targets

The RPM size of the normal build is about 200MB. This size is due to
packaging of onscreen targets, chrome and content_shell, in the rpm.
This patch separates chrome and content_shell, and other targets
through a build switch.

Command line for onscreen build:
TV: ./tizen_src/build/build_tv.sh --nodebug --build-chrome
Desktop: ./tizen_src/build/build_desktop.sh --build-chrome

Reference:
1. https://review.tizen.org/gerrit/274726/
2. https://review.tizen.org/gerrit/274898/
3. https://review.tizen.org/gerrit/275228/
4. https://review.tizen.org/gerrit/276006/

Change-Id: I77fe89c4a10175b4f1b4ea28f21cba92b5e001f0
Signed-off-by: Ayush Kumar <ayush.k@samsung.com>
21 months ago[MM] Handle buffering and playback 99/285999/4
Venugopal S M [Fri, 23 Dec 2022 13:21:58 +0000 (18:51 +0530)]
[MM] Handle buffering and playback

- Add queue for handling the decoder buffers
- Handle EOS frame arriving before ESPP buffer gets full
- Handle pending play, buffer level update
- Release ESPP resources on EOS and error
- Pass "kNeedBuffer" from chunkdumxer to ESPP
- Use timebased buffering for playback on TV

Reference:
https://review.tizen.org/gerrit/274860
https://review.tizen.org/gerrit/275104
https://review.tizen.org/gerrit/274698 (partial)
https://review.tizen.org/gerrit/275420
https://review.tizen.org/gerrit/276113
https://review.tizen.org/gerrit/276374
https://review.tizen.org/gerrit/276419
https://review.tizen.org/gerrit/276487
https://review.tizen.org/gerrit/280222

Change-Id: I079096c9a82f502bf72803f9563c618375e21a3e
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
22 months ago[MM] Use ESPP for media rendering 99/285499/6
Venugopal S M [Mon, 21 Mar 2022 07:45:30 +0000 (13:15 +0530)]
[MM] Use ESPP for media rendering

- Use ESPP for media rendering.
- Handling of playback from browser process.
- Added support for software rendering.

- Also, changes are made to suit 108 upversion.
- Alignment is corrected.

Reference:
- https://review.tizen.org/gerrit/271043
- https://review.tizen.org/gerrit/272693
- https://review.tizen.org/gerrit/271947
- https://review.tizen.org/gerrit/273637
- https://review.tizen.org/gerrit/279293

Change-Id: Ic9b9aa396834431b75deee2b41921f261eff2581
Signed-off-by: Venugopal S M <sm.venugopal@samsung.com>
22 months ago[M108 Migration][WebGL] Disable |CommandBufferHelper| auto flushing. 01/285901/7
suyambu.rm [Fri, 15 Oct 2021 09:48:42 +0000 (17:48 +0800)]
[M108 Migration][WebGL] Disable |CommandBufferHelper| auto flushing.

If |automatic_flushes| is true, buffer of |CommandBufferHelper| is flushed
automatically and it causes sync message calls. Due to this main thread is
blocked and performance degradation is observed.

+--------------------+--------+--------+
|      KPI           | Before | After  |
+--------------------+--------+--------+
| 3D/Aquarium        | 35~60  | ~60    |
+--------------------+--------+--------+
| 3D/100 Objects     | 35~60  | ~60    |
+--------------------+--------+--------+
(Target : TV)

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

Change-Id: If287b3b4d12e29c159a70361d251b871377c6818
Signed-off-by: uzair <uzair.jaleel@samsung.com>
22 months ago[M108 Migration] Support GLES 3.0 properly 83/285983/6
uzair [Fri, 23 Dec 2022 11:09:41 +0000 (16:39 +0530)]
[M108 Migration] Support GLES 3.0 properly

This patch enables support for gles 3.0 on evas gl for tizen profiles.
In addition, evas_gl_api_get is changed to evas_gl_context_api_get.

The gles3 support has been disabled for desktop due to crash in
evasgl_make_current(). Hence once crash is resolved it will be enabled
for desktop as well.

Reference Patch:
https://review.tizen.org/gerrit/c/267378

Change-Id: I395c2f9a00c0a3c6ead0a379a35352a86084fb75
Signed-off-by: uzair <uzair.jaleel@samsung.com>
22 months agoRemove DISALLOW_COPY_AND_ASSIGN macros from tizen_src directory 35/286035/5
v-saha [Mon, 26 Dec 2022 12:07:22 +0000 (17:37 +0530)]
Remove DISALLOW_COPY_AND_ASSIGN macros from tizen_src directory

As per upstream changes [1], this patch replaces all occurances of
DISALLOW_COPY_AND_ASSIGN macros with deleted copy and move constructors
inside tizen_src/.

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

Change-Id: Ice2f7b8b227b6ae9409aae4277fe18b00fd65501
Signed-off-by: v-saha <v.saha@samsung.com>
22 months agoRemove InProcessGpuThreadEfl and GpuChildThreadEfl 98/285998/3
Chandan Padhi [Fri, 23 Dec 2022 11:06:51 +0000 (16:36 +0530)]
Remove InProcessGpuThreadEfl and GpuChildThreadEfl

With SharedMailboxManager removed in [1], shared context can be now set
directly in GpuChildThread itself. Therefore, chromium-efl no longer has
to override GpuChildThread and InProcessGpuThread.

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

Change-Id: I2e062c9da159b38877f1311988cdc100109ff02d
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
22 months agoMerge WebContentsViewEflDelegate to WebContentsEflDelegate 78/285978/6
Bakka Uday Kiran [Fri, 23 Dec 2022 09:49:09 +0000 (15:19 +0530)]
Merge WebContentsViewEflDelegate to WebContentsEflDelegate

For AURA, WebContentsViewEfl is not used as it is replaced by WebContentsViewAura,
hence its delegate WebContentsViewEflDelegate cannot be instantiated without it.
So this patch moves the interfaces from WebContentsViewEflDelegate to WebContentsEflDelegate,
and called via WebContentsImplEfl::GetDelegate().

As there are many delegate classes under tizen_src causing confusion sometimes;
removing WebContentsViewEflDelegate improves code structure and understandability.

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

Change-Id: I0f8e2220ece36594a710d179a4706878b14a9ab4
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>