no longer ignores the returned value from m_Observer->OnStartBinding(). This allows embedding apps (eg. Intuit) to intercept and filter URLs.

This commit is contained in:
pierre%netscape.com 1999-01-15 22:34:46 +00:00
Родитель 4ffff2a0d2
Коммит e702fb1de1
2 изменённых файлов: 6 добавлений и 4 удалений

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

@ -1661,8 +1661,9 @@ NS_METHOD nsDocumentBindInfo::OnStartBinding(nsIURL* aURL, const char *aContentT
/* Pass the notification out to the Observer... */
if (nsnull != m_Observer) {
/* XXX: Should we ignore the return value? */
(void) m_Observer->OnStartBinding(aURL, aContentType);
nsresult rv2 = m_Observer->OnStartBinding(aURL, aContentType);
if (rv == NS_OK)
rv = rv2;
}
done:

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

@ -1661,8 +1661,9 @@ NS_METHOD nsDocumentBindInfo::OnStartBinding(nsIURL* aURL, const char *aContentT
/* Pass the notification out to the Observer... */
if (nsnull != m_Observer) {
/* XXX: Should we ignore the return value? */
(void) m_Observer->OnStartBinding(aURL, aContentType);
nsresult rv2 = m_Observer->OnStartBinding(aURL, aContentType);
if (rv == NS_OK)
rv = rv2;
}
done: