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

Create Firefox Addon to Watch and modify XHR requests & reponses

Update: I guess the subject gave a wrong notion that I'm looking for an existing addon. This is a custom problem and I do NOT want an existing solution. I wish to WRITE (or more appropriately, modify and existing) Addon. Here's my requirement: I…
Jumper
  • 129
  • 3
  • 9
6
votes
1 answer

How can I implement a content converter in Firefox for all page elements?

I'm attempting to port over an Internet Explorer plugin to Firefox, but I'm not sure where to look for what I need. Basically I need to be able to filter all content that is received by the browser with a certain Content-Type header. I tried…
Gerald
  • 23,011
  • 10
  • 73
  • 102
5
votes
1 answer

Greasemonkey & http-on-modify-request

I'm researching on writing some JavaScript code that tampers with HTTP POST requests and responses. Since the code I want to write is largely a proof-of-concept, a Firefox extension is too much I think (plus I would prefer to not deal with all that…
george
  • 231
  • 1
  • 2
  • 4
5
votes
1 answer

http-on-examine-response observer - possible to block response from further processing?

I am attempting to implement a firefox extension which filters incoming HTTP responses and handles them accordingly. I wish to block HTTP responses containing a specific header. Having read through some of the MDC articles, it appears the most…
Mike Hamer
  • 1,155
  • 11
  • 22
5
votes
2 answers

Beginner Assistance - Where does this code belong?

I'm trying to develop a firefox extension that inserts additional HTTP header fields into outgoing HTTP requests (to interface with an apache extension i'm concurrently developing). While I understand the individual components of an extension and…
Mike Hamer
  • 1,155
  • 11
  • 22
5
votes
2 answers

Firefox extension development firefox4

So I've been working on updating old extensions for use with FF4 and Gecko 2 but I am having some issues where I am getting an error that says, classID missing or incorrect for component.... Has anyone else had a similar issue or know of how to get…
Jesus Ramos
  • 22,940
  • 10
  • 58
  • 88
5
votes
1 answer

What is XPCOM? XPCOM vs COM?

I have trouble understanding XPCOM. How is it different from COM? What makes it cross platform? Is it a framework with a set of libraries that you can use to do some jobs? Also, does Component Object Model means every functionality is implemented…
Chan
  • 51
  • 2
5
votes
2 answers

Intercept/handle mime type/file

How do you disable the default action for .torrent files/content-type application/x-bittorrent(eg open with dialog or run program) and instead handle the data in a extension?
Trl
  • 147
  • 2
  • 12
5
votes
2 answers

How to implement XPCOM component (nsIContentPolicy) in bootstrapped Firefox extension

I have a bootstrapped extension for Firefox. And now I want to implement nsIContentPolicy XPCOM component. I wrote a component module code. And now I want to register this component. The reason I want to register component is that I want to add my…
Dmitry Kaigorodov
  • 1,512
  • 18
  • 27
5
votes
1 answer

how to use xpidl (header.py, typelib.py)

I am working on writing an XPCOM component. I have my idl file, it is very simple, containing only the following: #include "nsISupports.idl" [scriptable, uuid(4ead-ba5c-49c9-beb2=64209c7699a)] interface nsIPageSummary : nsISupports { boolean…
basil
  • 690
  • 2
  • 11
  • 30
4
votes
2 answers

Building XPCOM XULRunner 2.0 or newer versions

Followup to the following Questions: What lib in the gecko 1.9.3 SDK do I link against to use moz_xmalloc()? nsIGenericFactory.h is missing in the above version of xulrunner-2.0.en-US.win32.sdk I am able to build XPCOM with XULRunner 1.9.2…
Prabhu
  • 723
  • 2
  • 10
  • 29
4
votes
1 answer

nsIGenericFactory.h is missing in the above version of xulrunner-2.0.en-US.win32.sdk

Previously, I created XPCOM dll for the mozilla version 3.6 and XulRunner version of 1.9.2. Now I try to update that xpcom dll for the mozilla recent versions namely 4 and above. So I downloaded Xul Runner above version but I couldn't find…
karthik
  • 17,453
  • 70
  • 78
  • 122
4
votes
1 answer

Creating menus in browser menubar from Add-on SDK extension

I am building a simple Firefox extension using the Add-on SDK 1.0. Scouring the docs and googling a lot, I couldn't find a way to create a simple menu under the browser's tools menu. Add-on SDK has a context-menu module, which (obviously) only…
sharat87
  • 7,330
  • 12
  • 55
  • 80
4
votes
2 answers

How to overwrite built in XPCOM component in Firefox addon?

I'm taking a foray into Firefox extension development for the first time, and so far it's been pretty comfortable going, but I'm running into a problem; one of the things I need to do overwriting the built-in nsIPromptService and replacing it with…
DivineWolfwood
  • 1,752
  • 12
  • 20
4
votes
2 answers

getElementById for XML Documents, Mozilla extensions

Is document.getElementById method supported on DOM parsed from XML strings using the DOMParser method in Mozilla? I am making a Mozilla extension that reads an XML file and uses DOM Parser to convert the XML into a DOM element and tries getting…
Sharad
  • 963
  • 11
  • 24
1
2
3
27 28