Bug #5742: API allows you to get the url bar URI for a channel or nsIDocument.