From 2bdc7ded6d115f665fbd83613405b570d8891a33 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Fri, 7 Jul 2000 02:23:19 +0000 Subject: [PATCH] Bug #41707, #43652 --> JS urls aren't working. We need to check for the correct return value and don't propogate the on start request in that case. r=alecf --- uriloader/base/nsURILoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uriloader/base/nsURILoader.cpp b/uriloader/base/nsURILoader.cpp index 200c4e005927..a3d3a03f90c0 100644 --- a/uriloader/base/nsURILoader.cpp +++ b/uriloader/base/nsURILoader.cpp @@ -162,7 +162,9 @@ PRBool nsDocumentOpenInfo::ProcessCanceledCase(nsIChannel * aChannel) if (aChannel) { aChannel->GetStatus(&rv); - if (rv == NS_BINDING_ABORTED) + + // if we were aborted or if the js returned no result (i.e. we aren't replacing any window content) + if (rv == NS_BINDING_ABORTED || rv == NS_ERROR_DOM_RETVAL_UNDEFINED) { canceled = PR_TRUE; // free any local state for this load since we are aborting it so we