This was part of my earlier patch. I forgot to check it in.
git-svn-id: svn://10.0.0.236/trunk@114333 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -5633,6 +5633,7 @@ nsDocShell::ShouldAddToGlobalHistory(nsIURI * aURI, PRBool * aShouldAdd)
|
||||
PRBool isNews = PR_FALSE;
|
||||
PRBool isMailbox = PR_FALSE;
|
||||
PRBool isViewSource = PR_FALSE;
|
||||
PRBool isChrome = PR_FALSE;
|
||||
|
||||
NS_ENSURE_SUCCESS(aURI->SchemeIs("about", &isAbout), NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(aURI->SchemeIs("imap", &isImap), NS_ERROR_FAILURE);
|
||||
@@ -5640,8 +5641,9 @@ nsDocShell::ShouldAddToGlobalHistory(nsIURI * aURI, PRBool * aShouldAdd)
|
||||
NS_ENSURE_SUCCESS(aURI->SchemeIs("mailbox", &isMailbox), NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(aURI->SchemeIs("view-source", &isViewSource),
|
||||
NS_ERROR_FAILURE);
|
||||
NS_ENSURE_SUCCESS(aURI->SchemeIs("chrome", &isChrome), NS_ERROR_FAILURE);
|
||||
|
||||
if (isAbout || isImap || isNews || isMailbox || isViewSource)
|
||||
if (isAbout || isImap || isNews || isMailbox || isViewSource || isChrome)
|
||||
return NS_OK;
|
||||
|
||||
*aShouldAdd = PR_TRUE;
|
||||
|
||||
Reference in New Issue
Block a user