summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-20 10:51:40 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-20 10:51:40 -0500
commita4adb6827f02bd4a34ab9c650127853d2e46bccb (patch)
tree33e50083ecaaafd2ba0478a344a6f3b317469e37
parent0cdd647abc53f7db3aa16f67bf0b2f8f3825db61 (diff)
downloaduxp-a4adb6827f02bd4a34ab9c650127853d2e46bccb.tar.gz
Remove isBlob check from HTMLMediaElement.cpp
-rw-r--r--dom/html/HTMLMediaElement.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp
index 2dcc38fdfc..ca532b76c2 100644
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -1768,18 +1768,6 @@ nsresult HTMLMediaElement::LoadResource()
// Set the media element's CORS mode only when loading a resource
mCORSMode = AttrValueToCORSMode(GetParsedAttr(nsGkAtoms::crossorigin));
- bool isBlob = false;
- if (mMediaKeys &&
- Preferences::GetBool("media.eme.mse-only", true) &&
- // We only want mediaSource URLs, but they are BlobURL, so we have to
- // check the schema and if they are not MediaStream or real Blob.
- (NS_FAILED(mLoadingSrc->SchemeIs(BLOBURI_SCHEME, &isBlob)) ||
- !isBlob ||
- IsMediaStreamURI(mLoadingSrc) ||
- IsBlobURI(mLoadingSrc))) {
- return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
- }
-
HTMLMediaElement* other = LookupMediaElementURITable(mLoadingSrc);
if (other && other->mDecoder) {
// Clone it.