Implemented by
- @mozilla.org/browser/global-history;2
- @mozilla.org/autocomplete/search;1?name=history
- @mozilla.org/rdf/datasource;1?name=history
[scriptable, uuid(c43079c3-3d8d-4b7c-af14-0e30ab46865f)]
interface nsIBrowserHistory : nsIGlobalHistory2
Attributes
count The number of entries in global history
readonly attribute
PRUint32
count
lastPageVisited The last page that was visited in a top-level window.
readonly attribute
AUTF8String
lastPageVisited
Methods
addPageWithDetails Adds a page to history with specific time stamp information. This is used in the History migrator.
void
addPageWithDetails(in nsIURI aURI, in wstring aTitle, in long long aLastVisited)
hidePage Hide the specified URL from being enumerated (and thus displayed in the UI) if the page hasn't been visited yet, then it will be added as if it was visited, and then marked as hidden
void
hidePage(in nsIURI aURI)
markPageAsTyped Designate the url as having been explicitly typed in by the user, so it's okay to be an autocomplete result.
void
markPageAsTyped(in nsIURI aURI)
removeAllPages Remove all pages from global history
void
removeAllPages()
remove a page from history
void
removePage(in nsIURI aURI)
removePagesFromHost Remove all pages from the given host. If aEntireDomain is true, will assume aHost is a domain, and remove all pages from the entire domain.
void
removePagesFromHost(in AUTF8String aHost, in boolean aEntireDomain)
Compare to: