Bug 1167808 P3 FetchEvent.respondWith() should use opaque response internal body. r=nsm
☠☠ backed out by 48347c4899df ☠ ☠
authorBen Kelly <ben@wanderview.com>
Thu, 02 Jul 2015 14:34:00 -0700
changeset 251200 9c94c759a0fb72e13ca17c73fcf79d27e25214b6
parent 251199 e8ac89eafb1dd37afe6660bad5e162acfd366c78
child 251201 1c9c72d93973039fa67fde1901af7abeff225653
push id61794
push userbkelly@mozilla.com
push dateThu, 02 Jul 2015 21:34:03 +0000
treeherdermozilla-inbound@1c9c72d93973 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnsm
bugs1167808
milestone42.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 1167808 P3 FetchEvent.respondWith() should use opaque response internal body. r=nsm
dom/workers/ServiceWorkerEvents.cpp
--- a/dom/workers/ServiceWorkerEvents.cpp
+++ b/dom/workers/ServiceWorkerEvents.cpp
@@ -257,17 +257,17 @@ RespondWithHandler::ResolvedCallback(JSC
   nsRefPtr<InternalResponse> ir = response->GetInternalResponse();
   if (NS_WARN_IF(!ir)) {
     return;
   }
 
   nsAutoPtr<RespondWithClosure> closure(
       new RespondWithClosure(mInterceptedChannel, ir, worker->GetChannelInfo()));
   nsCOMPtr<nsIInputStream> body;
-  response->GetBody(getter_AddRefs(body));
+  ir->GetInternalBody(getter_AddRefs(body));
   // Errors and redirects may not have a body.
   if (body) {
     response->SetBodyUsed();
 
     nsCOMPtr<nsIOutputStream> responseBody;
     rv = mInterceptedChannel->GetResponseBody(getter_AddRefs(responseBody));
     if (NS_WARN_IF(NS_FAILED(rv))) {
       return;