diff options
author | alexmos <alexmos@chromium.org> | 2014-12-05 17:38:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-06 01:38:30 +0000 |
commit | bc7eafaba8bde63d70a270ee71a901545d9769f9 (patch) | |
tree | 92736a74cdde00158dbd0d754835ba5c73799caf /content/public/test | |
parent | 00df169a990ea09d488f1c13ec0293fc11d7992e (diff) | |
download | chromium_src-bc7eafaba8bde63d70a270ee71a901545d9769f9.zip chromium_src-bc7eafaba8bde63d70a270ee71a901545d9769f9.tar.gz chromium_src-bc7eafaba8bde63d70a270ee71a901545d9769f9.tar.bz2 |
Pass origin information for remote frame creation.
This is the first step towards making origin information available for RemoteFrames in Blink. This CL ensures that we pass origin information whenever we create a RemoteFrame, which is currently three cases:
1. New view
2. As part of SwapOut
3. NewFrameProxy message
The origins are tracked on FrameTreeNodes in the browser process and updated when frame navigations commit (in NavigatorImpl::DidNavigate).
This CL doesn't yet address these issues, to be fixed in later CLs:
- situations that will require an explicit "origin update" message, including document.domain changes and certain frame navigations.
- iframe sandbox flags
- RenderFrameProxies aren't created in all cases (crbug.com/423587)
- for now, the origin on the browser side is a url::Origin which doesn't support calls like canAccess. Eventually, we may need to use a richer origin class (like WebSecurityOrigin from Blink).
More information: https://docs.google.com/a/chromium.org/document/d/1Y0s76YK0ziiL8hddiFlNUyAF4hqRAGpZM8cfnnLsZPg/edit#heading=h.lrzgurbjttfm
The Blink-side of this CL is: https://codereview.chromium.org/520213002/
BUG=426512
Review URL: https://codereview.chromium.org/692973005
Cr-Commit-Position: refs/heads/master@{#307138}
Diffstat (limited to 'content/public/test')
-rw-r--r-- | content/public/test/render_view_test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/public/test/render_view_test.cc b/content/public/test/render_view_test.cc index a87b4b3..b835801 100644 --- a/content/public/test/render_view_test.cc +++ b/content/public/test/render_view_test.cc @@ -198,6 +198,7 @@ void RenderViewTest::SetUp() { view_params.session_storage_namespace_id = kInvalidSessionStorageNamespaceId; view_params.frame_name = base::string16(); view_params.swapped_out = false; + view_params.replicated_frame_state = FrameReplicationState(); view_params.proxy_routing_id = MSG_ROUTING_NONE; view_params.hidden = false; view_params.never_visible = false; |