Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Unified Diff: extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc

Issue 2611643004: Don't abort the PDF stream if a navigation is intiated within the same page. (Closed)
Patch Set: Fix redness. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/pdf/pdf_href_replace_state.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc
diff --git a/extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc b/extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc
index a4657c9b0af568f40903e7bee1c4f2f108fb003c..aa2a7f87c3fb39f89c36ced3af0f55ae848d7e0f 100644
--- a/extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc
+++ b/extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc
@@ -223,7 +223,7 @@ void MimeHandlerStreamManager::EmbedderObserver::
void MimeHandlerStreamManager::EmbedderObserver::DidStartNavigation(
content::NavigationHandle* navigation_handle) {
// If the top level frame is navigating away, clean up the stream.
- if (navigation_handle->IsInMainFrame())
+ if (navigation_handle->IsInMainFrame() && !navigation_handle->IsSamePage())
AbortStream();
}
« no previous file with comments | « chrome/test/data/pdf/pdf_href_replace_state.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698