Checking if a JavaScript native function is monkey patched (mmazzarolo.com) 7 points by mmazzarolo 3y ago ↗ HN
[–] cabirum 3y ago ↗ Are there legit cases where monkey patching native funcs is justified? Many scanners report this as vulnerability, so I would expect browsers and standards bodies to eventually prohibit messing with native apis. [–] mmazzarolo 3y ago ↗ Off the top of my head:- Overriding the fetch/XHR API for error monitoring (there's no other way to listen for them unless you use Service Workers)- Polyfilling features on top of existing APIsBut you might not see them as "justified".
[–] mmazzarolo 3y ago ↗ Off the top of my head:- Overriding the fetch/XHR API for error monitoring (there's no other way to listen for them unless you use Service Workers)- Polyfilling features on top of existing APIsBut you might not see them as "justified".
2 comments
[ 2.7 ms ] story [ 20.4 ms ] thread- Overriding the fetch/XHR API for error monitoring (there's no other way to listen for them unless you use Service Workers)
- Polyfilling features on top of existing APIs
But you might not see them as "justified".