XULRunner Version 1.9 Issue Reading Local Files With No Internet Connectivity

anthony at evolutionindesignz.com anthony at evolutionindesignz.com
Wed Jan 11 21:19:44 EST 2012

Hello Samuel;

I realized after sending out the first email that the title should have 
been "Issue reading localHOST", but fortunately most people who replied 
had a rough idea of what I was describing, and gave me excellent tips.

We use the documented XULRunner <browser> tag to get data from the the 
localhost. It works fine as long as the computer is not disconnected 
from a network. However, in order to emulate a scenario where a child 
does not have Internet connectiviy, once we disconnect the computer from 
the network, if the application is running, it starts behaving odd. If 
it was not started up, it does not come up on trying to start it.

Calling the same application from XULRunner version 8.0 does not have 
these same issues.

We will be following Chris' suggestion for now to bundle the second 
version. Based on the information provided, the next version of the 
application will have to be re-written using WebKit.

On 11.01.2012 18:51, Samuel Greenfeld wrote:
> I'm not very familiar with xulrunner, but are you running a local
> webserver in your application?
> If your application does not have its own webserver, I would expect
> you would have to use the file:// URI handler, like the Browse
> activity does.  You may have to dynamically create this URI after
> determining the path the content is stored in, as there is no
> guarantee besides on XOs of all content being somewhere below
> /home/olpc.
> On Wed, Jan 11, 2012 at 4:37 PM,  wrote:
>> I am aware that the OLPC project is moving into Webkit for future
>> projects. However, it is necessary to complete a current project on
>> XULRunner.
>> With the OLPC laptop disconnected from the Internet, I try to
>> startup XULRunner and read local files using the browser tag like
>> this:
>> With XULRunner 1.9, the screen remains blank, and the file is not
>> loaded.
>> I installed XULRunner 8.0 on the OLPC laptop. I am not able to
>> replicate the problem with XULRunner version 8.0(that is, the
>> application starts correctly and reads the local files as
> expected.)
>> Given that XULRunner 8.0 may not be installed on the OLPC, are
>> there any suggestions that I could use to get XULRunner 1.9 to read
>> local files?
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.laptop.org [2]
>> http://lists.laptop.org/listinfo/devel [3]
> Links:
> ------
> [1] http://localhost/myfile.html
> [2] mailto:Devel at lists.laptop.org
> [3] http://lists.laptop.org/listinfo/devel
> [4] mailto:anthony at evolutionindesignz.com

More information about the Devel mailing list