From d8b4281c06e3f8e7c75acb672532415c30c27280 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 12 May 2020 16:25:13 -0400 Subject: [PATCH] Fix window.print() of PDF file (fixes issue #2987) --- .../renderer/extensions/print_render_frame_helper_delegate.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcef/renderer/extensions/print_render_frame_helper_delegate.cc b/libcef/renderer/extensions/print_render_frame_helper_delegate.cc index 8e737399c..40434fb5b 100644 --- a/libcef/renderer/extensions/print_render_frame_helper_delegate.cc +++ b/libcef/renderer/extensions/print_render_frame_helper_delegate.cc @@ -55,9 +55,6 @@ bool CefPrintRenderFrameHelperDelegate::IsPrintPreviewEnabled() { bool CefPrintRenderFrameHelperDelegate::OverridePrint( blink::WebLocalFrame* frame) { - if (!frame->GetDocument().IsPluginDocument()) - return false; - auto* post_message_support = extensions::PostMessageSupport::FromWebLocalFrame(frame); if (post_message_support) {