Bug 1150371 - [Part2] DRM UI should not show up when Clearkey is the only one CDM created successfully. r?florian
MozReview-Commit-ID: GaklA7OEmQy
--- a/browser/base/content/browser-media.js
+++ b/browser/base/content/browser-media.js
@@ -62,17 +62,20 @@ var gEMEHandler = {
}
let notificationId;
let buttonCallback;
let params = [];
switch (status) {
case "available":
case "cdm-created":
- this.showPopupNotificationForSuccess(browser, keySystem);
+ // Only show the chain icon for proprietary CDMs. Clearkey is not one.
+ if (keySystem != "org.w3.clearkey") {
+ this.showPopupNotificationForSuccess(browser, keySystem);
+ }
// ... and bail!
return;
case "api-disabled":
case "cdm-disabled":
notificationId = "drmContentDisabled";
buttonCallback = gEMEHandler.ensureEMEEnabled.bind(gEMEHandler, browser, keySystem)
params = [this.getLearnMoreLink(notificationId)];