<p dir="auto">Output of <code class="notranslate">node_modules/.bin/electron --version</code>: <code class="notranslate">v3.0.7</code>   (I tried almost all the versions above 3.0.0)<br>
Operating System (Platform and Version): Mac OSX Sierra<br>
Output of <code class="notranslate">node_modules/.bin/electron --version</code> on last known working Electron version (if applicable):</p>
<p dir="auto"><strong>Expected Behavior</strong><br>
do webview1.getWebContents().setDevToolsWebContents(webview2.getWebContents())<br>
do webview1..getWebContents().openDevTools()<br>
and then webview2 show the chrome dev-tool panel and the panel tab "Elements" should show the html hierachy of the webview1</p>
<p dir="auto"><strong>Actual behavior</strong><br>
webview2 show the chrome dev-tool panel and the panel tab "Elements" does not show the html hierachy of the webview1. It seems dev-tool is not valid.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<p dir="auto"><a href="https://github.com/cyqresig/electron-quick-start/tree/bug/setDevToolsWebContents_cyq_20181129">https://github.com/cyqresig/electron-quick-start/tree/bug/setDevToolsWebContents_cyq_20181129</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/cyqresig/electron-quick-start -b bug/setDevToolsWebContents_cyq_20181129
$ npm install
$ npm start || electron ."><pre class="notranslate">$ git clone https://github.com/cyqresig/electron-quick-start -b bug/setDevToolsWebContents_cyq_20181129
$ npm install
$ npm start <span class="pl-k">||</span> electron <span class="pl-c1">.</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1388338/49197855-84662f00-f3cb-11e8-9a10-162a5525a459.png"><img src="https://user-images.githubusercontent.com/1388338/49197855-84662f00-f3cb-11e8-9a10-162a5525a459.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It seems that Chromium disallows using guest view as devtools, I need to find out the code in Chromium to fix it.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="not ok 55 &lt;webview&gt; tag setDevToolsWebContents() API sets webContents of webview as devtools
  AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
      at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)"><pre class="notranslate"><code class="notranslate">not ok 55 &lt;webview&gt; tag setDevToolsWebContents() API sets webContents of webview as devtools
  AssertionError: expected '' to equal 'InspectorFrontendHostImpl'
      at Context.it (/Users/zcbenz/codes/electron/spec/webview-spec.js:721:26)
</code></pre></div>