Hi,
I'm developing on Firefox 1.0.
why can't i load a subscript from a XPCOM Component
written in Javascript from a chrome: path?
The chrome path is valid, the javascript file exists and
is displayed if i enter the chrome URI in the browser.
This is my code, with the file: scheme it works fine.
// this works:
Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader)
.loadSubScript("file:///path/to/common.js");
// this won't work:
// .loadSubScript("chrome://myextension/content/common.js");
Thanks for any help,
/ karl
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom