From 3666935c0695171135b0b0a78add5d72e537767f Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Mon, 9 Apr 2018 01:00:24 +0530 Subject: [PATCH] [DevTools] Make Inspect Element work for OOPIF https://chromium-review.googlesource.com/c/chromium/src/+/881522 --- brightray/browser/inspectable_web_contents_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index 0b70159c6217..70ff7d2ff536 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -264,7 +264,7 @@ content::WebContents* InspectableWebContentsImpl::GetDevToolsWebContents() void InspectableWebContentsImpl::InspectElement(int x, int y) { if (agent_host_.get()) - agent_host_->InspectElement(this, x, y); + agent_host_->InspectElement(web_contents_->GetMainFrame(), x, y); } void InspectableWebContentsImpl::SetDelegate(