[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>