Index: content/browser/frame_host/navigator_impl.cc |
diff --git a/content/browser/frame_host/navigator_impl.cc b/content/browser/frame_host/navigator_impl.cc |
index e3b56215d4d26daf3218f1b52f0133bda53ffdc0..a35f5c4cd1e9170f6390aa00ad0d0583c18fe444 100644 |
--- a/content/browser/frame_host/navigator_impl.cc |
+++ b/content/browser/frame_host/navigator_impl.cc |
@@ -520,6 +520,13 @@ void NavigatorImpl::DidNavigate( |
frame_tree->root()->render_manager()->DidNavigateFrame(render_frame_host); |
} |
+ // OOPIF: Save the origin of the new page here, so that it is available to |
Charlie Reis
2014/11/13 18:00:57
nit: Remove "OOPIF." This looks like it happens i
alexmos
2014/11/18 18:25:32
Done.
|
+ // send as part of FrameMsg_SwapOut, which will result in a new remote frame |
Charlie Reis
2014/11/13 18:00:57
Can we split this in two sentences, or rephrase it
alexmos
2014/11/18 18:25:32
Rephrased. Please let me know if this makes more
|
+ // that needs this to initialize its security context. This origin will also |
+ // be sent to remote frames created via ViewMsg_New and |
+ // FrameMsg_NewFrameProxy. |
+ render_frame_host->frame_tree_node()->SetOriginFromURL(params.url); |
Charlie Reis
2014/11/13 18:00:57
Would it be easier to just do this action inside t
alexmos
2014/11/18 18:25:32
That would be too late because we need the origin
Charlie Reis
2014/11/19 00:46:17
Good question. As we chatted about in person, I t
|
+ |
// When using --site-per-process, we notify the RFHM for all navigations, |
// not just main frame navigations. |
if (use_site_per_process) { |