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
26
votes
3 answers

Open a new tab/window and write something to it?

I'm using Execute JS to write and test Javascript code within Firefox. I want to open a new tab/window and write something to it and I tried var wm =…
Teiv
  • 2,605
  • 10
  • 39
  • 48
23
votes
5 answers

What is whitelist and blacklist data?

I was reading about development of XPCOM component. I came across these terms called whitelist data and blacklist data, I tried to find out on google but couldn't .. I do not know how its related to programming so forgive me if I placed the…
Xinus
  • 29,617
  • 32
  • 119
  • 165
12
votes
2 answers

Check if a Firefox 3.5 add-on is enabled

In order inform the user of possible conflicts, I'd like to have my add-on check if another add-on is installed and enabled. If so, I can disable either it or my own at the user's bequest: function disableExtension(id) { var man =…
Paul Lammertsma
  • 37,593
  • 16
  • 136
  • 187
9
votes
4 answers

Modify URL before loading page in firefox

I want to prefix URLs which match my patterns. When I open a new tab in Firefox and enter a matching URL the page should not be loaded normally, the URL should first be modified and then loading the page should start. Is it possible to modify an URL…
lszrh
  • 1,531
  • 1
  • 19
  • 28
9
votes
1 answer

Help me create a Firefox extension (Javascript XPCOM Component)

I've been looking at different tutorials and I know I'm close but I'm getting lost in implementation details because some of them are a little bit dated and a few things have changed since Firefox 3. I have already written the javascript for the…
David
  • 7,310
  • 6
  • 41
  • 63
9
votes
3 answers

Beginning XUL & XPCOM development with XULRunner?

I am planning to design an application XUL & XPCOM for proprietary system. So i have decided to use C/C++ but how can I start the development as a beginner in this field I cannot find a good guide to start around. It will be good if you can give…
yrcjaya
  • 413
  • 4
  • 8
9
votes
3 answers

What is the advantage of using Python Virtualbox API?

what is the advantage of using a python virtualbox API instead of using XPCOM?
ask
  • 131
  • 2
  • 3
  • 4
8
votes
1 answer

Firefox extension: Cancel requests and emit fake responses

I am trying to develop a Firefox extension that drops every HTTP request to a certain site and returns a fake response. No request should get through to the original web server, but I want to be able to create a custom response. I tried to intercept…
Niklas B.
  • 92,950
  • 18
  • 194
  • 224
8
votes
1 answer

Return response before http-on-examine-response

I am developing a Firefox addon, which needs to intercept the HTTP request process and return a fake response for certain URLs. This is the code I am using: function TracingListener() { this.originalListener = null; } TracingListener.prototype…
xfx
  • 1,918
  • 1
  • 19
  • 25
7
votes
1 answer

Using XPCOM components from Mozilla Add-on SDK

I have worked on Mozilla Add-on Development in the past (beginner level). But on encountering XPCOM, I got really scared and left it in the middle. Recently only I encountered Add-on SDK and found it to be really cool, and it was really fascinating…
Shatu
  • 1,819
  • 3
  • 15
  • 27
7
votes
1 answer

Get element currently under mouse without using mouse events

WRT building a Firefox Add-on. Is it possible to get the element under the mouse via some XPCOM or javascript method? (non-js-ctypes please as that requires OS specificity) I want to detect what is under the mouse when user presses Ctrl + Shift +…
Blagoh
  • 1,225
  • 1
  • 14
  • 29
7
votes
1 answer

XPCOM C++ multithread and javascript callback

Background In XULRunner version belowe 12.0 it's works, but when i'm trying port it to version 12.0 or higher it crash application. Main reason is that in sdk v12 or newer developers remove proxy objects to xpcom components and recommend replace…
7
votes
1 answer

How to save a webpage locally including pictures,etc

I am building an add-on for an application. The clients are paying to view some webpages and download some files out of it. They want to automate this downloading process by add-on. So instead of selecting "Save Page as" and waiting for the…
prabhakaran
  • 5,126
  • 17
  • 71
  • 107
6
votes
2 answers

Accessing Mozilla Certificates from Delphi

I would like to access certificates stored in Mozilla products (Firefox and Thunderbird) from a Delphi (XE) applicaiton. For start I would like to list them, next it would be nice to be able to manage them (import, export, delete) and use them…
Radek Hladík
  • 547
  • 4
  • 15
6
votes
1 answer

XPCOM Socket is closing. How to keep it alive?

I'm currently developing a firefox add-on that is a client who connects using TCP sockets to a server. In my little test everything works ok, the client(ff add-on) connects to the server(designed in java) and sends a message, but after that firefox…
Doua Beri
  • 10,612
  • 18
  • 89
  • 138
1
2 3
27 28