From 210e489c02e494c2a5e5fd11b8c17f82c280910e Mon Sep 17 00:00:00 2001 From: "chak%netscape.com" Date: Thu, 19 Apr 2001 14:42:52 +0000 Subject: [PATCH] Fix for bug#76272 - Assertion when using viewsource r=valeski, sr=alecf, a=blizzard --- docshell/base/nsDocShell.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docshell/base/nsDocShell.cpp b/docshell/base/nsDocShell.cpp index 3aadfa316ba..e76334fb78c 100644 --- a/docshell/base/nsDocShell.cpp +++ b/docshell/base/nsDocShell.cpp @@ -4273,13 +4273,15 @@ NS_IMETHODIMP nsDocShell::ShouldAddToGlobalHistory(nsIURI* aURI, PRBool* aShould PRBool isImap = PR_FALSE; PRBool isNews = PR_FALSE; PRBool isMailbox = PR_FALSE; + PRBool isViewSource = PR_FALSE; NS_ENSURE_SUCCESS(aURI->SchemeIs("about", &isAbout), NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(aURI->SchemeIs("imap", &isImap), NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(aURI->SchemeIs("news", &isNews), NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(aURI->SchemeIs("mailbox", &isMailbox), NS_ERROR_FAILURE); + NS_ENSURE_SUCCESS(aURI->SchemeIs("view-source", &isViewSource), NS_ERROR_FAILURE); - if (isAbout || isImap || isNews || isMailbox) + if (isAbout || isImap || isNews || isMailbox || isViewSource) return NS_OK; *aShouldAdd = PR_TRUE;