mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1320557 - Prevent broken UI from invalid permission states. r=Gijs
MozReview-Commit-ID: FxmCHoLx0lE --HG-- extra : rebase_source : 562af940feb727d7d68e034790a9d9358768847e
This commit is contained in:
parent
4e225590bc
commit
f41adcc377
@ -173,7 +173,9 @@ function onRadioClick(aPartId) {
|
||||
|
||||
function setRadioState(aPartId, aValue) {
|
||||
var radio = document.getElementById(aPartId + "#" + aValue);
|
||||
if (radio) {
|
||||
radio.radioGroup.selectedItem = radio;
|
||||
}
|
||||
}
|
||||
|
||||
function initIndexedDBRow() {
|
||||
|
@ -186,7 +186,7 @@ this.SitePermissions = {
|
||||
case this.BLOCK:
|
||||
return gStringBundle.GetStringFromName("block");
|
||||
default:
|
||||
throw new Error("unknown permission state");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user