1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 06:47:58 +01:00

Add addonID to Sandbox metadata.

--HG--
extra : rebase_source : 8f2fa2185a0e14c02d56d46c529a1c0b1b3a399c
This commit is contained in:
Kris Maglione
2014-05-28 11:40:29 -07:00
parent b521e34bf0
commit bfd2d975f8

3
common/bootstrap.js vendored
View File

@@ -254,7 +254,8 @@ function init() {
bootstrap = bootstrap_jsm; bootstrap = bootstrap_jsm;
else { else {
bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(), bootstrap = Cu.Sandbox(Cc["@mozilla.org/systemprincipal;1"].createInstance(),
{ sandboxName: BOOTSTRAP }); { sandboxName: BOOTSTRAP,
metadata: { addonID: addon.id } });
Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap); Services.scriptloader.loadSubScript(BOOTSTRAP, bootstrap);
} }
bootstrap.require = JSMLoader.load("base").require; bootstrap.require = JSMLoader.load("base").require;