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 259088 121ed6b9b6dd409e5f7f0b9e23cec58fadf7e65f
parent 259087 96da8302e8a26a9a90bcb7950aa81fee10190747
child 259089 7e44bac27dd619349cbcd8375277777af3004c01
push id4717
push userryanvm@gmail.com
push dateMon, 11 May 2015 14:48:36 +0000
treeherdermozilla-beta@85229fbaf017 [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");