How a Browser Extension Hands a Link to a Desktop App: Native Messaging Lessons
javascript
dev.to
Browser extensions live in a sandbox. They can read the page you're on (if you let them), add items to the right-click menu and talk to web servers, but they can't start a program on your computer. So how does a "Download with…" menu item end up launching a desktop download manager? The answer is native messaging, and we learned most of its sharp edges while building the browser add-on for Advanced Download Manager, a free Windows download manager. This post walks through the moving parts and t