rem:  BMDS.Assert(rSource, RDF.GetResource(NC_NS+"WebPanel"), RDF.GetLiteral("true"), true); 
add:  BMDS.Assert(rSource, RDF.GetResource(NC_NS+"WebPanel"), RDF.GetLiteral("true"), true); 
context: function onOK(){  RDFC.Init(BMDS, gSelectedFolder);  var url, rSource;  if (gGroup && gGroup.checked) {    rSource = BMDS.createFolder(gName.value);    const groups = window.arguments[5];    for (var i = 0; i < groups.length; ++i) {      url = getNormalizedURL(groups[i].url);      BMDS.createBookmarkInContainer(groups[i].name, url, null, null,                                     groups[i].charset, rSource, -1);    }  } else {    url = getNormalizedURL(window.arguments[1]);    rSource = BMDS.createBookmark(gName.value, url, null, null, window.arguments[3]);  }  var selection = BookmarksUtils.getSelectionFromResource(rSource);  var target    = BookmarksUtils.getTargetFromFolder(gSelectedFolder);  BookmarksUtils.insertAndCheckSelection("newbookmark", selection, target);    if (window.arguments[6] && rSource) {        // Assert that we're a web panel.        BMDS.Assert(rSource, RDF.GetResource(NC_NS+"WebPanel"),                    RDF.GetLiteral("true"), true);  }    // in insertSelection, the ds flush is delayed. It will never be performed,  // since this dialog is destroyed before.  // We have to flush manually  var remoteDS = BMDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);  remoteDS.Flush();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1f1a132025729bc14e3a192a76b08efde3bff8b8/addBookmark2.js/buggy/browser/components/bookmarks/content/addBookmark2.js