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:
parent
1d32f300f3
commit
812b529881
4 changed files with 31 additions and 0 deletions
|
@ -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/)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue