diff --git a/browser/locales/en-US/chrome/browser/browser.properties b/browser/locales/en-US/chrome/browser/browser.properties index 94995ec84a3f..72b1e13875ea 100644 --- a/browser/locales/en-US/chrome/browser/browser.properties +++ b/browser/locales/en-US/chrome/browser/browser.properties @@ -974,6 +974,7 @@ autoplay.Allow2.accesskey = A autoplay.DontAllow.label = Don’t Allow autoplay.DontAllow.accesskey = n autoplay.remember = Remember this decision +autoplay.remember-private = Remember for this session # LOCALIZATION NOTE (autoplay.message): %S is the name of the site URL (https://...) trying to autoplay media autoplay.message = Will you allow %S to autoplay media with sound? autoplay.messageWithFile = Will you allow this file to autoplay media with sound? diff --git a/browser/modules/PermissionUI.jsm b/browser/modules/PermissionUI.jsm index 047feb8a8e2c..fb2410fd2ff9 100644 --- a/browser/modules/PermissionUI.jsm +++ b/browser/modules/PermissionUI.jsm @@ -800,13 +800,12 @@ AutoplayPermissionPrompt.prototype = { get popupOptions() { let learnMoreURL = Services.urlFormatter.formatURLPref("app.support.baseURL") + "block-autoplay"; - let checkbox = { - show: !PrivateBrowsingUtils.isWindowPrivate(this.browser.ownerGlobal) && - !this.principal.URI.schemeIs("file") - }; + let checkbox = {show: !this.principal.URI.schemeIs("file")}; if (checkbox.show) { checkbox.checked = true; - checkbox.label = gBrowserBundle.GetStringFromName("autoplay.remember"); + checkbox.label = PrivateBrowsingUtils.isWindowPrivate(this.browser.ownerGlobal) ? + gBrowserBundle.GetStringFromName("autoplay.remember-private") : + gBrowserBundle.GetStringFromName("autoplay.remember"); } return { checkbox,