For WRT type App, will set focus when app show:
WRTNativeWindow::Show()->WRTNativeWindow::Focus();
For Browser/hbbtv type App, will set focus by ewk_view_focus_set api.
Keep same with M94, don't set focus when FinishLoad, or else will cause
two focus issue: one focus on webview, another focus on app(such as on
webbrowser url).
refer:
https://review.tizen.org/gerrit/#/c/296637/
Change-Id: I61eee8952019b9cc342ad88503276bb6399a6d43
Signed-off-by: fangfengrong <fr.fang@samsung.com>
#include "ipc/ipc_message_macros.h"
#include "printing/metafile_skia.h"
#include "third_party/skia/include/core/SkBitmap.h"
+#include "tizen_src/chromium_impl/tizen/system_info.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "url/gurl.h"
#endif
TTRACE_WEB("WebContentsObserverEfl::DidFinishLoad");
- web_contents_.Focus();
+ if (IsMobileProfile() || IsWearableProfile())
+ web_contents_.Focus();
}
void WebContentsObserverEfl::DidFailLoad(RenderFrameHost* render_frame_host,