10 ms·
It looks like this works by making the browser use dn as a local proxy. That should also work with non-chromium based browser right ? I guess it will then be ne
by loulouxiv 2y ago
It looks like this works by making the browser use dn as a local proxy. That should also work with non-chromium based browser right ? I guess it will then be necessary to configure the proxy manually.
- keepamovin 2y agoConceptually yes, but specifically it's implemented by intercepting the browser's internal fetch process. So it's like a "browser-internal" proxy -- or not a proxy at all. You could do something similar with a proxy, but it may run into issues with HTTPS, which this gets around as we are beyond the terminator. In this way, you can serve the content, and save the content, via getting in the middle of the same fetch process and the browser doesn't know the difference (mostly).
- TheMatten 2y agoWhat sort of API can be used for this? Is it a special proxy setting, extension or WebDriver client?
- keepamovin 2y agoThe network intercepting APIs. Right now we use CDP/RDP and the Fetch domain: https://chromedevtools.github.io/devtools-protocol/tot/Fetch/ https://chromedevtools.github.io/devtools-protocol/tot/Fetch... There's also somewhat equivalent surface exposed by WebDriver BiDi: https://w3c.github.io/webdriver-bidi/#module-network-commands https://w3c.github.io/webdriver-bidi/#module-network-command... If you want to read more about these sorts of protocols, see: https://firefox-source-docs.mozilla.org/remote/index.html https://firefox-source-docs.mozilla.org/remote/index.html
- TheMatten 2y agoThanks a lot!