Raphael Bauduin wrote:
Following the XUL tutorial on xulplanet, I try this code:

tree=document.getElementById('my-tree');
source=tree.database.GetDataSources();

and get this error:

Error: uncaught exception: Permission denied to create wrapper for object
The XUL and RDF I use are generated with PHP. Thus they are not local
scripts and difficult to sign (generated dynamicaly). How could I be able
to use the former code?
Thanks for your help....

Raph
Hi Raph,

there is currently no way other than to do
netscape.security.enablePriviledge(...) (Hrm. not sure about the spelling, a search on mozilla.org should give you good pages.)
That needs a pref to be set, otherwise Mozilla won't even ask.
http://www.mozilla.org/projects/security/components/per-file.html
shows examples on how to do that,
http://www.mozilla.org/projects/security/components/ConfigPolicy.html
has more.

And then there's http://bugzilla.mozilla.org/show_bug.cgi?id=122846
which should fix that some day.

Axel who would really have like to come to brussels last weekend, darn daywork :-(




Reply via email to