diff --git a/mail/components/preferences/connection.js b/mail/components/preferences/connection.js index 8100dc216a..be9b5f9fdf 100644 --- a/mail/components/preferences/connection.js +++ b/mail/components/preferences/connection.js @@ -113,13 +113,8 @@ window.addEventListener( ); document - .getElementById("disableProxyExtension") - .addEventListener( - "command", - makeDisableControllingExtension(PREF_SETTING_TYPE, PROXY_KEY).bind( - gConnectionsDialog - ) - ); + .getElementById("proxyExtensionDisable") + .addEventListener("click", disableControllingProxyExtension); gConnectionsDialog.updateProxySettingsUI(); initializeProxyUI(gConnectionsDialog); }, @@ -433,11 +428,9 @@ var gConnectionsDialog = { if (isLocked) { // An extension can't control this setting if any pref is locked. - hideControllingExtension(PROXY_KEY); + hideControllingProxyExtension(); } else { - handleControllingExtension(PREF_SETTING_TYPE, PROXY_KEY).then( - setInputsDisabledState - ); + handleControllingProxyExtension().then(setInputsDisabledState); } }, diff --git a/mail/components/preferences/connection.xhtml b/mail/components/preferences/connection.xhtml index f69815ceda..3338f123c8 100644 --- a/mail/components/preferences/connection.xhtml +++ b/mail/components/preferences/connection.xhtml @@ -31,13 +31,19 @@