Solved: Re: Why don't I have privileges for anything from XBL?

Joerg Heinicke <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpinstall
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
We found out the problem, which is as strange as the problem:

The file extension .xbl caused the non-privileges. After renaming all XBLs 
to .xml everything works ok.

Regards,

Joerg

Joerg Heinicke wrote:
> Hello,
> 
> we created an application, which we want to install in chrome directory. We
> have placed the jar into the directory, added a contents.rdf and hacked
> installed-chrome.txt in the following way (according to Mozilla book, page
> 32, or like the prefbar application from xulplanet.com):
> 
> content,install,url,jar:resource:/chrome/iupb.jar!/content/iupb/
> 
> Everything works fine (CSS, images, access to JS and so on). But some
> actions in XBL JS won't be executed, because of following exception:
> 
> Error: uncaught exception: Permission denied to get property
> XULDocument.documentElement
> 
> As you can see even a simple document.documentElement is not permitted. Can
> you say why? This was already permitted in our pure remote version of the
> application.
> 
> During our tests and comparisons with prefbar application and XFly test 
> from
> the book, we found out, that the access to document.documentElement from JS
> files is permitted but denied from XBLs.
> 
> Regards,
> 
> Joerg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.