Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

nsIBrowserHistory

The hidePage() function does not function and returns an error. Below is code from mxr:

4883 // nsNavHistory::HidePage
4884 //
4885 //    Sets the 'hidden' column to true. If we've not heard of the page, we
4886 //    succeed and do nothing.
4887 
4888 NS_IMETHODIMP
4889 nsNavHistory::HidePage(nsIURI *aURI)
4890 {
4891   NS_ASSERTION(NS_IsMainThread(), "This can only be called on the main thread");
4892   NS_ENSURE_ARG(aURI);
4893 
4894   return NS_ERROR_NOT_IMPLEMENTED;
4895 }
4896 

Shouldn't the documentation be updated until this feature is implemented?

Good catch. Documentation updated. Sheppy 10 November 2009

Document Tags and Contributors

 Contributors to this page: Sheppy, Hipokrit
 Last updated by: Sheppy,