From 710d7daa68788e351df978521b633d965a4043c6 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Sat, 23 Nov 2002 05:17:09 +0000 Subject: [PATCH] need this error check... part of patch for bug 86486, r=adamlock, sr=darin git-svn-id: svn://10.0.0.236/trunk@134358 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsDocShell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsDocShell.cpp b/mozilla/docshell/base/nsDocShell.cpp index 520807d0d0f..9862b80f9d6 100644 --- a/mozilla/docshell/base/nsDocShell.cpp +++ b/mozilla/docshell/base/nsDocShell.cpp @@ -5174,8 +5174,8 @@ nsDocShell::DoURILoad(nsIURI * aURI, // handling the load, though, so we fire a notification // before throwing the load away. PRBool abort = PR_FALSE; - mContentListener->OnStartURIOpen(aURI, &abort); - if (abort) { + nsresult rv2 = mContentListener->OnStartURIOpen(aURI, &abort); + if (NS_SUCCEEDED(rv2) && abort) { // Hey, they're handling the load for us! How convenient! return NS_OK; }