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

google doesn't want to be innerred (XPCOM)

I'm trying to make an firefox extension. Why when I want to use document.body.innerHTML = data; in new opened tab, it doesn't work. Here is my code: function change() { //Open google in new Tab and select…
mothorool
0
votes
1 answer

Using xpidl command to create .h

I have built Firefox from the source code, and I am trying to create a component. I try running xpidl on my .idl file from terminal $ xpidl -m header -w -v- I $XPIDL_INC \ > -o nsIPageSummary nsIPageSummary.idl but I get -bash: xpidl: command not…
Nolan
  • 75
  • 9
0
votes
1 answer

Compile Firefox add-on in Visual Studio 2012

Possible Duplicate: Compiling a MFC app from Visual Studio 2010 to 2012 RC results in LNK2038 I am moving an XPCOM Firefox add-on project from Visual Studio 2010 to Visual Studio 2012. When I open up the project, Visual Studio asks if I want the…
HappyNomad
  • 4,458
  • 4
  • 36
  • 55
0
votes
1 answer

Calling Firefox XPCOM from external app?

Context: we need to read Firefox cookies in our app; until Firefox 3.5, this was possible by reading cookies.txt / cookies.sqlite. In Firefox 3.5, it exclusively locks the cookie file so outside apps can't read it (see…
Dan Mitchell
  • 715
  • 1
  • 7
  • 13
0
votes
2 answers

How can I read the source URL of a file downloaded with FireFox from an external application?

I have an C++ app I built which is registered as the default handler for a file with a specific extension. So when I download one of these files with Firefox from a website, it downloads it to a temp directory and then shell executes my app while…
BJimdar
0
votes
0 answers

Injecting JS into browser outside of the process / via XPCOM

I need to inject a piece of JavaScript code into current page on my browser, either from an external .exe or from C++ code via XPCOM call. I suppose if I write an addon/extension and use a C++ .dll to call its code via XPCOM, the .dll is loaded into…
user1617735
  • 451
  • 5
  • 16
0
votes
1 answer

creatition of XPCOM components

I'm creating an XPCOM component using a tutorial as a reference. However, when I run the following command it completes successfully but doesn't produce any .h file: xpidl -m header -I [XUL_RUNNER SDK\IDL] myfile.idl Why is that? Is XPCOM outdated?
Raveendra Pai U
  • 135
  • 1
  • 4
  • 13
0
votes
1 answer

Injecting an object with nsIDOMGlobalPropertyInitializer to specific pages

I need to inject an object named "smth" to window on pages with specific URLs with nsIDOMGlobalPropertyInitializer. Is there any way to implement this? It'll be ok if window.smth returns undefined on the other pages. // currently init:…
Dmitrii Sorin
  • 3,855
  • 4
  • 31
  • 40
0
votes
2 answers

XPCOM CPP code fail to find an existing key in the registry

Here is a simplified example of a code I use in my XPCOM CPP DLL to check if a key exists in the registry. It checks for the existance of 2 keys: HKLM\SOFTWARE\Microsoft and HKLM\SOFTWARE\Microso both exist with the same permissions, but the first…
zenpoy
  • 19,490
  • 9
  • 60
  • 87
0
votes
1 answer

How to use Thebes classes in latest XULRunner sdk?

I have C++ code running well with XULRunner from 7 up to 11 versions: nsRefPtr targetSurface = new gfxWindowsSurface(hDC, gfxWindowsSurface::FLAG_FOR_PRINTING); nsRefPtr ctx = new…
Serge Z
  • 425
  • 2
  • 11
0
votes
1 answer

How can i get current layout language in firefox extension with Linux/Mac?

This can be done with user32.dll on Windows. But how can i get it on Mac/Linux?
Dmitrii Sorin
  • 3,855
  • 4
  • 31
  • 40
0
votes
1 answer

Using a javascript XPCOM component to create a custom autocomplete box in a FireFox add-on

I've spent a few days reading over all manner of tutorials, MDN entries, and S.O. posts, and I've come to suspect that I'm missing something obvious, but I'm too inexperienced with XPCOM to spot it. I'm about 80% sure there error is somewhere in my…
pieman72
  • 836
  • 8
  • 14
0
votes
1 answer

Unable to use window.setTimeout in Ajax Truclient

I want to run a function in TruClient (Firefox) every 0.1 seconds using window.setTimeout: function foobar(delay_accumulator){ if(delay_accumulator >= 100)//10 seconds return; //do something window.setTimeout(function() {…
kxsong
  • 440
  • 4
  • 13
0
votes
1 answer

Can't create javascript XPCOM service for Firefox extension

I've been banging my head a against this particular brick wall now for more than two days. I am attempting to create an XPCOM service for use in a Firefox extension but am unable to initialise the component with the following error displayed in the…
drew
  • 2,371
  • 2
  • 19
  • 27
0
votes
1 answer

Eclipse Indigo 3.7 Visual Page Editor throws XPCOM error

I'm using Eclipse Indigo SR2 for Java and Report Developers with JBoss Tools 3.3.0 installed thru Software Manager on a Linux Xubuntu 64Bit 11.10 . If I open a jsp or a html Page in JBoss Tools HTML Editor the Visual Editor throws an XPCOM error in…
1 2 3
27
28