Bug 207864 - Some things getService "@mozilla.org/rdf/container;1", r=neil
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 05 Jan 2009 19:27:13 -0800
changeset 1559 610f02e3c92c5169352a82beaa4fe224ce8e839d
parent 1558 cf03581c50a0bd8cd91b96e89356889118367430
child 1560 f4eb87ffd715cb2400e437bf071fe7cdfc3f7828
push idunknown
push userunknown
push dateunknown
reviewersneil
bugs207864
Bug 207864 - Some things getService "@mozilla.org/rdf/container;1", r=neil
suite/common/bookmarks/addBookmark.js
--- a/suite/common/bookmarks/addBookmark.js
+++ b/suite/common/bookmarks/addBookmark.js
@@ -235,17 +235,17 @@ function onOK()
 
     const kBMDS = kRDF.GetDataSource("rdf:bookmarks");
     const kBMSContractID = "@mozilla.org/browser/bookmarks-service;1";
     const kBMSIID = Components.interfaces.nsIBookmarksService;
     const kBMS = Components.classes[kBMSContractID].getService(kBMSIID);
     var rFolder = kRDF.GetResource(gCreateInFolder, true);
     const kRDFCContractID = "@mozilla.org/rdf/container;1";
     const kRDFIID = Components.interfaces.nsIRDFContainer;
-    const kRDFC = Components.classes[kRDFCContractID].getService(kRDFIID);
+    const kRDFC = Components.classes[kRDFCContractID].createInstance(kRDFIID);
     try {
       kRDFC.Init(kBMDS, rFolder);
     }
     catch (e) {
       // No "NC:NewBookmarkFolder" exists, just append to the root.
       rFolder = kRDF.GetResource("NC:BookmarksRoot", true);
       kRDFC.Init(kBMDS, rFolder);
     }