Bug 1466023 - Get rid of RTSP scheme, r=qdot
authorAndrea Marchesini <amarchesini@mozilla.com>
Sat, 02 Jun 2018 15:51:42 +0200
changeset 475201 dfeb1b271403c093be29da3296dbf128eb332876
parent 475200 3ad2d9f4b20372c952f5525f0440769bdc5ccc1a
child 475202 4a8ed669dab3b9d001e1563b68c2cd6bd6ce5b1a
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersqdot
bugs1466023
milestone62.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 1466023 - Get rid of RTSP scheme, r=qdot
dom/file/BlobURLProtocolHandler.h
--- a/dom/file/BlobURLProtocolHandler.h
+++ b/dom/file/BlobURLProtocolHandler.h
@@ -11,17 +11,16 @@
 #include "nsIProtocolHandler.h"
 #include "nsIURI.h"
 #include "nsCOMPtr.h"
 #include "nsIInputStream.h"
 #include "nsTArray.h"
 #include "nsWeakReference.h"
 
 #define BLOBURI_SCHEME "blob"
-#define RTSPURI_SCHEME "rtsp"
 
 class nsIPrincipal;
 
 namespace mozilla {
 class BlobURLsReporter;
 
 namespace dom {
 
@@ -79,22 +78,16 @@ private:
   ~BlobURLProtocolHandler();
 
   static void Init();
 };
 
 bool IsBlobURI(nsIURI* aUri);
 bool IsMediaSourceURI(nsIURI* aUri);
 
-inline bool IsRtspURI(nsIURI* aUri)
-{
-  bool isRtsp;
-  return NS_SUCCEEDED(aUri->SchemeIs(RTSPURI_SCHEME, &isRtsp)) && isRtsp;
-}
-
 } // namespace dom
 } // namespace mozilla
 
 extern nsresult
 NS_GetBlobForBlobURI(nsIURI* aURI, mozilla::dom::BlobImpl** aBlob);
 
 extern nsresult
 NS_GetBlobForBlobURISpec(const nsACString& aSpec, mozilla::dom::BlobImpl** aBlob);