title: Uncaught ReferenceError: NPObject deleted
body: <p>i get an error: "Uncaught ReferenceError: NPObject deleted", when i run my chrome extension. Atm i just noted where the .dll file is in manifest, maybe it's not meant to work like that, but i couldn't read that you have to install it anywhere on chrome site.
  So anyone knows what's the origin on this error?</p>
  
  <p>My HTML:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;embed type="application/x-npNewPlugin" id="pluginId"&gt;  
  &lt;script src='Test.js'&gt;&lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>changing <code>&lt;embed&gt;</code> with <code>&lt;object&gt;</code> does not change the result
  my JavaScript:</p>
  
  <pre><code>  var plugin = document.getElementById("pluginId");
    var result = plugin().valid;
    console.log("my plugin returned: " + result);
  </code></pre>
  
  <p>and my manifest:</p>
  
  <pre><code>{
    "name": "npNewPlugin",
    "version": "1.0",
    "manifest_version": 2,
    "description": "The first extension that I made.",
    "plugins": [
      { "path": "npNewPlugin.dll"}
    ],
    "browser_action": {
      "default_icon": "icon.png",
      "default_popup":"Test.htm"
    }
  }
  </code></pre>
  
  <p>When i go to CMD and <code>regsvr32</code> the <code>.dll</code> file, then everything load correctly, but agen i don't think that you have to register it.</p>