Added two security improvements as mentioned at http://electron.atom.io/docs/all/#checklist
This commit is contained in:
@@ -76,5 +76,14 @@ describe('application', function() {
|
||||
});
|
||||
}, 5000, 'expected a new window')
|
||||
.windowByIndex(3).isNodeEnabled().should.eventually.be.false;
|
||||
})
|
||||
});
|
||||
|
||||
it('should NOT be able to call eval in any window', function() {
|
||||
env.addClientCommands(this.app.client);
|
||||
const client = this.app.client;
|
||||
return this.app.client
|
||||
.windowByIndex(1) // in the first webview
|
||||
.eval()
|
||||
.should.be.rejected;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user