Bug 1189668 - Expose GetUnfilteredUrl on InternalResponse. r=ehsan
authorBobby Holley <bobbyholley@gmail.com>
Fri, 18 Sep 2015 13:41:56 -0700
changeset 297752 fb9cf88929053fb92c2e82b14bfa8cae95c29149
parent 297751 b275a63010de18c1fd5d522c0801239ef16f40b5
child 297753 2ce0f31385e1572fe8fbe0e06a6062ebb16b12f2
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [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