Index: chrome/browser/ui/webui/print_preview_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/print_preview_handler.cc (revision 92822) |
+++ chrome/browser/ui/webui/print_preview_handler.cc (working copy) |
@@ -827,6 +827,11 @@ |
TabContentsWrapper* wrapper = |
TabContentsWrapper::GetCurrentWrapperForContents(initiator_tab); |
wrapper->print_view_manager()->set_observer(NULL); |
+ |
+ // Tell the initiator tab to stop rendering the print preview, if any, |
+ // since the preview tab is gone. |
+ RenderViewHost* rvh = initiator_tab->render_view_host(); |
+ rvh->Send(new PrintMsg_AbortPreview(rvh->routing_id())); |
} |
void PrintPreviewHandler::FileSelected(const FilePath& path, |