zlacker

[parent] [thread] 2 comments
1. usr110+(OP)[view] [source] 2020-11-28 21:22:37
> 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.

replies(2): >>fiddle+H5 >>labawi+SG4
2. fiddle+H5[view] [source] 2020-11-28 22:17:18
>>usr110+(OP)
Because 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?
3. labawi+SG4[view] [source] 2020-11-30 20:42:11
>>usr110+(OP)
Note that javascript can access whether developer tools are open and change it's behaviour. Or so I've heard.
[go to top]