зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
4ffff2a0d2
Коммит
e702fb1de1
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче