Bug 1162198 - [EME] Doorhanger that notifies user of DRM usage should include a Learn More link. r=gijs, a=dolske
authorJustin Dolske <dolske@mozilla.com>
Wed, 06 May 2015 16:19:58 -0700
changeset 273990 87bffdf0233b34e96a4ba2a9b8fdbd6a929f10ab
parent 273989 5593ac626826e11ea1a5f2e29970ec89db12982e
child 273991 617dbce2672637a1b232316f12f46a7477f50d82
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)
reviewersgijs, dolske
bugs1162198
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1162198 - [EME] Doorhanger that notifies user of DRM usage should include a Learn More link. r=gijs, a=dolske
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");