зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1065185 - Fix permissions tests. r=bz
This commit is contained in:
Родитель
2938fafe53
Коммит
f0fd552d50
|
@ -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]));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче