nsIGlobalHistory2

Methods

addURI(aURI, aRedirect, aToplevel, aReferrer)

Add a URI to global history

@note Docshell will not filter out URI schemes like chrome: data:
about: and view-source:. Embedders should consider filtering out
these schemes and others, e.g. mailbox: for the main URI and the
referrer.

Parameters

aURI the URI of the page
aRedirect whether the URI was redirected to another location; this is 'true' for the original URI which is redirected.
aToplevel whether the URI is loaded in a top-level window
aReferrer the URI of the referring page

isVisited(aURI)

Checks to see whether the given URI is in history.

Parameters

aURI the uri to the page

Returns

true if a URI has been visited

setPageTitle(aURI, aTitle)

Set the page title for the given uri. URIs that are not already in
global history will not be added.

Parameters

aURI the URI for which to set to the title
aTitle the page title