Chromium Code Reviews| Index: content/browser/frame_host/navigator_impl.cc |
| diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
| index 531e06b0cf9d13b5130d4d88ba3b0ddf23d68725..5a7a32e887b22920e2028f3eb13843f591c63326 100644 |
| --- a/content/browser/frame_host/navigator_impl.cc |
| +++ b/content/browser/frame_host/navigator_impl.cc |
| @@ -423,10 +423,10 @@ bool NavigatorImpl::NavigateToEntry( |
| CHECK_EQ(controller_->GetPendingEntry(), &entry); |
| if (controller_->GetPendingEntryIndex() == -1 && |
| - IsRendererDebugURL(dest_url)) { |
| + dest_url.SchemeIs(url::kJavaScriptScheme)) { |
|
jam
2016/10/13 20:27:52
I made this change while changing another line bel
|
| // If the pending entry index is -1 (which means a new navigation rather |
| - // than a history one), and the user typed in a debug URL, don't add it to |
| - // the session history. |
| + // than a history one), and the user typed in a javascript: URL, don't add |
| + // it to the session history. |
| // |
| // This is a hack. What we really want is to avoid adding to the history any |
| // URL that doesn't generate content, and what would be great would be if we |