diff --git a/spec/fixtures/pages/webview-devtools.html b/spec/fixtures/pages/webview-devtools.html
new file mode 100644
index 0000000000..c16dbb2f8f
--- /dev/null
+++ b/spec/fixtures/pages/webview-devtools.html
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/spec/webview-spec.js b/spec/webview-spec.js
index b1fa4405ad..a588f389be 100644
--- a/spec/webview-spec.js
+++ b/spec/webview-spec.js
@@ -912,4 +912,24 @@ describe(' tag', function () {
w.loadURL('file://' + fixtures + '/pages/webview-visibilitychange.html')
})
+
+ it('loads devtools extension registered on the parent window', function (done) {
+ this.timeout(10000)
+
+ w = new BrowserWindow({
+ show: false
+ })
+
+ BrowserWindow.removeDevToolsExtension('foo')
+
+ var extensionPath = path.join(__dirname, 'fixtures', 'devtools-extensions', 'foo')
+ BrowserWindow.addDevToolsExtension(extensionPath)
+
+ w.loadURL('file://' + fixtures + '/pages/webview-devtools.html')
+
+ ipcMain.once('answer', function (event, message) {
+ assert.equal(message.runtimeId, 'foo')
+ done()
+ })
+ })
})