I learned for the first time that there was a import function.
https://blog.mozilla.org/addons/2013/06/03/compatibility-for-firefox-22/
I think that this is because remove deprecated nsILivemarkService interface.

-- 
You received this message because you are subscribed to the Google Groups 
"GMarks" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/gmarks.
For more options, visit https://groups.google.com/groups/opt_out.


diff -uNr gmarks_1.0.52/content/bookmarkBatch.js gmarks_1.0.52k/content/bookmarkBatch.js
--- gmarks_1.0.52/content/bookmarkBatch.js	2011-06-20 21:03:14.000000000 +0900
+++ gmarks_1.0.52k/content/bookmarkBatch.js	2013-07-13 17:49:18.048245680 +0900
@@ -94,11 +94,13 @@
 	}
 	GMS.sortBy=tmpSortBy;
 }
+function isLivemark (node) {
+	  return (node instanceof Components.interfaces.nsINavHistoryContainerResultNode) &&
+			    PlacesUtils.annotations.itemHasAnnotation(node.itemId, PlacesUtils.LMANNO_FEEDURI);
+}
 function importFF3(root,label){
 	var bmsvc = Components.classes["@mozilla.org/browser/nav-bookmarks-service;1"]
                       .getService(Components.interfaces.nsINavBookmarksService);
-	var lsvc = Components.classes["@mozilla.org/browser/livemark-service;2"]
-						.getService(Components.interfaces.nsILivemarkService);
 
 	if (!root){
 		var roots = Application.bookmarks;
@@ -115,7 +117,7 @@
       tags = tags.concat(label.split(/\s*,\s*/))
 			addImportBookmark(bkmk.uri.spec,bkmk.title,tags,desc);
 		}
-		else if (bkmk.type=="folder" && !lsvc.isLivemark(bkmk.id)){
+		else if (bkmk.type=="folder" && !isLivemark(bkmk.id)){
 			var title="";
 			if (bkmk.id != bmsvc.bookmarksMenuFolder){
 				if (label!="")

Reply via email to