[Mozile] path problems

Reto Bachmann-Gmür reto at gmuer.ch
Tue Dec 19 13:54:06 PST 2006


with this patch images and the toolbar css are resolved consistently
with the rng path, i.e. with the default config the request no longer
contain a double-slash:

Index: htmlToolbar.js
===================================================================
RCS file: /cvs/mozile/www/0.8/src/gui/htmlToolbar.js,v
retrieving revision 1.12
diff -r1.12 htmlToolbar.js
176c176,177
<     var src = [mozile.root, "images", name +
filetype].join(mozile.filesep);
---
>     var rootPath = mozile.root.substring(0,mozile.root.lastIndexOf('/'));
>     var src = [rootPath, "images", name + filetype].join(mozile.filesep);
203c204,205
<     var href = [mozile.root, "src", "gui",
"htmlToolbar.css"].join(mozile.filesep);
---
>     var rootPath = mozile.root.substring(0,mozile.root.lastIndexOf('/'));
>     var href = [rootPath, "src", "gui",
"htmlToolbar.css"].join(mozile.filesep);



reto

James A. Overton wrote:
> Damn. I thought I'd fixed the path stuff. See core.js for the gory  
> details, maybe there's a simple fix.
>
> Is there a reason why you need to use "./lib/xhtml.rng"instead of  
> "lib/xhtml.rng"?
>
> James
>
>
> On 2006-Dec-19, at 4:52 AM, Reto Bachmann-Gmür wrote:
>
>   
>> When I set
>>
>> mozile.root = "../scripts/mozile";
>> mozile.useSchema("./lib/xhtml.rng");
>>
>> Mozile tries to load ../scripts/lib/xhtml.rng, whcih is not where  
>> it is.
>>
>> But when I set
>>
>> mozile.root = "../scripts/mozile/";
>>
>> The rng is loaded from the correct place but it fails to load the  
>> icons,
>> as their URLs contain one additional slash as in:
>>
>> ../scripts/mozile//images/Mozile-16.png
>>
>> Cheers,
>> Reto
>>
>> _______________________________________________
>> Mozile mailing list
>> Mozile at mozdev.org
>> http://mozdev.org/mailman/listinfo/mozile
>>     
>
> _______________________________________________
> Mozile mailing list
> Mozile at mozdev.org
> http://mozdev.org/mailman/listinfo/mozile
>   


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://mozdev.org/pipermail/mozile/attachments/20061219/ffffce66/attachment.bin 


More information about the Mozile mailing list