I have an XUL interface that references a file on
the local drive (an SVG document to be displayed). The
pathname is a fully qualified pathname (no relative
pathname).
The XUL source line looks like....
<iframe src="///Macintosh
HD/EBC/Demos/ELearn2004/ebc03/ebc03/content/graph.xml" flex="6"/>
As long as I use the file reference for the chrome application,
everything works fine....
./mozilla-bin -chrome
file:////MozDev/SVGBuildQtz/mozilla/dist/MozillaDebug.app/Contents/MacOS/chrome/workbook/content/workbook/workbook.xul
However, after I register the chrome application, and launch
it of the form...
./mozilla-bin -chrome chrome://workbook/content/
the chrome application tells me that the file
'/MacintoshHD....graph.xml' cannot be found.
My installed-chrome.txt line looks like:
content,install,url,resource:/chrome/workbook/content/workbook/
And from what I can tell by the chrome.rdf file, everything registered
fine. (The XUL file does get found and is being launched).
Is there something about referencing filesystem files from registered
chrome applications that is different from non-registered chrome
apps?
Brion Vibber - 05 Sep 2004 21:07 GMT
> I have an XUL interface that references a file on
> the local drive (an SVG document to be displayed). The
[quoted text clipped - 5 lines]
> <iframe src="///Macintosh
> HD/EBC/Demos/ELearn2004/ebc03/ebc03/content/graph.xml" flex="6"/>
[snip]
> Is there something about referencing filesystem files from registered
> chrome applications that is different from non-registered chrome
> apps?
Have you tried specifying the file: protocol?
-- brion vibber (brion @ pobox.com)
Kenneth Feldt - 06 Sep 2004 13:35 GMT
>> I have an XUL interface that references a file on
>> the local drive (an SVG document to be displayed). The
[quoted text clipped - 15 lines]
>
> -- brion vibber (brion @ pobox.com)
That took care of it.... thanks!
Ken