Questions tagged [xpcom]

XPCOM (Cross Platform Component Object Model) is a cross-platform component model from Mozilla. It is similar to Microsoft COM and CORBA.

XPCOM (Cross Platform Component Object Model) is a cross-platform component model from Mozilla. It is similar to Microsoft COM and CORBA.

It has multiple language bindings, allowing XPCOM components to be used and implemented in JavaScript, Java, and Python in addition to C++. Interfaces in XPCOM are defined in a dialect of IDL called XPIDL.

409 questions
0
votes
0 answers

Media graph from XPCOM C++ or how to capture raw video/audio frames?

There is neat getUserMedia call which provides an nsIDOMMediaStream object (DOMMediaStream effectively). I know that this is a wrapper for MediaStream which is a part of MediaGraph API and it is possible to set a listener for notifications about…
peetonn
  • 2,942
  • 4
  • 32
  • 49
0
votes
2 answers

How to check if inbound port is in use

I'm developing Firefox addon that communicate with external program by sockets. This program create local socket server on specified port when this addon need it. I would like to ckeck from this addon whether this application has opened this port…
Greck
  • 580
  • 6
  • 15
0
votes
1 answer

While trying to download a page, why doesn't this code alert test?

I have to download myURLString (http://www.google.com/search?q=http://www.google.com/&btnG=Search+Directory&hl=en&cat=gwd%2FTop). function getcontents(myURLString) { var gChannel; var ioService =…
Delirium tremens
  • 4,623
  • 9
  • 46
  • 59
0
votes
1 answer

Overriding nsIWindowWatcher Component

I'm writing Firefox Addon that instead of opening content in new windows could open a content in new tab or sidebar. There are several ways to open windows: window.open() window.openDialog() or... using openWindow() function form the component…
Greck
  • 580
  • 6
  • 15
0
votes
1 answer

Ideas needed. Javascript+XPCOM+C++ add-on

So, there is a WebRTC inside Firefox and there is a convenient class for making RTC communication possible called RTCPeerConnection which can be instantiated and used from the JavaScript app. You can find some decent example of it on [1]. And here…
peetonn
  • 2,942
  • 4
  • 32
  • 49
0
votes
2 answers

why can't I create file in the folder with xpcom

I haved created the folder , code like that var file = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"] …
user2473037
  • 633
  • 4
  • 9
  • 14
0
votes
1 answer

Unable to setting up the Gecko SDK with Visual Studio 2010

I am creating simple XPCOM plugin for firefox by using the code from. blog.peschla.net code is straight forward but Im getting following error: Error 1 error MSB3073: The command "xpidl-build.bat IHelloWorld.idl :VCEnd" exited with code 1.…
0
votes
1 answer

How to execute local native compiled code in windows and use the output as input to a webmail application?

I hope my question is not redundant. I have a small program (Windows Visual C++ native app) which can take a file and encrypt it using AES. It also can take text as input and also generate an encrypted version of the text. What I want to achieve is…
0
votes
1 answer

How do I link to a DLL from javascript in XULRunner?

I have a dll (that I didn't write) and I would like to use it in an XULRunner application. I know nearly nothing about this, so bear with me. Apparently I can use XPCOM to load the dll and then call functions in it. How would I do that?
Marius
  • 57,995
  • 32
  • 132
  • 151
0
votes
1 answer

Compile XPCOM idl file using 64bit Ubunty based system

I'm working on a XPCOM interface for Firefox. To compile my .idl file using 64-bit Ubuntu based system, I couldn't find the specific Gecko SDK version. I tired to download "Linux x86_64" version of Gecko SDK from link in which I couldn't find…
rharishan
  • 970
  • 7
  • 11
0
votes
1 answer

xul services is undefined

I start my app with firefox.exe --app application.ini -jsconsole and the first line of my script is: Components.utils.import("resource://gre/modules/Services.jsm"); The second line is: alert(typeof services); And it alerts undefined. Nowhere in…
HMR
  • 37,593
  • 24
  • 91
  • 160
0
votes
1 answer

Accessing nsIAccessibleText XPCOM Interface

I am trying to use the getCharacterExtents() method on the nsIAccessibleText XPCOM Interface. Unfortunately I can not get any documentation on how to query this interface. let accessibleService =…
Mircea
  • 11,373
  • 26
  • 64
  • 95
0
votes
1 answer

Getting Interface Implementation of built-in Mozilla Firefox Component

I'm currently trying to develop a custom password manager in c++. I've already developed a deployable module implementing the nsILoginManagerStorage interface, can install it on firefox and it is being called properly by firefox when a password…
Nuno Pinheiro
  • 320
  • 2
  • 8
0
votes
1 answer

g++ x86_64 NS_NewGenericModule2

I am trying to do extension development, but I am running into an error linking my code -- it's not finding NS_NewGenericModule2. Undefined symbols for architecture x86_64: "NS_NewGenericModule2(nsModuleInfo const*, nsIModule**)", referenced…
dario nascimento
  • 587
  • 5
  • 11
0
votes
1 answer

is there an easy way to inspect/edit values stored in nsIPrefBranch?

I'm looking for a way to quickly edit and view my extension credential list (I use nsIPrefBranch to store it). Is there any easy way to do that? I tried to look where that's stored but couldnt find it. Many thanks!!
user1326293
  • 923
  • 2
  • 9
  • 24