diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 22:18:29 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 22:18:29 +0000 |
commit | 81cf6f77e3bf3a413220d9b28ba83d85567d9048 (patch) | |
tree | 2511422f4c1d0b097f5552f1a5033946a37d765e /webkit/glue/webframe_impl.cc | |
parent | c0048b454d97599f3e4a02ed30d01345bb4216c1 (diff) | |
download | chromium_src-81cf6f77e3bf3a413220d9b28ba83d85567d9048.zip chromium_src-81cf6f77e3bf3a413220d9b28ba83d85567d9048.tar.gz chromium_src-81cf6f77e3bf3a413220d9b28ba83d85567d9048.tar.bz2 |
Revert r15244. Failed tests :(
TBR=mpcomplete
Review URL: http://codereview.chromium.org/99370
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r-- | webkit/glue/webframe_impl.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc index 46faf37..3b87d4f 100644 --- a/webkit/glue/webframe_impl.cc +++ b/webkit/glue/webframe_impl.cc @@ -150,6 +150,7 @@ MSVC_POP_WARNING(); #include "webkit/glue/webdatasource_impl.h" #include "webkit/glue/weberror_impl.h" #include "webkit/glue/webframe_impl.h" +#include "webkit/glue/webhistoryitem_impl.h" #include "webkit/glue/weburlrequest_impl.h" #include "webkit/glue/webtextinput_impl.h" #include "webkit/glue/webview_impl.h" @@ -713,15 +714,25 @@ void WebFrameImpl::CacheCurrentRequestInfo(WebDataSourceImpl* datasource) { // own requests, so the extra data needs to be transferred. scoped_refptr<WebRequest::ExtraData> extra; - // Our extra data may come from a request issued via LoadRequest. - if (currently_loading_request_) + // Our extra data may come from a request issued via LoadRequest, or a + // history navigation from WebCore. + if (currently_loading_request_) { extra = currently_loading_request_->GetExtraData(); + } else if (currently_loading_history_item_) { + extra = currently_loading_history_item_->GetExtraData(); + currently_loading_history_item_ = 0; + } // We must only update this if it is valid, or the valid state will be lost. if (extra) datasource->SetExtraData(extra); } +void WebFrameImpl::set_currently_loading_history_item( + WebHistoryItemImpl* item) { + currently_loading_history_item_ = item; +} + void WebFrameImpl::StopLoading() { if (!frame_) return; |