Fix debug build crasher introduced by JS-in-messages changes (bug 479906); rs=bienvenu
--HG-- extra : rebase_source : ee35d98a9c3fc6b476f24ed8817d2891e0d3611b
This commit is contained in:
Родитель
74ec3dfc41
Коммит
350eb2be73
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче