Fix debug build crasher introduced by JS-in-messages changes (bug 479906); rs=bienvenu

--HG--
extra : rebase_source : ee35d98a9c3fc6b476f24ed8817d2891e0d3611b
This commit is contained in:
Dan Mosedale 2009-02-25 17:34:15 -08:00
Родитель 74ec3dfc41
Коммит 350eb2be73
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -747,10 +747,12 @@ nsMsgContentPolicy::OnLocationChange(nsIWebProgress *aWebProgress,
#ifdef DEBUG
nsCOMPtr<nsIChannel> channel = do_QueryInterface(aRequest, &rv);
nsCOMPtr<nsIDocShell> docShell2;
NS_QueryNotificationCallbacks(channel, docShell2);
NS_ASSERTION(docShell == docShell2, "aWebProgress and channel callbacks"
" do not point to the same docshell");
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIDocShell> docShell2;
NS_QueryNotificationCallbacks(channel, docShell2);
NS_ASSERTION(docShell == docShell2, "aWebProgress and channel callbacks"
" do not point to the same docshell");
}
#endif
// If this is a mailnews url, turn off JavaScript, otherwise turn it on