[Project_owners] XHTML Chrome Permissions

Jeroen Groenenboom jagrboom at zonnet.nl
Fri Sep 2 03:02:46 EDT 2005


Oren Nachman wrote:

> Hi,
>
> As part of my chrome application I have a jumble of xul and xhtml 
> files. Unfortunately, the xhtml files run at a different privelage 
> level or in a different namespace to the xul files - trying to run any 
> javascript function that uses Components.classes (etc) fails with 
> "Permission denied to get property UnnamedClass.classes" (using 
> try/catch).
>
> This seems to be part of Bug 221490 
> <https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=221490https://bugzilla.mozilla.org/show_bug.cgi?query_format=specific&order=relevance+desc&bug_status=__open__&id=221490>. 
> The patch there has been incorporated to CVS though I can't seem to 
> determine if it is in 1.06. I am also not sure whether or not this is 
> really the solution to my problems (though I am considering building 
> Firefox and checking).

It's not in 106. To see this, you can look at the Diff of the latest 
patch on the bug page. Then you can look for the patched files in lxr, 
click the cvs log (or blame) and then click on (revision) graph. At the 
bottom of the graph you will find the patch in a grey box labeled 1.114. 
A little higher you will see the grey box with the firefox 106 release 
(1.100.26.1.2.1).

The only things you can do (I think) is change the xhtml into html (with 
scripttype text/javascript) or wait for a firefox release with the patch 
included.

Jeroen



More information about the Project_owners mailing list