Fix for missing mojom binding error during page load 26/291426/3
authorUday Kiran Bakka <b.kiran@samsung.com>
Fri, 14 Apr 2023 06:55:58 +0000 (12:25 +0530)
committerBakka Uday Kiran <b.kiran@samsung.com>
Sun, 16 Apr 2023 19:28:45 +0000 (00:58 +0530)
Below change fixes error [1] which caused render process crash
during loading of www.reddit.com.
[1] No binder found for interface blink.mojom.BadgeService

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

Change-Id: I9bc0ebbc6b492d1e9ab8510739a994a68631d878
Signed-off-by: Bakka Uday Kiran <b.kiran@samsung.com>
content/browser/browser_interface_binders.cc

index bf0cf64a56a464de6128d73b064395c8a00da12c..d0413f727581062fcdcb15a1179cf05a2f78585f 100644 (file)
 
 #if defined(USE_EFL)
 #include "content/browser/date_time_chooser_efl.h"
+#include "third_party/blink/public/mojom/badging/badging.mojom.h"
 #endif
 
 #if defined(OS_TIZEN_TV_PRODUCT) && defined(ENABLE_ESPLUSPLAYER)
@@ -1020,6 +1021,10 @@ void PopulateBinderMapWithContext(
   map->Add<blink::mojom::UnhandledTapNotifier>(base::BindRepeating(
       &EmptyBinderForFrame<blink::mojom::UnhandledTapNotifier>));
 #endif
+#if defined(USE_EFL)
+  map->Add<blink::mojom::BadgeService>(
+      base::BindRepeating(&EmptyBinderForFrame<blink::mojom::BadgeService>));
+#endif
 
   map->Add<blink::mojom::BackgroundFetchService>(
       base::BindRepeating(&BackgroundFetchServiceImpl::CreateForFrame));