diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 22:10:53 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-11 22:10:53 +0000 |
commit | 5203a4f3fc6bd8bcb2d521db09bc2625bf48c2cc (patch) | |
tree | 27c3e90f67f600d430e1589aa88272505ba42305 | |
parent | 352f5f1366835c91b908c51d9d8779e35fe86caf (diff) | |
download | chromium_src-5203a4f3fc6bd8bcb2d521db09bc2625bf48c2cc.zip chromium_src-5203a4f3fc6bd8bcb2d521db09bc2625bf48c2cc.tar.gz chromium_src-5203a4f3fc6bd8bcb2d521db09bc2625bf48c2cc.tar.bz2 |
Relanding a backed-out CL that was thought to cause reliability test failure but that is not the culprit after-all:
The navigation entry's state would not be returned for navigation entries of
error pages (such as 404).
This was causing the following problems when navigating back to a 404 page in
test shell:
- a new entry to be created instead of going back to the existing entry
- the navTarget property not to be set on the HistoryItem
That was causing the LayoutTests/http/tests/navigation/error404-goback.html
failure.
It seems safe to return the navigation entry's state for an error page.
BUG=None
TBR=jar
Review URL: http://codereview.chromium.org/43100
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11487 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/webframe_impl.cc | 2 | ||||
-rw-r--r-- | webkit/tools/layout_tests/test_lists/tests_fixable.txt | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index bf4fb03..4894a7d 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -492,7 +492,7 @@ bool WebFrameImpl::GetPreviousHistoryState(std::string* history_state) const { // is expected to query the history state after a navigation occurs, after // the desired history item has become the previous entry. RefPtr<HistoryItem> item = webview_impl_->GetPreviousHistoryItem(); - if (!item || item->lastVisitWasFailure()) + if (!item) return false; static StatsCounterTimer history_timer("GetHistoryTimer"); diff --git a/webkit/tools/layout_tests/test_lists/tests_fixable.txt b/webkit/tools/layout_tests/test_lists/tests_fixable.txt index 3e000d2..405bcb6 100644 --- a/webkit/tools/layout_tests/test_lists/tests_fixable.txt +++ b/webkit/tools/layout_tests/test_lists/tests_fixable.txt @@ -1199,7 +1199,7 @@ MAC : LayoutTests/fast/events/init-events.html = FAIL // maybe we just need to update to this order? MAC : LayoutTests/fast/events/drag-in-frames.html = FAIL -// These two have a different object type in the dom dump. Plugin-related. +// These two have a different object type in the dom dump. Plugin-related. // Ignored on Win/Linux because they rely on QT to provide a TIFF decoder. MAC : LayoutTests/fast/images/embed-image.html = FAIL MAC : LayoutTests/fast/images/object-image.html = FAIL @@ -1348,7 +1348,7 @@ LINUX MAC : LayoutTests/fast/transforms/transformed-focused-text-input.html = FA LINUX : LayoutTests/fast/events/5056619.html = PASS FAIL // Failed with r6844 (dglazkov) -LayoutTests/http/tests/navigation/error404-goback.html = FAIL +LINUX MAC : LayoutTests/http/tests/navigation/error404-goback.html = FAIL // Passes when run by itself. Fails on the buildbot. // For Windows, see bug 8291. @@ -1726,7 +1726,7 @@ DEFER WIN : LayoutTests/transitions/transition-end-event-transform.html = FAIL P // Timing out starting 03/10/09 MAC : LayoutTests/fast/dom/navigator-detached-no-crash.html = PASS TIMEOUT -// Added 3/10/09. +// Added 3/10/09. DEFER WIN : LayoutTests/transitions/transition-end-event-multiple-01.html = FAIL PASS DEFER WIN : LayoutTests/transitions/transition-end-event-create.html = FAIL PASS DEFER WIN : LayoutTests/transitions/transition-end-event-window.html = FAIL PASS @@ -1749,7 +1749,7 @@ SKIP DEFER : LayoutTests/fast/block/float/crash-on-absolute-positioning.html = F // a revert. WIN LINUX : LayoutTests/fast/repaint/transform-replaced-shadows.html = FAIL -DEFER WIN : LayoutTests/svg/dom/animated-tearoff-equality.xhtml = FAIL +DEFER WIN : LayoutTests/svg/dom/animated-tearoff-equality.xhtml = FAIL DEFER WIN : LayoutTests/svg/dom/animated-tearoff-lifespan.xhtml = FAIL // Started failing at r11441:11442, which has no code changes! |