From 2a3081f03f5115af6b4d99a31354ca96e76bca12 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 25 Nov 2008 21:47:50 +0000 Subject: [PATCH] Load plugins/sourced JS files into the plugins namespace. --- content/io.js | 2 +- content/liberator.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/content/io.js b/content/io.js index 5197a7c3..6f629090 100644 --- a/content/io.js +++ b/content/io.js @@ -793,7 +793,7 @@ lookup: .getService(Components.interfaces.mozIJSSubScriptLoader); try { - loader.loadSubScript(uri.spec, modules); + loader.loadSubScript(uri.spec, plugins); } catch (e) { diff --git a/content/liberator.js b/content/liberator.js index aec7758b..a44f7041 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -27,6 +27,7 @@ the terms of any one of the MPL, the GPL or the LGPL. }}} ***** END LICENSE BLOCK *****/ const plugins = {}; +plugins.__proto__ = modules; const liberator = (function () //{{{ {