rem: const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); try { var temp = kPrefSvc.GetBoolPref("browser.bookmarks.add_without_dialog"); aShowDialog = !temp; } catch (e) { }  
context:   addBookmarkForBrowser: function (aDocShell, aShowDialog)  {    // Bug 52536: We obtain the URL and title from the nsIWebNavigation     //            associated with a <browser/> rather than from a DOMWindow.    //            This is because when a full page plugin is loaded, there is    //            no DOMWindow (?) but information about the loaded document    //            may still be obtained from the webNavigation.     var url = aDocShell.currentURI.spec;    var title, docCharset = null;    try {      title = aDocShell.document.title || url;      docCharset = aDocShell.document.characterSet;    }    catch (e) {      title = url;    }    const kPrefContractID = "@mozilla.org/preferences;1";    const kPrefIID = Components.interfaces.nsIPref;    const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID);    try {      var temp = kPrefSvc.GetBoolPref("browser.bookmarks.add_without_dialog");      aShowDialog = !temp;    }    catch (e) {    }    this.addBookmark(url, title, docCharset, aShowDialog);  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5ab5837308eb36231b2d6c49588b95500fe95814/bookmarksOverlay.js/buggy/xpfe/components/bookmarks/resources/bookmarksOverlay.js