Skip to content

Commit

Permalink
Issue 2799: Fix tab crash while resizing the devtools window.
Browse files Browse the repository at this point in the history
FrameContentClient of a given frame can obviously be null, lets check it.

Fix brave/brave-browser#2799
  • Loading branch information
Ivan Efremov committed Jan 9, 2019
1 parent c6f2b83 commit 7ff26c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion renderer/brave_content_settings_observer_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7ff26c2

Please sign in to comment.