From 13062350980e172a8cae82af0a1f0caa993bb9e4 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 2 Sep 2020 15:06:45 -0400 Subject: [PATCH] Disable Badging API which is not supported (fixes issue #3005) --- libcef/renderer/alloy/alloy_content_renderer_client.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libcef/renderer/alloy/alloy_content_renderer_client.cc b/libcef/renderer/alloy/alloy_content_renderer_client.cc index 4711c31d4..787f7b461 100644 --- a/libcef/renderer/alloy/alloy_content_renderer_client.cc +++ b/libcef/renderer/alloy/alloy_content_renderer_client.cc @@ -107,6 +107,7 @@ #include "third_party/blink/public/web/web_prerenderer_client.h" #include "third_party/blink/public/web/web_security_policy.h" #include "third_party/blink/public/web/web_view.h" +#include "third_party/blink/renderer/platform/runtime_enabled_features.h" #include "ui/base/l10n/l10n_util.h" #if defined(OS_MACOSX) @@ -359,10 +360,11 @@ void AlloyContentRendererClient::RunSingleProcessCleanup() { } void AlloyContentRendererClient::PostIOThreadCreated( - base::SingleThreadTaskRunner*) { + base::SingleThreadTaskRunner*) { // TODO(cef): Enable these once the implementation supports it. blink::WebRuntimeFeatures::EnableNotifications(false); blink::WebRuntimeFeatures::EnablePushMessaging(false); + blink::RuntimeEnabledFeatures::SetBadgingEnabled(false); } void AlloyContentRendererClient::RenderThreadStarted() {