diff --git a/suite/browser/pageinfo/permissions.js b/suite/browser/pageinfo/permissions.js index bf9953e949..f4a3f51605 100644 --- a/suite/browser/pageinfo/permissions.js +++ b/suite/browser/pageinfo/permissions.js @@ -193,8 +193,12 @@ function onCheckboxClick(aPartId) function onRadioClick(aPartId) { var radioGroup = document.getElementById(aPartId + "RadioGroup"); - var id = radioGroup.selectedItem ? radioGroup.selectedItem.id : "#1"; - var permission = parseInt(id.split("#")[1]); + let permission; + if (radioGroup.selectedItem) { + permission = parseInt(radioGroup.selectedItem.id.split("#")[1]); + } else { + permission = SitePermissions.getDefault(aPartId); + } SitePermissions.setForPrincipal(gPermPrincipal, aPartId, permission); }