[DevTools] Make Inspect Element work for OOPIF

https://chromium-review.googlesource.com/c/chromium/src/+/881522
This commit is contained in:
deepak1556 2018-04-09 01:00:24 +05:30 committed by Samuel Attard
parent 8e125b2953
commit 3666935c06

View file

@ -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(