Bug 1163076 - Whitelist Daily Motion. r=jya, a=lizzard
authorAnthony Jones <ajones@mozilla.com>
Mon, 18 May 2015 15:06:56 +1200
changeset 267542 93711677dff40f9a94833af0fa6dec83a6ae964c
parent 267541 b515d822788ff0fd28e9f6ecab4eaafe274ce5f4
child 267543 dc93318d4ffdf086e3d1694a05318add457ac677
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya, lizzard
bugs1163076
milestone39.0
Bug 1163076 - Whitelist Daily Motion. r=jya, a=lizzard
dom/media/mediasource/MediaSource.cpp
--- a/dom/media/mediasource/MediaSource.cpp
+++ b/dom/media/mediasource/MediaSource.cpp
@@ -370,17 +370,19 @@ MediaSource::Enabled(JSContext* cx, JSOb
 
   nsAutoCString eTLDplusOne;
    if (NS_FAILED(tldServ->GetBaseDomain(uri, 0, eTLDplusOne))) {
      return false;
    }
 
    return eTLDplusOne.EqualsLiteral("youtube.com") ||
           eTLDplusOne.EqualsLiteral("youtube-nocookie.com") ||
-          eTLDplusOne.EqualsLiteral("netflix.com");
+          eTLDplusOne.EqualsLiteral("netflix.com") ||
+          eTLDplusOne.EqualsLiteral("dailymotion.com") ||
+          eTLDplusOne.EqualsLiteral("dmcdn.net");
 }
 
 bool
 MediaSource::Attach(MediaSourceDecoder* aDecoder)
 {
   MOZ_ASSERT(NS_IsMainThread());
   MSE_DEBUG("Attach(aDecoder=%p) owner=%p", aDecoder, aDecoder->GetOwner());
   MOZ_ASSERT(aDecoder);