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); }