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
This commit is contained in:
mscott%netscape.com 2000-07-07 02:23:19 +00:00
Родитель ec140450ed
Коммит 2bdc7ded6d
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -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