Bug 1163076 - Whitelist Daily Motion. r=jya, a=lizzard
authorAnthony Jones <ajones@mozilla.com>
Mon, 18 May 2015 15:06:56 +1200
changeset 274706 b20a88ee8fceb597ff80e0095a454de8424e8f5f
parent 274705 5bfdd2a4b14cb729e949d9177975d54446ac0bc5
child 274707 8e44de9f759c3c4619c7387de8c0e38f8c7bfbd6
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya, lizzard
bugs1163076
milestone40.0a2
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);