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

Unified Diff: content/browser/frame_host/render_frame_proxy_host.cc

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_proxy_host.cc
diff --git a/content/browser/frame_host/render_frame_proxy_host.cc b/content/browser/frame_host/render_frame_proxy_host.cc
index 3881d87e504883deb332a804a0b46c3fc8fd1044..3c39bf10f40fc3ba67b9f7111dfa869c4c1295a0 100644
--- a/content/browser/frame_host/render_frame_proxy_host.cc
+++ b/content/browser/frame_host/render_frame_proxy_host.cc
@@ -193,6 +193,16 @@ bool RenderFrameProxyHost::InitRenderFrameProxy() {
->current_replication_state()));
render_frame_proxy_created_ = true;
+
+ // For subframes, initialize the proxy's WebFrameOwnerProperties only if they
+ // differ from default values.
+ bool should_send_properties = frame_tree_node_->frame_owner_properties() !=
+ blink::WebFrameOwnerProperties();
+ if (frame_tree_node_->parent() && should_send_properties) {
+ Send(new FrameMsg_SetFrameOwnerProperties(
+ routing_id_, frame_tree_node_->frame_owner_properties()));
+ }
+
return true;
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/site_per_process_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698