From 6597ae6fa7e8b2503cb5f5324d268f9fda1e4a70 Mon Sep 17 00:00:00 2001 From: iefremov Date: Wed, 9 Jan 2019 16:52:56 +0700 Subject: [PATCH] Merge pull request #1272 from brave/devtools_resize_crash Issue 2799: Fix tab crash while resizing the devtools window. --- renderer/brave_content_settings_observer_helper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer/brave_content_settings_observer_helper.h b/renderer/brave_content_settings_observer_helper.h index 7abbcc23184d..a471eb0de8fd 100644 --- a/renderer/brave_content_settings_observer_helper.h +++ b/renderer/brave_content_settings_observer_helper.h @@ -12,7 +12,9 @@ #include "third_party/blink/renderer/platform/bindings/script_state.h" static bool AllowFingerprinting(blink::LocalFrame* frame) { - if (!frame) return true; + if (!frame || !frame->GetContentSettingsClient()) { + return true; + } return frame->GetContentSettingsClient()->AllowFingerprinting(true); }