Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(539)

Side by Side Diff: third_party/WebKit/Source/core/page/CreateWindow.cpp

Issue 1983913002: Test to see if we can bring in document data from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebLocalFrameImpl::loadData Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 if (policy == NavigationPolicyCurrentTab) 202 if (policy == NavigationPolicyCurrentTab)
203 policy = NavigationPolicyNewForegroundTab; 203 policy = NavigationPolicyNewForegroundTab;
204 204
205 WindowFeatures features; 205 WindowFeatures features;
206 bool created; 206 bool created;
207 Frame* newFrame = createWindowHelper(openerFrame, openerFrame, openerFrame, request, features, policy, shouldSetOpener, created); 207 Frame* newFrame = createWindowHelper(openerFrame, openerFrame, openerFrame, request, features, policy, shouldSetOpener, created);
208 if (!newFrame) 208 if (!newFrame)
209 return; 209 return;
210 if (shouldSendReferrer == MaybeSendReferrer) { 210 if (shouldSendReferrer == MaybeSendReferrer) {
211 // TODO(japhet): Does ReferrerPolicy need to be proagated for RemoteFram es? 211 // TODO(japhet): Does ReferrerPolicy need to be propagated for RemoteFra mes?
212 if (newFrame->isLocalFrame()) 212 if (newFrame->isLocalFrame())
213 toLocalFrame(newFrame)->document()->setReferrerPolicy(openerFrame.do cument()->getReferrerPolicy()); 213 toLocalFrame(newFrame)->document()->setReferrerPolicy(openerFrame.do cument()->getReferrerPolicy());
214 } 214 }
215 215
216 // TODO(japhet): Form submissions on RemoteFrames don't work yet. 216 // TODO(japhet): Form submissions on RemoteFrames don't work yet.
217 FrameLoadRequest newRequest(0, request.resourceRequest()); 217 FrameLoadRequest newRequest(request.originDocument(), request.resourceReques t());
218 newRequest.setForm(request.form()); 218 newRequest.setForm(request.form());
219 if (newFrame->isLocalFrame()) 219 if (newFrame->isLocalFrame())
220 toLocalFrame(newFrame)->loader().load(newRequest); 220 toLocalFrame(newFrame)->loader().load(newRequest);
221 } 221 }
222 222
223 } // namespace blink 223 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/NavigationScheduler.cpp ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698