JS Test Library - make sure JavaScriptOptions has the appropriate permission, no bug, not part of the build
This commit is contained in:
Родитель
07e9401903
Коммит
57e398e664
|
@ -736,7 +736,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -299,7 +299,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -361,7 +361,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -247,7 +247,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -221,7 +221,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -269,7 +269,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -270,7 +270,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -361,7 +361,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
@ -405,8 +406,8 @@ function JavaScriptOptions()
|
|||
|
||||
try
|
||||
{
|
||||
this.orig.strict = this.strict =
|
||||
pref.getBoolPref('javascript.options.strict');
|
||||
this.orig.strict = this.strict =
|
||||
pref.getBoolPref('javascript.options.strict');
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
|
@ -414,8 +415,8 @@ function JavaScriptOptions()
|
|||
|
||||
try
|
||||
{
|
||||
this.orig.werror = this.werror =
|
||||
pref.getBoolPref('javascript.options.werror');
|
||||
this.orig.werror = this.werror =
|
||||
pref.getBoolPref('javascript.options.werror');
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
|
@ -474,3 +475,4 @@ JavaScriptOptions.prototype.reset = function ()
|
|||
this.setOption('strict', this.orig.strict);
|
||||
this.setOption('werror', this.orig.werror);
|
||||
}
|
||||
|
||||
|
|
|
@ -362,7 +362,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -294,7 +294,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
|
@ -306,7 +306,8 @@ function JavaScriptOptions()
|
|||
this.orig.strict = this.strict = false;
|
||||
this.orig.werror = this.werror = false;
|
||||
|
||||
this.privileges = 'UniversalXPConnect';
|
||||
this.privileges = 'UniversalXPConnect UniversalPreferencesRead ' +
|
||||
'UniversalPreferencesWrite';
|
||||
|
||||
if (typeof options == 'function')
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче