Bug 1203680 P7 Fix e10s handling on interceptions resulting in redirect status codes. r=jdm

This commit is contained in:
Ben Kelly 2015-09-14 12:04:56 -07:00
parent 9b8ec1a5d5
commit 8dc9231872

View File

@ -2270,8 +2270,7 @@ HttpChannelChild::OverrideWithSynthesizedResponse(nsAutoPtr<nsHttpResponseHead>&
mResponseHead = aResponseHead;
mSynthesizedResponse = true;
uint16_t status = mResponseHead->Status();
if (status != 200 && status != 404) {
if (WillRedirect(mResponseHead)) {
// Continue with the original cross-process request
nsresult rv = ContinueAsyncOpen();
NS_ENSURE_SUCCESS_VOID(rv);