Fix for bug#76272 - Assertion when using viewsource
r=valeski, sr=alecf, a=blizzard
This commit is contained in:
Родитель
3f2c0e479a
Коммит
210e489c02
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче