[Pkg-mozext-commits] [adblock-plus] 269/464: Sandboxes don't have atob/btoa functions, make sure to "steal" them from the Services module
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit a17403c58cd694165eac0c722f3cb49246168573
Author: Wladimir Palant <trev at adblockplus.org>
Date: Tue Jul 17 16:55:22 2012 +0200
Sandboxes don't have atob/btoa functions, make sure to "steal" them from the Services module
---
bootstrap.js.tmpl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bootstrap.js.tmpl b/bootstrap.js.tmpl
index 546e8dc..839fbdb 100644
--- a/bootstrap.js.tmpl
+++ b/bootstrap.js.tmpl
@@ -9,7 +9,7 @@ const Ci = Components.interfaces;
const Cr = Components.results;
const Cu = Components.utils;
-Cu.import("resource://gre/modules/Services.jsm");
+let {Services, atob, btoa} = Cu.import("resource://gre/modules/Services.jsm", null);
let addonData = null;
@@ -147,6 +147,8 @@ function require(module)
Ci: Ci,
Cr: Cr,
Cu: Cu,
+ atob: atob,
+ btoa: btoa,
require: require,
{% if hasShutdownHandlers %}
onShutdown: onShutdown,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list