Bug 1000305 - part 3: Add atob() and btoa() to server-side java Sandbox. r=waldo
☠☠ backed out by af0a3c1a42e2 ☠ ☠
authorTed Clancy <tclancy@mozilla.com>
Sat, 20 Dec 2014 17:35:40 -0500
changeset 221062 8450d74f782e7cc021fe4c93bbe77f7d8c440434
parent 221061 ebe9fac9d095cd599a4dc5f166adeaabc118468c
child 221063 232c0f30075c15bf44c2d044e35e21b55ef81ec1
push id28009
push userryanvm@gmail.com
push dateTue, 23 Dec 2014 18:17:16 +0000
treeherdermozilla-central@44344099d119 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswaldo
bugs1000305
milestone37.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 1000305 - part 3: Add atob() and btoa() to server-side java Sandbox. r=waldo
netwerk/test/httpserver/httpd.js
--- a/netwerk/test/httpserver/httpd.js
+++ b/netwerk/test/httpserver/httpd.js
@@ -2736,16 +2736,18 @@ ServerHandler.prototype =
       var fis = new FileInputStream(file, PR_RDONLY, PERMS_READONLY,
                                     Ci.nsIFileInputStream.CLOSE_ON_EOF);
 
       try
       {
         var sis = new ScriptableInputStream(fis);
         var s = Cu.Sandbox(gGlobalObject);
         s.importFunction(dump, "dump");
+        s.importFunction(atob, "atob");
+        s.importFunction(btoa, "btoa");
 
         // Define a basic key-value state-preservation API across requests, with
         // keys initially corresponding to the empty string.
         var self = this;
         var path = metadata.path;
         s.importFunction(function getState(k)
         {
           return self._getState(path, k);