microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
509 stars 59 forks source link

Fixed the process detection logic for Windows for the DevTools plugin #843

Closed qmatteoq closed 2 months ago

qmatteoq commented 2 months ago

This PR addresses issue #840 by improving the logic which detects the browser process in Windows. In short, Windows has lot of processes (like System or Idle) that can't be accessed by a regular application. You are able to retrieve them, but you aren't allowed to query properties like the Name, otherwise you will get an exception with Access Denied.

The new logic wraps the process iteration process inside a try / catch statement, so that these special processes are ignored.

The PR also adds support for Edge Beta, in addition to Edge and Edge Dev.