From 2190fa07e4777a5c1388c8e3ab8acf70fda1a26d Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Tue, 12 Feb 2002 23:43:41 +0000 Subject: [PATCH] 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 --- mozilla/docshell/base/nsDocShell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index f7007cc214d..f2e3df70a5c 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -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;