Version: v5.0.5, v5.0.6
JavaScript code: `document.querySelector('iframe').contentWindow.print()`
shell/browser/api/atom_api_web_contents.cc
if (IsDevToolsOpened())
    CloseDevTools();
  else
    OpenDevTools(nullptr);
}
void WebContents::InspectElement(int x, int y) {
  if (type_ == Type::REMOTE)
    return;
  if (!enable_devtools_)
    return;
  if (!managed_web_contents()->GetDevToolsWebContents())
    OpenDevTools(nullptr);
  managed_web_contents()->InspectElement(x, y);
}
void WebContents::InspectSharedWorker() {
  if (type_ == Type::REMOTE)
    return;
  if (!enable_devtools_)
    return;
  for (const auto& agent_host : content::DevToolsAgentHost::GetOrCreateAll()) {
    if (agent_host->GetType() ==
        content::DevToolsAgentHost::kTypeSharedWorker) {
      OpenDevTools(nullptr);
      managed_web_contents()->AttachTo(agent_host);
      break;
    }
  }
}
void WebContents::InspectServiceWorker() {