Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6107385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:10:58+00:00 2026-05-23T14:10:58+00:00

http://code.google.com/chrome/extensions/npapi.html I have read through this, and am thoroughly confused. I have built the

  • 0

http://code.google.com/chrome/extensions/npapi.html

I have read through this, and am thoroughly confused. I have built the sample npapi .so plugin from http://www.firebreath.org/display/documentation/Building+on+Linux

Everything worked fine (plugin is installed correctly and recognized) until I went to use it in my popup.html in my unpacked extension, which threw:

<embed type="application/x-sample" id="sample">
<script>
console.log((document.getElementById("sample"))().echo("asdf"));

popup.html:18Uncaught ReferenceError: NPObject deleted

From various testing, it appears calling the constructor on the plugin object throws the error. I have no idea what’s going on here.

All I really want to do is to compile a .py file using Cython into a .so or .dll, and then be able to call its methods in my extension.
Does anyone know of an easy way to do this? / Can anyone provide a simple ‘hello, world’ example of this working?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:10:59+00:00Added an answer on May 23, 2026 at 2:10 pm

    where is your extra () coming from? Most likely it should be this:

    console.log(document.getElementById("sample").echo("asdf"));
    

    What you were trying to do would probably end up trying to call the “default” method on the NPObject, which is probably nonexistent and will thus throw an exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have read and re-read this page, as well as run the samples: http://code.google.com/chrome/extensions/background_pages.html
I'm trying to create an extension using this docs: http://code.google.com/chrome/extensions/content_scripts.html I want a part
I am attempting to set up a chrome extension similar to http://code.google.com/chrome/extensions/trunk/samples.html#webrequest except that
http://code.google.com/chrome/extensions/overview.html under UI Pages The popup doesn't need to duplicate code that's in the
I downloaded http://code.google.com/chrome/extensions/samples.html#ea2894c41cb8e80a4433a3e6c5772dadce9be90d . I would like make it it jQuery, but if i
See here: http://code.google.com/p/ie7-js/ Does anyone have any experience or remarks about this javascript? Is
I'm using http://code.google.com/p/flex-iframe/ for showing html in an flex application. To set this up
Is this a technology I should spend much time evaluating? http://code.google.com/chrome/chromeframe/ Chrome Frame is
I recently followed this tutorial on Google Cloud SQL and GWT: http://code.google.com/apis/sql/docs/developers_guide_java.html I deployed
http://code.google.com/appengine/docs/python/tools/uploadingdata.html is not clearly understand. Where i should call the bulkloader.py or appcfg.py? Should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.