Bug 1236650 - make h2 push work in the face of redirects. r=mcmanus
authorNicholas Hurley <hurley@todesschaf.org>
Tue, 12 Apr 2016 11:43:39 -0700
changeset 330811 0e68f07922841c79d66dc42fa32417a8affc02fc
parent 330810 0dcdf655c75ef41fb4c2eca4dc62e88e48070deb
child 330812 4d1ff5526e6f4f1760bbc8b94441c07ad4cc84ad
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs1236650
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1236650 - make h2 push work in the face of redirects. r=mcmanus
netwerk/protocol/http/HttpBaseChannel.cpp
--- a/netwerk/protocol/http/HttpBaseChannel.cpp
+++ b/netwerk/protocol/http/HttpBaseChannel.cpp
@@ -2823,16 +2823,19 @@ HttpBaseChannel::SetupReplacementChannel
     nsresult hasHeader = mRequestHead.GetHeader(nsHttp::Accept, oldAcceptValue);
     if (NS_SUCCEEDED(hasHeader)) {
       httpChannel->SetRequestHeader(NS_LITERAL_CSTRING("Accept"),
                                     oldAcceptValue,
                                     false);
     }
   }
 
+  // share the scheduling context - see bug 1236650
+  httpChannel->SetSchedulingContextID(mSchedulingContextID);
+
   if (httpInternal) {
     // Convey third party cookie and spdy flags.
     httpInternal->SetThirdPartyFlags(mThirdPartyFlags);
     httpInternal->SetAllowSpdy(mAllowSpdy);
     httpInternal->SetAllowAltSvc(mAllowAltSvc);
 
     RefPtr<nsHttpChannel> realChannel;
     CallQueryInterface(newChannel, realChannel.StartAssignment());