> This locks a few global objects by using Object.defineProperty to set them as non-writable, which prevents later code from overwriting them with a Proxy that alters their behaviour. So uBlock Origin can only proxy JSON.stringify if it can run before this locker script does.
This seems like a bug in browsers, or possibly in the spec. Page content and scripts should never be able to restrict what browser extensions can do.
replies(2):