Hello Everyone,

I'm trying to create a FireFox extension that adds some bookmarks.
It seems to work in a certain way, but in general the behaviour not
what I expected.

After running the code below, I don't see that "DDS" is added to my
bookmarks (and I don't understand why).

function AddBookmark2()
{
   var obj =
Components.classes["@mozilla.org/browser/bookmarks-service;1"].getService(Components.interfaces.nsIBookmarksService);
   bookmark = obj.createBookmark("DDS", "http://www.dds.nl";, "", "My
internet provider", null, "");
}

When I open the bookmark manager in FireFox, I still don't see the site
that should be bookmarked.
However, when I search for this bookmark in the bookmark manager, then
the bookmark seems to exist (it's found with the correct URL and
description).

Appearently, the site IS bookmarked, but somehow the bookmark isn't
visible yet.

1) Does anyone know how to get this bookmark visible between the other
bookmarks?

2) Does someany know a website (or other resource) that explains the
bookmarks-service in more detail. The only documentation that I could
find are API descriptions, without defining the exact behaviour of the
API functions.

Many thanks in advance.

Kind regards,
MC

_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to