Bug 1211046 - Remove url parsing warning message for youtube embed check; r=cpeterson
authorKyle Machulis <kyle@nonpolynomial.com>
Mon, 05 Oct 2015 10:54:44 -0700
changeset 600753 be709ac91a4fa322015a6d589d24f713620b2e36
parent 600732 c288fb0952fb4d3fce858255d1667dc8a88f1b20
child 600754 15d9f056935dd28dbd452f166d85b0240b06524f
push id91675
push usershu@rfrn.org
push dateMon, 05 Oct 2015 22:47:03 +0000
treeherdertry@a3d215ae2a58 [default view] [failures only]
reviewerscpeterson
bugs1211046
milestone44.0a1
Bug 1211046 - Remove url parsing warning message for youtube embed check; r=cpeterson
dom/base/nsObjectLoadingContent.cpp
--- a/dom/base/nsObjectLoadingContent.cpp
+++ b/dom/base/nsObjectLoadingContent.cpp
@@ -1489,17 +1489,17 @@ nsObjectLoadingContent::IsYoutubeEmbed()
   // If we can't analyze the URL, just pass on through.
   if(!tldService) {
     NS_WARNING("Could not get TLD service!");
     return false;
   }
   nsAutoCString currentBaseDomain;
   bool ok = NS_SUCCEEDED(tldService->GetBaseDomain(mURI, 0, currentBaseDomain));
   if (!ok) {
-    NS_WARNING("Could not parse plugin domain!");
+    // Data URIs won't parse correctly, so just fail silently here.
     return false;
   }
   nsAutoCString domain("youtube.com");
   if (StringEndsWith(domain, currentBaseDomain)) {
     return true;
   }
   return false;
 }