Changeset 82843 in webkit


Ignore:
Timestamp:
Apr 4, 2011 10:05:55 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-04 Yong Li <yoli@rim.com>

Reviewed by Antonio Gomes.

https://bugs.webkit.org/show_bug.cgi?id=55969
Add a test that verifies history scroll position is restored
when WebKit goes forward from an unreachable URL error page.
(Error page handling is only supported by Qt DRT.)

  • platform/qt/fast/history/back-to-unreachable-url-then-forward-expected.txt: Added.
  • platform/qt/fast/history/back-to-unreachable-url-then-forward.html: Added.
  • platform/qt/fast/history/resources/check-scroll-position.html: Added.

2011-04-04 Yong Li <yoli@rim.com>

Reviewed by Antonio Gomes.

https://bugs.webkit.org/show_bug.cgi?id=55969
Fix the issue that document state is not saved when
going backward and ending up with error page.

Test: platform/qt/fast/history/back-to-unreachable-url-then-forward.html

(For manual test, load a non-existent html first, then load
fast/history/resources/check-scroll-position.html, then go
back and go forward. If it doesn't show "SUCCESS" at the bottom
of the page, your browser has failed the test)

  • loader/FrameLoader.cpp: (WebCore::FrameLoader::load):
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r82841 r82843  
     12011-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
    1142011-04-04  Jessie Berlin  <jberlin@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r82837 r82843  
     12011-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
    1192011-04-04  Sergio Villar Senin  <svillar@igalia.com>
    220
  • trunk/Source/WebCore/loader/FrameLoader.cpp

    r82580 r82843  
    14671467    // "load without affecting history" ?
    14681468    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
    14691474        ASSERT(type == FrameLoadTypeStandard);
    14701475        type = FrameLoadTypeReload;
Note: See TracChangeset for help on using the changeset viewer.