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