printf("XXX getting last page visited as: %s\n", (const char *)lastPageVisited);
printf("XXX getting last page visited as: %s\n", (const char *)mLastPageVisited);
nsGlobalHistory::GetLastPageVisted(char **_retval){   nsresult rv;  if (!_retval) return NS_ERROR_NULL_POINTER;  NS_WITH_SERVICE(nsIPref, prefs, kPrefCID, &rv);  if (NS_FAILED(rv)) return rv;  nsXPIDLCString lastPageVisited;  rv = prefs->CopyCharPref(BROWSER_HISTORY_LAST_PAGE_VISITED_PREF, getter_Copies(lastPageVisited));  if (NS_FAILED(rv)) return rv;  *_retval = nsCRT::strdup((const char *)lastPageVisited);#ifdef DEBUG_LAST_PAGE_VISITED  printf("XXX getting last page visited as: %s\n", (const char *)lastPageVisited);#endif /* DEBUG_LAST_PAGE_VISITED */  return NS_OK;}