# HG changeset patch # Parent 28613a5ff81bf1e4fd203655a9db50eea22dd912 # User Chris Coulson Index: mozilla/netwerk/protocol/http/HttpChannelParent.cpp =================================================================== --- mozilla.orig/netwerk/protocol/http/HttpChannelParent.cpp 2012-01-23 02:08:29.000000000 +0000 +++ mozilla/netwerk/protocol/http/HttpChannelParent.cpp 2012-01-23 14:23:35.799182395 +0000 @@ -57,7 +57,6 @@ #include "nsIApplicationCacheService.h" #include "nsIOfflineCacheUpdate.h" #include "nsIRedirectChannelRegistrar.h" -#include "prinit.h" namespace mozilla { namespace net { @@ -67,9 +66,6 @@ , mStoredStatus(0) , mStoredProgress(0) , mStoredProgressMax(0) - , mSentRedirect1Begin(false) - , mSentRedirect1BeginFailed(false) - , mReceivedRedirect2Verify(false) { // Ensure gHttpHandler is initialized: we need the atom table up and running. nsIHttpProtocolHandler* handler; @@ -331,11 +327,6 @@ return true; } -// Bug 621446 investigation, we don't want conditional PR_Aborts bellow to be -// merged to a single address. -#pragma warning(disable : 4068) -#pragma GCC optimize ("O0") - bool HttpChannelParent::RecvRedirect2Verify(const nsresult& result, const RequestHeaderTuples& changedHeaders) @@ -353,30 +344,11 @@ } } - if (!mRedirectCallback) { - // Bug 621446 investigation (optimization turned off above) - if (mReceivedRedirect2Verify) - NS_RUNTIMEABORT("Duplicate fire"); - if (mSentRedirect1BeginFailed) - NS_RUNTIMEABORT("Send to child failed"); - if (mSentRedirect1Begin && NS_FAILED(result)) - NS_RUNTIMEABORT("Redirect failed"); - if (mSentRedirect1Begin && NS_SUCCEEDED(result)) - NS_RUNTIMEABORT("Redirect succeeded"); - if (!mRedirectChannel) - NS_RUNTIMEABORT("Missing redirect channel"); - } - - mReceivedRedirect2Verify = true; - mRedirectCallback->OnRedirectVerifyCallback(result); mRedirectCallback = nsnull; return true; } -// Bug 621446 investigation -#pragma GCC reset_options - bool HttpChannelParent::RecvDocumentChannelCleanup() { @@ -588,14 +560,8 @@ redirectFlags, responseHead ? *responseHead : nsHttpResponseHead()); - if (!result) { - // Bug 621446 investigation - mSentRedirect1BeginFailed = true; + if (!result) return NS_BINDING_ABORTED; - } - - // Bug 621446 investigation - mSentRedirect1Begin = true; // Result is handled in RecvRedirect2Verify above Index: mozilla/netwerk/protocol/http/HttpChannelParent.h =================================================================== --- mozilla.orig/netwerk/protocol/http/HttpChannelParent.h 2012-01-23 02:08:29.000000000 +0000 +++ mozilla/netwerk/protocol/http/HttpChannelParent.h 2012-01-23 14:24:01.663183457 +0000 @@ -133,10 +133,6 @@ nsresult mStoredStatus; PRUint64 mStoredProgress; PRUint64 mStoredProgressMax; - - bool mSentRedirect1Begin : 1; - bool mSentRedirect1BeginFailed : 1; - bool mReceivedRedirect2Verify : 1; }; } // namespace net