Chrome Extension Pass URL To OS
<p>My extension has a context menu where selected text can be sent to a program on the OS via a URl Protocol registered with the OS (Windows). However, The only way I can find to get the URL to the OS is to create an unneeded tab or window with the extension, i.e.,</p>

<pre><code>url = "winprogram://data...";
chrome.tabs.create({url});
</code></pre>

<p>Creating the tab will pass the URL to the OS and open the program with the included parameters, but I don't want the new tab. I also tried a XMLHttpRequest send, but the extension complained it was not the same origin.</p>

<p>Is there a way to get the URL to the OS without creating a tab?</p>