Is it possible to reference remote content from chrome.manifest? (XULRunner)

Posted by siemaa on Stack Overflow See other posts from Stack Overflow or by siemaa
Published on 2011-01-11T18:40:31Z Indexed on 2011/01/12 17:53 UTC
Read the original article Hit count: 112

Filed under:

Hi,

I have a xulrunner application and I've been trying to reference remote content from chrome.manifest file. Tt's an application for the company I work in; it's run on a number of computers (most of them are used by other employees as well) as a kind of an internet monitoring service. The problem I'd like to solve is this: updating the code of such application usually requires me to manually copy the modified files to every computer that the application is running on (I've had no luck trying to make automatic updates via xulrunner platform). This process has become very tedious. What I'd like to have is a web server, where all of the xul and js files would be accessible, so that every application could reference them from there. This would require me only to update the code on that server, and the applications (when restarted) would automatically get the latest code.

What I managed to do:

I can reference js scripts from a xul file using http based urls and everything works fine (I can use local, binary components etc.), although the xul file has to be local - that I'd like to change. But when I write in chrome.manifest a line like:

content my_app http://path/to/app/files/

and then use the line in default/preferences/pref.js

pref("toolkit.defaultChromeURI", "chrome://my_app/content/my_app.xul");

it just opens a console window (to test I manually run the application with the -console option) and no code gets executed. The file can be downloaded remotely using wget so I guess this isn't the web server issue.

The applications work on Windows machines.

Is there some kind of security issue causing such behavior or am I doing something wrong? Is it even possible to register remote, http based content as chrome?

© Stack Overflow or respective owner

Related posts about xulrunner