| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |