Bug 1065185 - Fix permissions tests. r=bz
☠☠ backed out by 5c14c63b4c1a ☠ ☠
authorBobby Holley <bobbyholley@gmail.com>
Wed, 01 Oct 2014 15:24:59 +0200
changeset 208197 cc213ad991a8e16efc44689af8d060acda9d0f10
parent 208196 4baa041973f8860d94d8f04e16b7c839403ea362
child 208198 6871aff5d103c075f67da97d1a9f1ea3354e223f
push id27580
push userkwierso@gmail.com
push dateWed, 01 Oct 2014 23:26:55 +0000
treeherderautoland@af6c928893c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1065185
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1065185 - Fix permissions tests. r=bz
dom/permission/tests/file_framework.js
--- a/dom/permission/tests/file_framework.js
+++ b/dom/permission/tests/file_framework.js
@@ -163,21 +163,19 @@ function addPermissions(aPerms, aDoc, aC
   });
   SpecialPowers.pushPermissions(permList, aCallback);
 }
 
 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]));
     }
   });
 
   return perms;
 }
 
 function msgHandler(evt) {
   var data = evt.data;