3 ms·
> It would be interesting to have a browser tool that is like strace and you could filter by calls, so you can see exactly where window.navigator is being used
by usr1106 6y ago
> It would be interesting to have a browser tool that is like strace and you could filter by calls, so you can see exactly where window.navigator is being used for example, or localStorage.setItem.
Exactly, that's what I meant.
- fiddlerwoaroof 6y agoBecause JavaScript is dynamic, you can often rebind things like window.fetch to trace what’s going on (store the old copy and replace with a new one that does something before delegating). If you can arrange your shim to be loaded before any other JS, I guess you could implement something like object capabilities for JavaScript?
- labawi 6y agoNote that javascript can access whether developer tools are open and change it's behaviour. Or so I've heard.