title: Cannot communicate with Native messaging host (firefox)
body: <p>So, the basic workflow for using a native messaging host is</p>
  
  <ol>
  <li><p>We have to add the registry key to the current user or the local machine and specify the value as the path to the application manifest.</p></li>
  <li><p>Specify the path in the manifest as the executable file (either an exe file or py file)</p></li>
  <li><p>Communicate with the extension and <em>voila</em>!</p></li>
  </ol>
  
  <p>So, my problem is in the first step. I've done the implementation on <strong>Chrome</strong> and it works seamlessly, but when it comes to <strong>Firefox</strong>, I'm not able to communicate with the host. My intuition is that it has something to do with the registry key adding, since I've given the same exe file that was working with Chrome to send back the message. Does anyone know what exactly we need to add to the registry to make it work with Firefox?</p>
  
  <p><strong>EDIT :</strong> (Adding the files I'm using)</p>
  
  <p>Native messaging host manifest file (com.mozilla.firefox.example.echo-win.json)</p>
  
  <pre><code>{
  "name": "com.mozilla.firefox.example.echo",
  "description": "FireFox Native Messaging API Example Host",
  "path": "&lt;path to exe file&gt;",
  "type": "stdio",
  "allowed_extensions": ["moz-extension://&lt;Internal UUID&gt;/"]
  }
  </code></pre>
  
  <p>Extension Manifest file (manifest.json)</p>
  
  <pre><code>{
      "manifest_version": 2,
      "name": &lt;name&gt;,    
      "version": "1.0",    
      "description": &lt;description&gt;,    
      "permissions": ["activeTab",  "storage", "nativeMessaging"],    
      "background": {
          "scripts": ["background.js"]
      },    
      "applications": {
          "gecko": {
              "id": "examplelol@example.com",
              "strict_min_version": "50.0"
          }
      },    
      "content_scripts": [{
          "matches": ["*://localhost/*"],
          "js":["content.js"]}],    
      "icons": {
          &lt;default icon paths and sizes&gt;
      },
  }
  </code></pre>
  
  <p>Registry command I'm using for the native messaging host is</p>
  
  <pre><code>REG ADD "HKCU\SOFTWARE\Mozilla\NativeMessagingHosts\com.mozilla.firefox.example.echo" /ve /t REG_SZ /d "%~dp0com.mozilla.firefox.example.echo-win.json" /f
  </code></pre>