summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 02:15:40 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 02:15:40 +0000
commit13324b2fe5b579fe0338ab30084b01e92e7523be (patch)
tree89d9b918c6fa0f5b7d70664a500933b2c0e8e432 /webkit/glue/webframe_impl.cc
parent462e522c983de882463619a11430a073db6b04af (diff)
downloadchromium_src-13324b2fe5b579fe0338ab30084b01e92e7523be.zip
chromium_src-13324b2fe5b579fe0338ab30084b01e92e7523be.tar.gz
chromium_src-13324b2fe5b579fe0338ab30084b01e92e7523be.tar.bz2
Chromium side of merge 40314:40364.
Review URL: http://codereview.chromium.org/19485 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8946 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index fcae8a1..06ecdea 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1629,30 +1629,16 @@ PassRefPtr<Frame> WebFrameImpl::CreateChildFrame(
// If we're moving in the backforward list, we might want to replace the
// content of this child frame with whatever was there at that point.
- // Reload will maintain the frame contents, LoadSame will not.
if (parent_item && parent_item->children().size() != 0 &&
- (isBackForwardLoadType(load_type) ||
- load_type == WebCore::FrameLoadTypeReloadAllowingStaleData)) {
+ isBackForwardLoadType(load_type)) {
HistoryItem* child_item = parent_item->childItemWithName(request.frameName());
if (child_item) {
// Use the original URL to ensure we get all the side-effects, such as
// onLoad handlers, of any redirects that happened. An example of where
// this is needed is Radar 3213556.
new_url = child_item->originalURL();
-
- // These behaviors implied by these loadTypes should apply to the child
- // frames
child_load_type = load_type;
-
- if (isBackForwardLoadType(load_type)) {
- // For back/forward, remember this item so we can traverse any child
- // items as child frames load.
- child_frame->loader()->setProvisionalHistoryItem(child_item);
- } else {
- // For reload, just reinstall the current item, since a new child frame
- // was created but we won't be creating a new BF item
- child_frame->loader()->setCurrentHistoryItem(child_item);
- }
+ child_frame->loader()->setProvisionalHistoryItem(child_item);
}
}