Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #8781 from brave/fix/8448
Browse files Browse the repository at this point in the history
block webgl2 fingerprinting and webgl readPixels
  • Loading branch information
bsclifton authored May 17, 2017
2 parents 531b209 + 3cc2d65 commit 3e7de4e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,16 @@ if (chrome.contentSettings.canvasFingerprinting == 'block') {
})

var webglMethods = ['getSupportedExtensions', 'getParameter', 'getContextAttributes',
'getShaderPrecisionFormat', 'getExtension']
'getShaderPrecisionFormat', 'getExtension', 'readPixels']
webglMethods.forEach(function (method) {
var item = {
type: 'WebGL',
objName: 'WebGLRenderingContext',
propName: method
}
methods.push(item)
item.objName = 'WebGL2RenderingContext',
methods.push(item)
})

var audioBufferMethods = ['copyFromChannel', 'getChannelData']
Expand Down

0 comments on commit 3e7de4e

Please sign in to comment.