-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=89788 Patch by Dan Alcantara <dfalcantara@chromium.org> on 2012-06-28 Reviewed by Adam Barth. Adds a new reload method for cases where we need to override the URL when reloading a page. This is needed for situations where a server redirects navigation based on information that may have changed since the last time the page was loaded. User agents, for example, can cause a server to redirect to the mobile version of a page. Changing to the desktop version by switching user agents requires loading a URL from before the redirect occurred. Also adds a unit test to confirm that scroll position and page scale are saved when the reload occurs. * public/WebFrame.h: (WebFrame): * src/WebFrameImpl.cpp: (WebKit::WebFrameImpl::reloadWithGivenURL): (WebKit): * src/WebFrameImpl.h: (WebFrameImpl): * src/WebViewImpl.cpp: (WebKit::WebViewImpl::WebViewImpl): (WebKit::WebViewImpl::setClearPageScaleFactorOnLoad): (WebKit): (WebKit::WebViewImpl::didCommitLoad): * src/WebViewImpl.h: (WebViewImpl): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2090e275