summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_preview_message_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/printing/print_preview_message_handler.cc')
-rw-r--r--chrome/browser/printing/print_preview_message_handler.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index d3e1cdf..7cf1f0d 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/printing/print_preview_tab_controller.h"
+#include "chrome/browser/printing/print_view_manager.h"
#include "chrome/browser/printing/printer_query.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/print_preview_ui.h"
@@ -258,6 +259,11 @@ void PrintPreviewMessageHandler::NavigateToPendingEntry(
DCHECK_EQ(NavigationController::RELOAD, reload_type);
return;
}
+ // If |tab| is navigating and it has a print preview tab, notify |tab| to
+ // consider print preview done so it unfreezes the renderer in the case of
+ // window.print().
+ if (preview_tab)
+ tab->print_view_manager()->PrintPreviewDone();
}
} // namespace printing