[Jslib] xpcshell & jslib

missi tran at grappa.univ-lille3.fr
Mon Feb 28 14:34:05 EST 2005


Pete Collins wrote:

>
>
> missi wrote:
>
>> Hi
>>
>> I want to use jslib with xpcshell. Thus I have downloaded 
>> jslib_current_static.xpi.
>> The installation was done correctly (splashscreen visible for 
>> chrome://jslib/content/).
>> However when I want to load the jslib.js file in xpcshell, I get the 
>> following error:
>> "
>> Error creating channel (invalid URL scheme?)
>> include: chrome://jslib/content/debug/debug.js is not a valid path or 
>> is already loaded
>>
>> Error creating channel (invalid URL scheme?)
>> include: chrome://jslib/content/modules.js is not a valid path or is 
>> already loaded
>> "
>>
>> Does someone know how to solve this issue ?
>
>
> Works for me using Mozilla 1.7.5. What version of Mozilla are you using?
>
>
> js> load("chrome/jslib/jslib.js");
> *** load: debug.js OK
>
> *********************
> JS_LIB DEBUG IS ON
> *********************
>
> include: chrome://jslib/content/debug/debug.js
> include: chrome://jslib/content/modules.js
> js>
>
>
> Also do note that there is a bug in xpcshell where any js object 
> getters or setters fail silently.
>
The xpcshell I used came from a compilation of the sources of firefox1.0.
I have just downloaded the latest mozilla version and now xpcshell works 
fine with jslib.

Thanks for your help.


More information about the Jslib mailing list