| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 page->chromeClient().setWindowRectWithAdjustment(windowRect, frame); | 111 page->chromeClient().setWindowRectWithAdjustment(windowRect, frame); |
| 112 page->chromeClient().show(policy); | 112 page->chromeClient().show(policy); |
| 113 | 113 |
| 114 if (openerFrame.document()->isSandboxed( | 114 if (openerFrame.document()->isSandboxed( |
| 115 SandboxPropagatesToAuxiliaryBrowsingContexts)) | 115 SandboxPropagatesToAuxiliaryBrowsingContexts)) |
| 116 frame.loader().forceSandboxFlags( | 116 frame.loader().forceSandboxFlags( |
| 117 openerFrame.securityContext()->getSandboxFlags()); | 117 openerFrame.securityContext()->getSandboxFlags()); |
| 118 | 118 |
| 119 // This call may suspend the execution by running nested message loop. | 119 // This call may suspend the execution by running nested message loop. |
| 120 InspectorInstrumentation::windowCreated(&openerFrame, &frame); | 120 probe::windowCreated(&openerFrame, &frame); |
| 121 created = true; | 121 created = true; |
| 122 return &frame; | 122 return &frame; |
| 123 } | 123 } |
| 124 | 124 |
| 125 static Frame* createWindowHelper(LocalFrame& openerFrame, | 125 static Frame* createWindowHelper(LocalFrame& openerFrame, |
| 126 LocalFrame& activeFrame, | 126 LocalFrame& activeFrame, |
| 127 LocalFrame& lookupFrame, | 127 LocalFrame& lookupFrame, |
| 128 const FrameLoadRequest& request, | 128 const FrameLoadRequest& request, |
| 129 const WindowFeatures& features, | 129 const WindowFeatures& features, |
| 130 NavigationPolicy policy, | 130 NavigationPolicy policy, |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 } | 287 } |
| 288 | 288 |
| 289 // TODO(japhet): Form submissions on RemoteFrames don't work yet. | 289 // TODO(japhet): Form submissions on RemoteFrames don't work yet. |
| 290 FrameLoadRequest newRequest(0, request.resourceRequest()); | 290 FrameLoadRequest newRequest(0, request.resourceRequest()); |
| 291 newRequest.setForm(request.form()); | 291 newRequest.setForm(request.form()); |
| 292 if (newFrame->isLocalFrame()) | 292 if (newFrame->isLocalFrame()) |
| 293 toLocalFrame(newFrame)->loader().load(newRequest); | 293 toLocalFrame(newFrame)->loader().load(newRequest); |
| 294 } | 294 } |
| 295 | 295 |
| 296 } // namespace blink | 296 } // namespace blink |
| OLD | NEW |