JavaScript Tests - update netscape.security.* detection, bug 372198

This commit is contained in:
bclary%bclary.com 2007-03-01 01:31:24 +00:00
Родитель 5d7e110fdb
Коммит bffd225067
13 изменённых файлов: 26 добавлений и 26 удалений

Просмотреть файл

@ -231,7 +231,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -288,7 +288,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -749,7 +749,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -806,7 +806,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -313,7 +313,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -370,7 +370,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -380,7 +380,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -437,7 +437,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -262,7 +262,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -319,7 +319,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -236,7 +236,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -293,7 +293,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -284,7 +284,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -341,7 +341,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -285,7 +285,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -342,7 +342,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -379,7 +379,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -436,7 +436,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -380,7 +380,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -437,7 +437,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -386,7 +386,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -443,7 +443,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -308,7 +308,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -365,7 +365,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);

Просмотреть файл

@ -320,7 +320,7 @@ function JavaScriptOptions()
}
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
@ -377,7 +377,7 @@ function (optionName, optionValue)
options(optionName);
}
}
else if (typeof document != 'undefined')
else if (typeof netscape != 'undefined' && 'security' in netscape)
{
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);