summaryrefslogtreecommitdiffstats
path: root/chrome/browser/navigation_controller.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-31 02:08:33 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-31 02:08:33 +0000
commit581532a56a9f72d337344901623c831054d37463 (patch)
treee32b4d458960b88eb012597bce7225bf1c474ef3 /chrome/browser/navigation_controller.cc
parentb424cbe84ac347bfc6b673c92e9fd2f496cf963c (diff)
downloadchromium_src-581532a56a9f72d337344901623c831054d37463.zip
chromium_src-581532a56a9f72d337344901623c831054d37463.tar.gz
chromium_src-581532a56a9f72d337344901623c831054d37463.tar.bz2
Bug fix issue 4669 (http://code.google.com/p/chromium/issues/detail?id=4669)
When doing a view source action and then go to other address and back to view source page. Forward addresses become backward addresses. The reason is that every view source page is treated as a standard load because content_state() is always empty. The content state should be filled in SetContentStateIfEmpty() Review URL: http://codereview.chromium.org/16221 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/navigation_controller.cc')
-rw-r--r--chrome/browser/navigation_controller.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/navigation_controller.cc b/chrome/browser/navigation_controller.cc
index e1ccbb1..3e34702 100644
--- a/chrome/browser/navigation_controller.cc
+++ b/chrome/browser/navigation_controller.cc
@@ -53,7 +53,8 @@ void SetContentStateIfEmpty(NavigationEntry* entry) {
(entry->tab_type() == TAB_CONTENTS_WEB ||
entry->tab_type() == TAB_CONTENTS_NEW_TAB_UI ||
entry->tab_type() == TAB_CONTENTS_ABOUT_UI ||
- entry->tab_type() == TAB_CONTENTS_HTML_DIALOG)) {
+ entry->tab_type() == TAB_CONTENTS_HTML_DIALOG ||
+ entry->tab_type() == TAB_CONTENTS_VIEW_SOURCE)) {
entry->set_content_state(
webkit_glue::CreateHistoryStateForURL(entry->url()));
}