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

Unified Diff: chrome/browser/prerender/prerender_contents.cc

Issue 2656653002: Suppress NEW_NAVIGATION_ENTRY prerenderer failures for ORIGIN_OFFLINE (Closed)
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_contents.cc
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index aea147d28bf082ac2336cfc8edae770afc03b79b..63babedce16d3cf4cd5568b845433b10cf26441e 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -585,7 +585,8 @@ void PrerenderContents::DidNavigateMainFrame(
// history entries. (Calls to location.replace, navigations before onload, and
// <meta http-equiv=refresh> with timeouts under 1 second do not create
// entries in Blink.)
- if (prerender_contents_->GetController().GetEntryCount() > 1) {
+ if (origin() != ORIGIN_OFFLINE &&
+ prerender_contents_->GetController().GetEntryCount() > 1) {
Destroy(FINAL_STATUS_NEW_NAVIGATION_ENTRY);
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698