From 5ee7e036378de50ceb40e98df76e0a88c24cca46 Mon Sep 17 00:00:00 2001 From: Johann Hofmann Date: Tue, 17 Sep 2019 09:26:01 +0000 Subject: [PATCH] Bug 1579489 - Check the persistent permission checkbox by default for WebExtension WebRTC prompts. r=jib This is done to offset the requirement that extensions have to get persistent permission before they can start using WebRTC in popups. Differential Revision: https://phabricator.services.mozilla.com/D45335 --HG-- extra : moz-landing-system : lando --- browser/modules/webrtcUI.jsm | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/modules/webrtcUI.jsm b/browser/modules/webrtcUI.jsm index 7b754b2e92f2..5e7757d284d9 100644 --- a/browser/modules/webrtcUI.jsm +++ b/browser/modules/webrtcUI.jsm @@ -1156,6 +1156,7 @@ function prompt(aBrowser, aRequest) { options.checkbox = { label: stringBundle.getString("getUserMedia.remember"), + checked: principal.isAddonOrExpandedAddonPrincipal, checkedState: reasonForNoPermanentAllow ? { disableMainAction: true,