зеркало из https://github.com/mozilla/pjs.git
JavaScript Tests - update netscape.security.* detection, bug 372198
This commit is contained in:
Родитель
69e2e9630b
Коммит
39d790359e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче