| 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 384bceeafbe37a8ccaab4546a517d86c8df019d1..7f8e47c9343226b104b5cb25ea9aae27681ddeea 100644
|
| --- a/content/browser/frame_host/navigator_impl.cc
|
| +++ b/content/browser/frame_host/navigator_impl.cc
|
| @@ -164,6 +164,8 @@ void NavigatorImpl::DidStartProvisionalLoad(
|
| bool is_main_frame = render_frame_host->frame_tree_node()->IsMainFrame();
|
| NavigationEntryImpl* pending_entry =
|
| NavigationEntryImpl::FromNavigationEntry(controller_->GetPendingEntry());
|
| + if (pending_entry && is_error_page)
|
| + pending_entry->set_page_type(PAGE_TYPE_ERROR);
|
| if (is_main_frame) {
|
| // If there is no browser-initiated pending entry for this navigation and it
|
| // is not for the error URL, create a pending entry using the current
|
| @@ -538,6 +540,7 @@ void NavigatorImpl::DidNavigate(
|
|
|
| delegate_->DidCommitProvisionalLoad(render_frame_host,
|
| params.url,
|
| + params.url_is_unreachable,
|
| transition_type);
|
| }
|
|
|
|
|