Changeset 82843 in webkit
- Timestamp:
- Apr 4, 2011 10:05:55 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r82841 r82843 1 2011-04-04 Yong Li <yoli@rim.com> 2 3 Reviewed by Antonio Gomes. 4 5 https://bugs.webkit.org/show_bug.cgi?id=55969 6 Add a test that verifies history scroll position is restored 7 when WebKit goes forward from an unreachable URL error page. 8 (Error page handling is only supported by Qt DRT.) 9 10 * platform/qt/fast/history/back-to-unreachable-url-then-forward-expected.txt: Added. 11 * platform/qt/fast/history/back-to-unreachable-url-then-forward.html: Added. 12 * platform/qt/fast/history/resources/check-scroll-position.html: Added. 13 1 14 2011-04-04 Jessie Berlin <jberlin@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r82837 r82843 1 2011-04-04 Yong Li <yoli@rim.com> 2 3 Reviewed by Antonio Gomes. 4 5 https://bugs.webkit.org/show_bug.cgi?id=55969 6 Fix the issue that document state is not saved when 7 going backward and ending up with error page. 8 9 Test: platform/qt/fast/history/back-to-unreachable-url-then-forward.html 10 11 (For manual test, load a non-existent html first, then load 12 fast/history/resources/check-scroll-position.html, then go 13 back and go forward. If it doesn't show "SUCCESS" at the bottom 14 of the page, your browser has failed the test) 15 16 * loader/FrameLoader.cpp: 17 (WebCore::FrameLoader::load): 18 1 19 2011-04-04 Sergio Villar Senin <svillar@igalia.com> 2 20 -
trunk/Source/WebCore/loader/FrameLoader.cpp
r82580 r82843 1467 1467 // "load without affecting history" ? 1468 1468 if (shouldReloadToHandleUnreachableURL(newDocumentLoader)) { 1469 // shouldReloadToHandleUnreachableURL() returns true only when the original load type is back-forward. 1470 // In this case we should save the document state now. Otherwise the state can be lost because load type is 1471 // changed and updateForBackForwardNavigation() will not be called when loading is committed. 1472 history()->saveDocumentAndScrollState(); 1473 1469 1474 ASSERT(type == FrameLoadTypeStandard); 1470 1475 type = FrameLoadTypeReload;
Note: See TracChangeset
for help on using the changeset viewer.