Bug 1212669 P2 Backport hiding URL on opaque Responses. r=ehsan
authorBen Kelly <ben@wanderview.com>
Tue, 13 Oct 2015 18:17:01 -0700
changeset 289534 e8bb3ab47bdd
parent 289533 63092955e4b7
child 289535 7c95e499110e
push id5172
push userkwierso@gmail.com
push date2015-10-14 01:18 +0000
treeherdermozilla-beta@7c95e499110e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1212669
milestone42.0
Bug 1212669 P2 Backport hiding URL on opaque Responses. r=ehsan
dom/fetch/InternalResponse.cpp
--- a/dom/fetch/InternalResponse.cpp
+++ b/dom/fetch/InternalResponse.cpp
@@ -87,17 +87,16 @@ InternalResponse::SetPrincipalInfo(Uniqu
 
 already_AddRefed<InternalResponse>
 InternalResponse::OpaqueResponse()
 {
   MOZ_ASSERT(!mWrappedResponse, "Can't OpaqueResponse a already wrapped response");
   nsRefPtr<InternalResponse> response = new InternalResponse(0, EmptyCString());
   response->mType = ResponseType::Opaque;
   response->mTerminationReason = mTerminationReason;
-  response->mURL = mURL;
   response->mChannelInfo = mChannelInfo;
   if (mPrincipalInfo) {
     response->mPrincipalInfo = MakeUnique<mozilla::ipc::PrincipalInfo>(*mPrincipalInfo);
   }
   response->mWrappedResponse = this;
   return response.forget();
 }