mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Call InspectElement directly on InspectableWebContents
This commit is contained in:
committed by
Birunthan Mohanathas
parent
d6eb0d6629
commit
443040e8d7
@@ -1062,10 +1062,7 @@ void WebContents::InspectElement(int x, int y) {
|
||||
|
||||
if (!managed_web_contents()->GetDevToolsWebContents())
|
||||
OpenDevTools(nullptr);
|
||||
scoped_refptr<content::DevToolsAgentHost> agent(
|
||||
content::DevToolsAgentHost::GetOrCreateFor(web_contents()));
|
||||
// FIXME(zcbenz): Figure out how to implement this for Chrome 54.
|
||||
agent->InspectElement(nullptr, x, y);
|
||||
managed_web_contents()->InspectElement(x, y);
|
||||
}
|
||||
|
||||
void WebContents::InspectServiceWorker() {
|
||||
|
||||
Reference in New Issue
Block a user