Add app.disableDomainBlockingFor3DAPIs()

By default, Chromium disables 3D APIs (e.g. WebGL) until restart on a
per domain basis if the GPU processes crashes too frequently. This
function disables that behaviour.
This commit is contained in:
Birunthan Mohanathas 2017-07-14 01:27:03 +03:00
parent 1d32f300f3
commit 812b529881
4 changed files with 31 additions and 0 deletions

View file

@ -647,4 +647,12 @@ describe('app module', function () {
})
})
})
describe('disableDomainBlockingFor3DAPIs() API', function () {
it('throws when called after app is ready', function () {
assert.throws(function () {
app.disableDomainBlockingFor3DAPIs()
}, /before app is ready/)
})
})
})