Bug 1000305 - part 3: Add atob() and btoa() to server-side java Sandbox. r=waldo

This commit is contained in:
Ted Clancy 2014-12-20 17:35:40 -05:00
parent 9fba7969d0
commit db641154ee

View File

@ -2741,6 +2741,8 @@ ServerHandler.prototype =
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.