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

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

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: Created 4 years 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/interstitial_page_impl.cc
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc
index 1c3e782e5ae2d2745ec5111478a3468494f49239..46c42682ae96397f12ab3c1048bc97f07fd7bd18 100644
--- a/content/browser/frame_host/interstitial_page_impl.cc
+++ b/content/browser/frame_host/interstitial_page_impl.cc
@@ -588,7 +588,8 @@ WebContentsView* InterstitialPageImpl::CreateWebContentsView() {
RenderWidgetHostViewBase* view =
wcv->CreateViewForWidget(render_view_host_->GetWidget(), false);
RenderWidgetHostImpl::From(render_view_host_->GetWidget())->SetView(view);
- render_view_host_->AllowBindings(BINDINGS_POLICY_DOM_AUTOMATION);
+ render_view_host_->GetMainFrame()->AllowBindings(
+ BINDINGS_POLICY_DOM_AUTOMATION);
render_view_host_->CreateRenderView(MSG_ROUTING_NONE,
MSG_ROUTING_NONE,

Powered by Google App Engine
This is Rietveld 408576698