Bug 1162198 - [EME] Doorhanger that notifies user of DRM usage should include a Learn More link. r=gijs, a=sledru
authorJustin Dolske <dolske@mozilla.com>
Wed, 06 May 2015 16:19:58 -0700
changeset 260424 121ed6b9b6dd
parent 260423 96da8302e8a2
child 260429 7e44bac27dd6
push id777
push userryanvm@gmail.com
push date2015-05-07 18:04 +0000
treeherdermozilla-release@121ed6b9b6dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgijs, sledru
bugs1162198
milestone38.0
Bug 1162198 - [EME] Doorhanger that notifies user of DRM usage should include a Learn More link. r=gijs, a=sledru
browser/base/content/browser-eme.js
--- a/browser/base/content/browser-eme.js
+++ b/browser/base/content/browser-eme.js
@@ -201,16 +201,17 @@ let gEMEHandler = {
       label: gNavigatorBundle.getString(btnLabelId),
       accessKey: gNavigatorBundle.getString(btnAccessKeyId),
       callback: function() { openPreferences("paneContent"); },
       dismiss: true
     };
     let options = {
       dismissed: true,
       eventCallback: aTopic => aTopic == "swapping",
+      learnMoreURL: Services.urlFormatter.formatURLPref("app.support.baseURL") + "drm-content",
     };
     PopupNotifications.show(browser, "drmContentPlaying", message, anchorId, mainAction, null, options);
   },
   QueryInterface: XPCOMUtils.generateQI([Ci.nsIMessageListener])
 };
 
 XPCOMUtils.defineLazyGetter(gEMEHandler, "_brandShortName", function() {
   return document.getElementById("bundle_brand").getString("brandShortName");