commit 47139fd39d9dd9d10b10b565900623709a851ec0 Author: David Fifield david@bamsoftware.com Date: Fri Dec 26 00:33:36 2014 -0800
Load Console.jsm in the Firefox helper.
This makes console.log work. You still have to disable the headlessness in order to get the Browser Console to appear. --- firefox/components/main.js | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/firefox/components/main.js b/firefox/components/main.js index f4af054..6e3b0e0 100644 --- a/firefox/components/main.js +++ b/firefox/components/main.js @@ -38,6 +38,9 @@ // https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/XPC... Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
+// https://developer.mozilla.org/en-US/docs/Tools/Browser_Console#Console.jsm +Components.utils.import("resource://gre/modules/devtools/Console.jsm"); + // Everything resides within the MeekHTTPHelper namespace. MeekHTTPHelper is // also the type from which NSGetFactory is constructed, and it is the top-level // nsIServerSocketListener.
tor-commits@lists.torproject.org