duckduckgo / duckduckgo-privacy-extension

DuckDuckGo Privacy Essentials browser extension for Firefox, Chrome.
https://duckduckgo.com/app
Apache License 2.0
1.25k stars 242 forks source link

Protection debugging over websocket #2519

Closed sammacbeth closed 5 months ago

sammacbeth commented 5 months ago

Reviewer: @kzar @shakyShane

Description:

Improves the config debugging to also open a websocket to a https://github.com/duckduckgo/privacy-protections-debugger server. Over this connection the following can happen:

Steps to test this PR:

  1. Build the extension in dev mode.
  2. Checkout and run https://github.com/duckduckgo/privacy-protections-debugger locally.
  3. Go to the extension settings, and put in the local 'Custom config URL' (e.g. http://localhost:3000/config).
  4. In the debugger, go to the 'Logs' tab. You should see the extension connected, and tabs shown.
  5. Chose a tab, and load a page in it. You should see requests shown in the UI.