chrome_extension
chrome_extension copied to clipboard
Wrap websocket connections for introspection
Websockets fall outside the scope of extension inspection and thus will remain undetected by Blockade. Adblockchrome has a cute way of solving this by wrapping the entire socket primitive in order to gain insight.
We might be able to borrow most of this: https://github.com/adblockplus/adblockpluschrome/blob/5ee05f996778d0e67e6c5bb05f51fd40071943b7/include.preload.js#L341
Here's the open Chrome debate: https://bugs.chromium.org/p/chromium/issues/detail?id=129353#c58