[M114 Migration] Fix for missing mojom binding error during page load 60/300560/3
authorChandan Padhi <c.padhi@samsung.com>
Wed, 12 Apr 2023 13:00:09 +0000 (18:30 +0530)
committerChandan Padhi <c.padhi@samsung.com>
Fri, 27 Oct 2023 08:31:31 +0000 (14:01 +0530)
This commit fixes below errors that resulted in renderer process crash
during loading of www.tumblr.com.

[1027/113315.059524:ERROR:render_process_host_impl.cc(5384)] Terminating
render process for bad Mojo message: Received bad user message: No binder
found for interface blink.mojom.BadgeService for the frame/document scope
[1027/113315.059608:ERROR:bad_message.cc(29)] Terminating renderer for bad
IPC message, reason 123

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

Change-Id: Ibd48409d77fa69ebe16a45b33f1965383b801661
Signed-off-by: Chandan Padhi <c.padhi@samsung.com>
content/browser/browser_interface_binders.cc

index c32cd7e..5ce59a6 100644 (file)
 
 #if BUILDFLAG(IS_EFL)
 #include "content/browser/date_time_chooser_efl.h"
+#include "third_party/blink/public/mojom/badging/badging.mojom.h"
 #endif
 
 #if BUILDFLAG(IS_TIZEN) && !defined(EWK_BRINGUP)
@@ -1210,10 +1211,14 @@ void PopulateBinderMapWithContext(
   map->Add<blink::mojom::TextSuggestionHost>(base::BindRepeating(
       &EmptyBinderForFrame<blink::mojom::TextSuggestionHost>));
 #endif  // BUILDFLAG(IS_ANDROID)
+
 #if BUILDFLAG(IS_EFL)
+  map->Add<blink::mojom::BadgeService>(
+      base::BindRepeating(&EmptyBinderForFrame<blink::mojom::BadgeService>));
   map->Add<blink::mojom::DateTimeChooser>(
       base::BindRepeating(&BindDateTimeChooserForFrame));
 #endif
+
   map->Add<blink::mojom::ClipboardHost>(
       base::BindRepeating(&ClipboardHostImpl::Create));
   map->Add<blink::mojom::SpeculationHost>(