Bug 1065185 - Fix permissions tests. r=bz

This commit is contained in:
Bobby Holley 2014-10-01 15:24:59 +02:00
parent 1b86dbcbb4
commit e820231362

View File

@ -168,11 +168,9 @@ function expandPermissions(aPerms) {
var perms = [];
aPerms.forEach(function(el) {
var access = permTable[el].access ? "readwrite" : null;
var expanded = SpecialPowers.unwrap(expand(el, access));
// COW arrays don't behave array-like enough, to allow
// using expanded.slice(0) here.
var expanded = expand(el, access);
for (let i = 0; i < expanded.length; i++) {
perms.push(expanded[i]);
perms.push(SpecialPowers.unwrap(expanded[i]));
}
});