Bug 341270 use the pref service's contract ID for

nsIPrefService/nsIPrefBranch, instead of the nsPref one
patch by Ryan Jones <sciguyryan+bugzilla@gmail.com> r=bclary
This commit is contained in:
cbiesinger%web.de 2006-10-20 09:58:28 +00:00
Родитель f00f59b4ae
Коммит 8807b2f780
13 изменённых файлов: 52 добавлений и 52 удалений

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

@ -236,10 +236,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -293,10 +293,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -756,10 +756,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -813,10 +813,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -321,10 +321,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -378,10 +378,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -387,10 +387,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -444,10 +444,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -269,10 +269,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -326,10 +326,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -243,10 +243,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -300,10 +300,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -291,10 +291,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -348,10 +348,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -292,10 +292,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -349,10 +349,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -387,10 +387,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -444,10 +444,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -388,10 +388,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -445,10 +445,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -394,10 +394,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -451,10 +451,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -316,10 +316,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -373,10 +373,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.

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

@ -328,10 +328,10 @@ function JavaScriptOptions()
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'JavaScriptOptions: unable to get @mozilla.org/preference;1';
throw 'JavaScriptOptions: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.
@ -385,10 +385,10 @@ function (optionName, optionValue)
// browser
netscape.security.PrivilegeManager.enablePrivilege(this.privileges);
var preferences = Components.classes['@mozilla.org/preferences;1'];
var preferences = Components.classes['@mozilla.org/preferences-service;1'];
if (!preferences)
{
throw 'setOption: unable to get @mozilla.org/preference;1';
throw 'setOption: unable to get @mozilla.org/preferences-service;1';
}
var prefService = preferences.