[Project_owners] XHTML Chrome Permissions

Ed Anuff ed at anuff.com
Thu Sep 1 19:31:54 EDT 2005

You can try to use the mechanism I describe on this page to load the
specific .xhtml pages with full chrome permissions:



-----Original Message-----
From: project_owners-bounces at mozdev.org
[mailto:project_owners-bounces at mozdev.org] On Behalf Of Jeroen
Sent: Thursday, September 01, 2005 5:03 PM
To: Mozdev Project Owners List
Subject: Re: [Project_owners] XHTML Chrome Permissions

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 
> 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 

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



Project_owners mailing list
Project_owners at mozdev.org

More information about the Project_owners mailing list