%browserDTD; ]> this.boxObject.QueryInterface(Components.interfaces.nsIScrollBoxObject); -1 this._matchCount - 1) return val; if (this._selectedItem) this._styleItem(this._selectedItem, false); // highlight the selected item let item = this._items.childNodes.item(val); if (item) { this._selectedItem = item; this._styleItem(this._selectedItem, true); this._scrollBoxObject.ensureElementIsVisible(this._selectedItem); } return this._selectedIndex = val; ]]> false ("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul") matchCount - 1) { // Just clear out the old item's value. CSS takes care of hiding // everything else based on value="" (star, tags, etc.) item.setAttribute("value", ""); item._empty = true; continue; } item._empty = false; // Assign the values let type = controller.getStyleAt(i); let title = controller.getCommentAt(i); let tags = ''; if (type == "tag") [, title, tags] = title.match(/^(.+) \u2013 (.+)$/); item.setAttribute("tags", tags); let url = controller.getValueAt(i); item.setAttribute("value", title || url); item.setAttribute("url", url); let isBookmark = ((type == "bookmark") || (type == "tag")); item.setAttribute("favorite", isBookmark); item.setAttribute("src", controller.getImageAt(i)); } // Show the "no results" or "all bookmarks" entries as needed this._updateNoResultsItem(matchCount); if (searchString == "") { items.insertBefore(this._allBookmarksItem, items.firstChild); this._allBookmarksItem._hidden = false; } // Make sure the list is scrolled to the top this.scrollToTop(); ]]> &noResults.label; document.getAnonymousElementByAttribute(this, "anonid", "allbookmarks"); lastIndex) newIndex = 0; else if (newIndex < 0) newIndex = lastIndex; this.selectedIndex = newIndex; ]]> document.getAnonymousElementByAttribute(this, "anonid", "autocomplete-items"); if (this.control) this.control._fireOpen(event, this); null null false Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); document.getAnonymousElementByAttribute(this, "anonid", "name"); document.getAnonymousElementByAttribute(this, "anonid", "uri"); document.getAnonymousElementByAttribute(this, "anonid", "tags"); 0 || currentTags.length > 0) { let tagsToRemove = []; let tagsToAdd = []; for (let i = 0; i < currentTags.length; i++) { if (tags.indexOf(currentTags[i]) == -1) tagsToRemove.push(currentTags[i]); } for (let i = 0; i < tags.length; i++) { if (currentTags.indexOf(tags[i]) == -1) tagsToAdd.push(tags[i]); } if (tagsToAdd.length > 0) PlacesUtils.tagging.tagURI(this.uri, tagsToAdd); if (tagsToRemove.length > 0) PlacesUtils.tagging.untagURI(this.uri, tagsToRemove); } this.setAttribute('tags', this.tags); // If the URI was updated change it in the bookmark, but don't // allow a blank URI. Revert to previous URI if blank. let spec = this.spec; if (spec && this.uri.spec != spec) { try { let oldURI = this._uri; this._uri = this._ioService.newURI(spec, null, null); PlacesUtils.bookmarks.changeBookmarkURI(this.itemId, this.uri); this.setAttribute('uri', this.spec); // move tags from old URI to new URI let tags = this.tagsAsArray; if (tags.length != 0) { // only untag the old URI if this is the only bookmark if (PlacesUtils.getBookmarksForURI(oldURI, {}).length == 0) PlacesUtils.tagging.untagURI(oldURI, tags); PlacesUtils.tagging.tagURI(this._uri, tags); } } catch (e) { } } if (spec != this.uri.spec) this.spec = this.uri.spec; } // Update the name and use the URI if name is blank this.name = this.name || this.spec; this.setAttribute('title', this.name); PlacesUtils.bookmarks.setItemTitle(this.itemId, this.name); ]]> Components.classes["@mozilla.org/intl/stringbundle;1"] .getService(Components.interfaces.nsIStringBundleService) .createBundle("chrome://browser/locale/browser.properties"); -1000 null false false document.getAnonymousElementByAttribute(this, "anonid", "parent-items"); document.getAnonymousElementByAttribute(this, "anonid", "child-items"); this._children.scrollBoxObject 0 && this._readOnlyFolders.indexOf(parseInt(children[i].itemId)) == -1) return children[i]; } return null; ]]> 0.8) this._insertItems(); ]]> this.scrollBoxObject.height; []