mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 894349 - Sort permissions in the site identity panel and the page info window alphabetically. r=jaws
This commit is contained in:
parent
7b9085b453
commit
f2fc4df65e
@ -27,7 +27,11 @@ this.SitePermissions = {
|
||||
/* Returns an array of all permission IDs.
|
||||
*/
|
||||
listPermissions: function () {
|
||||
return Object.keys(gPermissionObject);
|
||||
let array = Object.keys(gPermissionObject);
|
||||
array.sort((a, b) => {
|
||||
return this.getPermissionLabel(a).localeCompare(this.getPermissionLabel(b));
|
||||
});
|
||||
return array;
|
||||
},
|
||||
|
||||
/* Returns an array of permission states to be exposed to the user for a
|
||||
|
Loading…
x
Reference in New Issue
Block a user