зеркало из https://github.com/mozilla/pjs.git
Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers. r=warren
This commit is contained in:
Родитель
8450eb7cbc
Коммит
b643a7c0ca
|
@ -22,7 +22,7 @@
|
||||||
* - Ben Goodger <ben@netscape.com>
|
* - Ben Goodger <ben@netscape.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var gRDFService = nsJSComponentManager.getService("component://netscape/rdf/rdf-service",
|
var gRDFService = nsJSComponentManager.getService("@mozilla.org/rdf/rdf-service;1",
|
||||||
"nsIRDFService");
|
"nsIRDFService");
|
||||||
|
|
||||||
function RDF(aType)
|
function RDF(aType)
|
||||||
|
@ -68,7 +68,7 @@ function isBookmark(aURI)
|
||||||
|
|
||||||
function isPToolbarDNDEnabled()
|
function isPToolbarDNDEnabled()
|
||||||
{
|
{
|
||||||
var prefs = nsJSComponentManager.getService("component://netscape/preferences",
|
var prefs = nsJSComponentManager.getService("@mozilla.org/preferences;1",
|
||||||
"nsIPref");
|
"nsIPref");
|
||||||
var dragAndDropEnabled = false;
|
var dragAndDropEnabled = false;
|
||||||
try {
|
try {
|
||||||
|
@ -120,7 +120,7 @@ var personalToolbarObserver = {
|
||||||
var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder");
|
var personalToolbarRes = RDFUtils.getResource("NC:PersonalToolbarFolder");
|
||||||
|
|
||||||
var childDB = document.getElementById("innermostBox").database;
|
var childDB = document.getElementById("innermostBox").database;
|
||||||
var rdfContainer = nsJSComponentManager.createInstance("component://netscape/rdf/container",
|
var rdfContainer = nsJSComponentManager.createInstance("@mozilla.org/rdf/container;1",
|
||||||
"nsIRDFContainer");
|
"nsIRDFContainer");
|
||||||
rdfContainer.Init(childDB, personalToolbarRes);
|
rdfContainer.Init(childDB, personalToolbarRes);
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ var personalToolbarObserver = {
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
// do something here to drop into subfolders
|
// do something here to drop into subfolders
|
||||||
var childContainer = nsJSComponentManager.createInstance("component://netscape/rdf/container",
|
var childContainer = nsJSComponentManager.createInstance("@mozilla.org/rdf/container;1",
|
||||||
"nsIRDFContainer");
|
"nsIRDFContainer");
|
||||||
childContainer.Init(childDB, dropElementRes);
|
childContainer.Init(childDB, dropElementRes);
|
||||||
childContainer.AppendElement(elementRes);
|
childContainer.AppendElement(elementRes);
|
||||||
|
@ -442,7 +442,7 @@ var homeButtonObserver = {
|
||||||
var setHomepage;
|
var setHomepage;
|
||||||
if (showDialog)
|
if (showDialog)
|
||||||
{
|
{
|
||||||
var commonDialogService = nsJSComponentManager.getService("component://netscape/appshell/commonDialogs",
|
var commonDialogService = nsJSComponentManager.getService("@mozilla.org/appshell/commonDialogs;1",
|
||||||
"nsICommonDialogs");
|
"nsICommonDialogs");
|
||||||
var block = nsJSComponentManager.createInstanceByID("c01ad085-4915-11d3-b7a0-85cf-55c3523c",
|
var block = nsJSComponentManager.createInstanceByID("c01ad085-4915-11d3-b7a0-85cf-55c3523c",
|
||||||
"nsIDialogParamBlock");
|
"nsIDialogParamBlock");
|
||||||
|
@ -521,7 +521,7 @@ function retrieveURLFromData (aData)
|
||||||
var dataObj = aData.data.data.QueryInterface(Components.interfaces.nsIFile);
|
var dataObj = aData.data.data.QueryInterface(Components.interfaces.nsIFile);
|
||||||
if (dataObj)
|
if (dataObj)
|
||||||
{
|
{
|
||||||
var fileURL = nsJSComponentManager.createInstance("component://netscape/network/standard-url",
|
var fileURL = nsJSComponentManager.createInstance("@mozilla.org/network/standard-url;1",
|
||||||
"nsIFileURL");
|
"nsIFileURL");
|
||||||
fileURL.file = dataObj;
|
fileURL.file = dataObj;
|
||||||
return fileURL.spec;
|
return fileURL.spec;
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
const MAX_HISTORY_MENU_ITEMS = 15;
|
const MAX_HISTORY_MENU_ITEMS = 15;
|
||||||
var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();
|
var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();
|
||||||
rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);
|
rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);
|
||||||
var localstore = rdf.GetDataSource("rdf:localstore");
|
var localstore = rdf.GetDataSource("rdf:localstore");
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ function onLoadViewSource()
|
||||||
function createBrowserInstance()
|
function createBrowserInstance()
|
||||||
{
|
{
|
||||||
appCore = Components
|
appCore = Components
|
||||||
.classes[ "component://netscape/appshell/component/browser/instance" ]
|
.classes[ "@mozilla.org/appshell/component/browser/instance;1" ]
|
||||||
.createInstance( Components.interfaces.nsIBrowserInstance );
|
.createInstance( Components.interfaces.nsIBrowserInstance );
|
||||||
if ( !appCore ) {
|
if ( !appCore ) {
|
||||||
dump("Error creating browser instance\n");
|
dump("Error creating browser instance\n");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче