Bug 1234355 - Part 1: Remove "Don't ask me again" footgun option from the "Enable DRM" info bar notification. r=spohl

This commit is contained in:
Chris Peterson 2016-01-26 11:11:16 -08:00
Родитель 04d1e65b1b
Коммит 266e8ba667
4 изменённых файлов: 0 добавлений и 42 удалений

Просмотреть файл

@ -33,16 +33,6 @@ var gEMEHandler = {
return "<label class='text-link' href='" + baseURL + "drm-content'>" + return "<label class='text-link' href='" + baseURL + "drm-content'>" +
text + "</label>"; text + "</label>";
}, },
onDontAskAgain: function(menuPopupItem) {
let button = menuPopupItem.parentNode.anchorNode;
let bar = button.parentNode;
Services.prefs.setBoolPref("browser.eme.ui." + bar.value + ".disabled", true);
bar.close();
},
onNotNow: function(menuPopupItem) {
let button = menuPopupItem.parentNode.anchorNode;
button.parentNode.close();
},
receiveMessage: function({target: browser, data: data}) { receiveMessage: function({target: browser, data: data}) {
let parsedData; let parsedData;
try { try {
@ -105,13 +95,6 @@ var gEMEHandler = {
return; return;
} }
// If the user turned these off, bail out:
try {
if (Services.prefs.getBoolPref("browser.eme.ui." + notificationId + ".disabled")) {
return;
}
} catch (ex) { /* Don't care if the pref doesn't exist */ }
let msgPrefix = "emeNotifications." + notificationId + "."; let msgPrefix = "emeNotifications." + notificationId + ".";
let msgId = msgPrefix + "message"; let msgId = msgPrefix + "message";
@ -140,13 +123,6 @@ var gEMEHandler = {
accessKey: gNavigatorBundle.getString(btnAccessKeyId), accessKey: gNavigatorBundle.getString(btnAccessKeyId),
callback: callback callback: callback
}); });
let optionsId = "emeNotifications.optionsButton";
buttons.push({
label: gNavigatorBundle.getString(optionsId + ".label"),
accessKey: gNavigatorBundle.getString(optionsId + ".accesskey"),
popup: "emeNotificationsPopup"
});
} }
let iconURL = "chrome://browser/skin/drm-icon.svg#chains-black"; let iconURL = "chrome://browser/skin/drm-icon.svg#chains-black";

Просмотреть файл

@ -464,17 +464,6 @@
<tooltip id="dynamic-shortcut-tooltip" <tooltip id="dynamic-shortcut-tooltip"
onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/> onpopupshowing="UpdateDynamicShortcutTooltipText(this);"/>
<menupopup id="emeNotificationsPopup">
<menuitem id="emeNotificationsNotNow"
label="&emeNotificationsNotNow.label;"
acceskey="&emeNotificationsNotNow.accesskey;"
oncommand="gEMEHandler.onNotNow(this);"/>
<menuitem id="emeNotificationsDontAskAgain"
label="&emeNotificationsDontAskAgain.label;"
acceskey="&emeNotificationsDontAskAgain.accesskey;"
oncommand="gEMEHandler.onDontAskAgain(this);"/>
</menupopup>
<menupopup id="SyncedTabsSidebarContext"> <menupopup id="SyncedTabsSidebarContext">
<menuitem label="&syncedTabs.context.openTab.label;" <menuitem label="&syncedTabs.context.openTab.label;"
accesskey="&syncedTabs.context.openTab.accesskey;" accesskey="&syncedTabs.context.openTab.accesskey;"

Просмотреть файл

@ -947,7 +947,3 @@ you can use these alternative items. Otherwise, their values should be empty. -
<!ENTITY emeLearnMoreContextMenu.label "Learn more about DRM…"> <!ENTITY emeLearnMoreContextMenu.label "Learn more about DRM…">
<!ENTITY emeLearnMoreContextMenu.accesskey "D"> <!ENTITY emeLearnMoreContextMenu.accesskey "D">
<!ENTITY emeNotificationsNotNow.label "Not now">
<!ENTITY emeNotificationsNotNow.accesskey "N">
<!ENTITY emeNotificationsDontAskAgain.label "Don't ask me again">
<!ENTITY emeNotificationsDontAskAgain.accesskey "D">

Просмотреть файл

@ -692,9 +692,6 @@ emeNotifications.drmContentCDMNotSupported.64bit.message = The audio or video on
# LOCALIZATION NOTE(emeNotifications.drmContentCDMNotSupported.unsupportedOS.message): NB: inserted via innerHTML, so please don't use <, > or & in this string. %1$S is brandShortName, %2$S is the name of the user's OS (Windows, Linux, Mac OS X), %3$S will be the 'learn more' link # LOCALIZATION NOTE(emeNotifications.drmContentCDMNotSupported.unsupportedOS.message): NB: inserted via innerHTML, so please don't use <, > or & in this string. %1$S is brandShortName, %2$S is the name of the user's OS (Windows, Linux, Mac OS X), %3$S will be the 'learn more' link
emeNotifications.drmContentCDMNotSupported.unsupportedOS.message = The audio or video on this page requires DRM software that %1$S does not support on %2$S. %3$S emeNotifications.drmContentCDMNotSupported.unsupportedOS.message = The audio or video on this page requires DRM software that %1$S does not support on %2$S. %3$S
emeNotifications.optionsButton.label = Options
emeNotifications.optionsButton.accesskey = O
emeNotifications.unknownDRMSoftware = Unknown emeNotifications.unknownDRMSoftware = Unknown
# LOCALIZATION NOTE - %S is brandShortName # LOCALIZATION NOTE - %S is brandShortName