[M108 Migration][VD] Fix FocusInOutCallbacks not handled issue 66/289066/2
authorliuxd <xd123.liu@samsung.com>
Tue, 28 Feb 2023 06:37:33 +0000 (14:37 +0800)
committerBot Blink <blinkbot@samsung.com>
Fri, 10 Mar 2023 06:04:40 +0000 (06:04 +0000)
commit9107378744171945e92e87c05b4cd003b673afff
tree304c3a9cbb66cd6a9bfce7acb779f9428f5ef058
parent4fdde5f687faf07bef26eb53d4f02ea29c322b1c
[M108 Migration][VD] Fix FocusInOutCallbacks not handled issue

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

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

   So add PostRenderViewReady when CreateNewWindow.

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

   So call RenderViewReady directly on PostRenderViewReady.

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

   So pending setfocus when RenderView is not Live.

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

Change-Id: I591ce004f418dca05b56a22c42c7d196a3337024
Signed-off-by: liuxd <xd123.liu@samsung.com>
content/browser/renderer_host/render_frame_host_impl.cc
content/browser/renderer_host/render_view_host_impl.cc
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/eweb_view.h