CanvasBlocker icon indicating copy to clipboard operation
CanvasBlocker copied to clipboard

More granular control over the APIs whitelisting

Open hjk789 opened this issue 4 years ago • 2 comments

I'd like to suggest a more granular control over the whitelisting feature. Instead of allowing a whole API, it would be nice to whitelist only specific values. For example, if a site requires userAgent and getBoundingClientRect to work properly, it would be nice to allow only these two values, instead of the whole Navigator and DOMRect APIs. This way you don't need to allow access to unnecessary values.

hjk789 avatar Mar 29 '21 20:03 hjk789

Came here to suggest this!

Seems partly related to #538

ThinkChaos avatar Mar 30 '21 08:03 ThinkChaos

I have to check how complicated this would be to implement. But I like the idea.

kkapsner avatar Apr 18 '21 08:04 kkapsner