Greetings,
I am having a problem using window.openDialog in Mozilla 1.1 and Netscape
7 final. I am using signed scripts. The following code works in NS 6.23
and NS7 PR1, but not in NS7 final or Mozilla 1.1.
try
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var path =
'chrome://communicator/content/profile/profileSelection.xul?manage=true';
var features = 'centerscreen,chrome,modal=yes,titlebar=yes';
var features = 'centerscreen,chrome,modal=yes,titlebar=yes';
window.opendialog(path, 'profilemgr', features, path, '', 'profile');
netscape.security.PrivilegeManager.revertPrivilege("UniversalXPConnect");
} catch (err)
{
document.write("Failed to execute due to " + err)
}
I receive the following error:
Failed to execute due to [Exception... "Security error" code: "1000"
nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)
If this is an intentional change is there another way to open the
profile manager or preferences window programmatically?
Chris