Since im a nice guy im going to follow up my own question with the answer.

The answer to my problem is twofold.

The enablePrivilege method only seemed to work when it is called in
the javascript object prototype method where the object (in my case
an iframe element) containing the dom structure of the loaded page was
accessed using this.elementName as well (im not too sure about the second
bit, but its working now and thats the way it is)

David

what wrote:
Hi
I load an iframe with a src attribute from an external site (say google)
and then want to access its dom.

According to documentation on the web I have added:

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

to the page, and

user_pref("signed.applets.codebase_principal_support", true);

in my prefs.js file, but still get the permission exception.

Is there any way to work around this without resorting to the tedious task of using certificates and building jars ?

Thanks

David





Reply via email to