diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/frame/frame_console.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/frame/frame_console.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/core/frame/frame_console.cc b/chromium/third_party/blink/renderer/core/frame/frame_console.cc index 2e8f77d8c83..0ae65855a4a 100644 --- a/chromium/third_party/blink/renderer/core/frame/frame_console.cc +++ b/chromium/third_party/blink/renderer/core/frame/frame_console.cc @@ -76,8 +76,9 @@ void FrameConsole::ReportMessageToClient(mojom::ConsoleMessageSource source, if (source == mojom::ConsoleMessageSource::kConsoleApi) { if (!frame_->GetPage()) return; - if (frame_->GetChromeClient().ShouldReportDetailedMessageForSource(*frame_, - url)) { + if (frame_->GetChromeClient() + .ShouldReportDetailedMessageForSourceAndSeverity(*frame_, level, + url)) { std::unique_ptr<SourceLocation> full_location = SourceLocation::CaptureWithFullStackTrace(); if (!full_location->IsUnknown()) @@ -85,8 +86,9 @@ void FrameConsole::ReportMessageToClient(mojom::ConsoleMessageSource source, } } else { if (!location->IsUnknown() && - frame_->GetChromeClient().ShouldReportDetailedMessageForSource(*frame_, - url)) + frame_->GetChromeClient() + .ShouldReportDetailedMessageForSourceAndSeverity(*frame_, level, + url)) stack_trace = location->ToString(); } |