Bug 1189668 - Expose GetUnfilteredUrl on InternalResponse. r=ehsan
authorBobby Holley <bobbyholley@gmail.com>
Fri, 18 Sep 2015 13:41:56 -0700
changeset 296047 fb9cf88929053fb92c2e82b14bfa8cae95c29149
parent 296046 b275a63010de18c1fd5d522c0801239ef16f40b5
child 296048 2ce0f31385e1572fe8fbe0e06a6062ebb16b12f2
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1189668
milestone43.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 1189668 - Expose GetUnfilteredUrl on InternalResponse. r=ehsan
dom/fetch/InternalResponse.h
--- a/dom/fetch/InternalResponse.h
+++ b/dom/fetch/InternalResponse.h
@@ -77,16 +77,26 @@ public:
 
   // FIXME(nsm): Return with exclude fragment.
   void
   GetUrl(nsCString& aURL) const
   {
     aURL.Assign(mURL);
   }
 
+  void
+  GetUnfilteredUrl(nsCString& aURL) const
+  {
+    if (mWrappedResponse) {
+      return mWrappedResponse->GetUrl(aURL);
+    }
+
+    return GetUrl(aURL);
+  }
+
   // SetUrl should only be called when the fragment has alredy been stripped
   void
   SetUrl(const nsACString& aURL)
   {
     mURL.Assign(aURL);
   }
 
   uint16_t