xulrunner

Opening a window in XUL

An exception is being thrown when trying to open a window using window.open in XUL. The exception details: Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: The line of code throwing the exception is: newWind = window.open(settings....

Xul tray icon code

merhaba aşağıdaki eklentiyi nasıl kendi uylamam için kullanabilirim örnek bir kod veya anlatacak biri var mı? http://github.com/nmaier/mintrayr/ https://addons.mozilla.org/en-US/firefox/addon/12581/ ...

What's wrong with this url?

Why is Xul app saying XML Parsing Error: not well-formed for: <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&img2=img2.jpg" flex="4"/> at the equals sign of &img2=img2.jpg"? Note that it works without the parameters. ...

Xulrunner and Gecko relationship

After read: Do not confuse the Gecko/XULRunner SDK with XULRunner itself. The Gecko SDK is a collection of header files and tools used to develop general XPCOM components which add functionality to the existing platform, whereas XULRunner is a framework which can be used to run standalone or embedded applications base...

Java embedded browser with resources in memory

We have a Java desktop app with an embedded browser, now using XULRunner (Firefox engine) on SWT. This browser's API allows us to load webs specifying an URI or its HTML content. What we need is to load HTML webpages including resources but being everything in memory. The best solution would be to provide a listener used when the engine ...

how can I block the browser xul component from downloading?

I have a xulrunner app, and I am using the browser object; I would like to call loadURI to download a URL and not have it load any of the content on the page. Is there a way to specify via pref a way to disable downloading of resources such as CSS, images, JavaScript? Update I found the nsIDocShell documentation, and this solves half o...

Avoid unresponsive script warning in xulrunner

In link text someone is advicing to change dom.max_script_run_time to avoid the unresponsive script warning. When we do that firefox add user_pref("dom.max_script_run_time", 100); extra line. In order to do that in xulrunner I edited to the xulruenner.js file to add pref("dom.max_script_run_time", 100); Can someone please confirm if ...

How to run a xulrunner app from java code?

public static void main(String[] args) { String command = "/usr/bin/xulrunner -app /home/user/myapp/app.ini"; System.out.print(command); try { Runtime rt = Runtime.getRuntime(); Process pr = rt.exec(command); BufferedReader input = new BufferedReader( new InputStreamReader(pr.getInp...