Chromium Code Reviews| 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..539c53e63973d029304d59beba083b655d1b5b09 100644 |
| --- a/chrome/browser/prerender/prerender_contents.cc |
| +++ b/chrome/browser/prerender/prerender_contents.cc |
| @@ -577,6 +577,10 @@ void PrerenderContents::DidFinishLoad( |
| void PrerenderContents::DidNavigateMainFrame( |
| const content::LoadCommittedDetails& details, |
| const content::FrameNavigateParams& params) { |
| + // Offline requests are not subject to navigation and use of history. |
| + if (origin() != ORIGIN_OFFLINE) |
|
pasko
2017/01/25 12:20:54
s/!=/==/
in case you wondered why a few tests fai
dougarnett
2017/01/25 20:39:33
:-)
|
| + return; |
| + |
| // If the prerender made a second navigation entry, abort the prerender. This |
| // avoids having to correctly implement a complex history merging case (this |
| // interacts with location.replace) and correctly synchronize with the |