Fixed jar url resolve so that chrome protocol works. Fixed jar channel to not remove channel after kicking off load. Bug 18433

git-svn-id: svn://10.0.0.236/trunk@71713 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-06-07 09:07:10 +00:00
parent 626ae9634a
commit 9a33ca8346
4 changed files with 30 additions and 4 deletions

View File

@@ -534,7 +534,7 @@ nsJARChannel::EnsureJARFileAvailable(OnJARFileAvailableFun onJARFileAvailable,
}
error:
if (mLoadGroup) {
if (NS_FAILED(rv) && mLoadGroup) {
nsresult rv2 = mLoadGroup->RemoveChannel(this, nsnull, rv, nsnull); // XXX fix error message
NS_ASSERTION(NS_SUCCEEDED(rv2), "RemoveChannel failed");
}