Index: chrome/browser/printing/print_preview_dialog_controller.cc |
diff --git a/chrome/browser/printing/print_preview_dialog_controller.cc b/chrome/browser/printing/print_preview_dialog_controller.cc |
index 35635e61855c9432880f8c7a5f695ef1024f7361..f07f1377a525094f2972e539329963b7465e7fc4 100644 |
--- a/chrome/browser/printing/print_preview_dialog_controller.cc |
+++ b/chrome/browser/printing/print_preview_dialog_controller.cc |
@@ -318,6 +318,14 @@ void PrintPreviewDialogController::OnNavEntryCommitted( |
return; |
} |
+ if (details) { |
Lei Zhang
2016/07/30 00:36:30
Isn't this handling navigation for both the initia
rbpotter
2016/07/30 01:06:44
When the gmail auto-navigation happens, the conten
rbpotter
2016/07/30 01:20:18
Done.
|
+ ui::PageTransition type = details->entry->GetTransitionType(); |
+ content::NavigationType nav_type = details->type; |
+ if (nav_type == content::NAVIGATION_TYPE_EXISTING_PAGE && |
rbpotter
2016/07/30 00:03:49
This condition covers the case that appears for th
|
+ (ui::PageTransitionCoreTypeIs(type, ui::PAGE_TRANSITION_TYPED) || |
+ ui::PageTransitionCoreTypeIs(type, ui::PAGE_TRANSITION_LINK))) |
+ return; |
+ } |
if (contents == preview_dialog) { |
// Preview dialog navigated. |
if (details) { |