Fixes crash when using virtual keyboard.
authorArnaud Renevier <a.renevier@samsung.com>
Thu, 16 Oct 2014 23:19:40 +0000 (16:19 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
For whatever reason, when typing a text, once the second character has
been entered, EWebView::UpdateHitTestData is called. It crashes during
the copy of SkBitmap.

One way to prevent the crash is to avoid the copy of the
Hit_Test_Image_Buffer (and therefore the SkBitmap) in _Ewk_Hit_Test ipc
struct. Hit_Test_Image_Buffer is not used by the renderer.

In the long term, we should probably investigate more the underlying
nature of the crash. But for the moment, this patch allows the keyboard
to work without crashing.

Bug: http://107.108.218.239/bugzilla/show_bug.cgi?id=5456
Reviewed by:  Antonio Gomes

Change-Id: I9d7061e220a17d067f2a0e2b62c0c05b0af449a1
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
tizen_src/impl/common/render_messages_efl.h

index 54f1243..fd047c0 100644 (file)
@@ -103,7 +103,10 @@ IPC_STRUCT_TRAITS_BEGIN(_Ewk_Hit_Test)
   IPC_STRUCT_TRAITS_MEMBER(isEditable)
   IPC_STRUCT_TRAITS_MEMBER(mode)
   IPC_STRUCT_TRAITS_MEMBER(nodeData)
+// XXX: find a better way to prevent the crash when copying SkBitmap
+#if !defined(EWK_BRINGUP)
   IPC_STRUCT_TRAITS_MEMBER(imageData)
+#endif
 IPC_STRUCT_TRAITS_END()
 
 IPC_STRUCT_TRAITS_BEGIN(DidPrintPagesParams)