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
4
votes
1 answer

popen equivalent in XPCOM?

I'm trying to use XULRunner to add a GUI to a command line based program. One solution would be to use something like popen from the XUL application to interact with the command line program. My questions: Does XPCOM have popen? Does XPCOM have…
ctuffli
  • 3,559
  • 4
  • 31
  • 43
4
votes
7 answers

Batch file called from Javascript/XPCOM doesn't show command prompt window

I am calling a batch file from Javascript in this fashion: function runBatch(){ var exe = Components.classes['@mozilla.org/file/local;1'].createInstance(Components.interfaces.nsILocalFile); exe.initWithPath("C:\\test.bat"); var run =…
pc1oad1etter
  • 8,549
  • 10
  • 49
  • 64
4
votes
2 answers

Messages between Firefox plugins

I'm trying to implement a client-server communications between two or more plugins where each plugin is concurrently both server and client. I use nsIServerSocket for server part and websockets for client part. This is the code: function…
hasmet
  • 758
  • 3
  • 13
  • 32
4
votes
4 answers

What IPC method should I use between Firefox extension and C# code running on the same machine?

I have a question about how to structure communication between a (new) Firefox extension and existing C# code. The firefox extension will use configuration data and will produce other data, so needs to get the config data from somewhere and save…
Rory
  • 40,559
  • 52
  • 175
  • 261
4
votes
0 answers

XPCOM and firefox mobile

I found a lot of problems in order to develop a browser plugin for android.. I've to use several C++ libraries and so I need to write C++ code. Can I develop a firefox mobile extension with C++ XPCOM core? if yes --Where can I find some…
mauro-dev
  • 59
  • 1
  • 6
4
votes
1 answer

replace nsICertificateDialogs from firefox extension

I'm trying to replace the nsICertificateDialogs dialog with my own implementation. I already have an extension that handles smime mails from webmail. I want to be able to use the Mozilla cert store with my extension. The only possibility I've found…
David Feurle
  • 2,687
  • 22
  • 38
3
votes
4 answers

Browser Cache API for non IE browsers

IE has WinInet API, such as GetUrlCacheEntryInfo, to read and manipulate IE browser cache. Is there a similar API for non IE browsers such as Firefox or Chrome? If so where can I get more info? Thanks Update: According to following (Accessing…
MaxK
  • 3,511
  • 4
  • 20
  • 16
3
votes
2 answers

Build XPCOM Mozilla Sample Component

I'm trying to build the XPCOM component available here: http://mxr.mozilla.org/mozilla-central/source/xpcom/sample/ I tried to compile it with my own Makefile, so that this component could be isolated from the whole Mozilla sources. So here is my…
frinux
  • 2,052
  • 6
  • 26
  • 47
3
votes
2 answers

Javascript type conversion

I'm writting a Firefox extension. Using javascript, I want to download a binary file from a web POST, and then I want write its contents into a file. My difficulty is how to convert from the type returned by the web to the type needed to write: var…
3
votes
1 answer

nsIURI has no member 'asciiSpec', 'asciiHost', etc. error

I have made some modifications to nsMediaStream.h/cpp in the Mozilla (6.0.2) code and one of them requires that I get the ASCII string from the nsIURI class used by the Mozilla framework for representing and parsing URIs. Seems easy enough, one…
MayaPosch
  • 315
  • 8
  • 20
3
votes
1 answer

Storage Options with Mozilla Addon-SDK

I am a newbie to Addon-SDK. I am making an Addon in which I log some information meant for manually viewing later on. I came across the Simple-Storage API but as far as I could figure out, it saves the information internally in some format which can…
Shatu
  • 1,819
  • 3
  • 15
  • 27
3
votes
2 answers

SQLite Storage in Firefox 3.0 +

I have a Firefox extension that supports Firefox 3+, and SQLite database is important for my extension. I saw on the MDN that the API might change and it`s "unfrozen", should I be worried about it? The API is currently "unfrozen", which means it is…
Yosi
  • 2,936
  • 7
  • 39
  • 64
3
votes
2 answers

Using Java/Python libraries in programming Firefox/Chrome Extensions

I have an idea of studying user behavior on the browser, for which I intend to make a Chrome/Firefox extension to study the behavior dynamically. I have some predefined libraries in Java and Python to analyze the results, which will be impossible to…
Shatu
  • 1,819
  • 3
  • 15
  • 27
3
votes
2 answers

Selenium: enable XPCOM access and write to a file from Javascript in Firefox

In this question there is an example how to request XPCOM access from Javascript: How to create a file using javascript in Mozilla Firefox netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); I was hoping to find a way to…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
3
votes
2 answers

How do I copy image data to the clipboard in my XUL application?

I have a XULRunner application that needs to copy image data to the clipboard. I have figured out how to handle copying text to the clipboard, and I can paste PNG data from the clipboard. What I can't figure out is how to get data from a data URL…
Joel Anair
  • 13,832
  • 3
  • 31
  • 36
1 2
3
27 28