It seems that how add-ons access preferences has changed in the
nightlies so the command line in the FB console throws the error;

navigator.preference is not a function
chrome://firebug/content/commandLine.js
Line 302

Here's the patch I used;

--- content/firebug/commandLine.js.old  2010-06-09 15:26:14.846855056
-0400
+++ content/firebug/commandLine.js      2010-06-10 16:06:17.898856134
-0400
@@ -299,7 +299,10 @@
         var expr = command ? command : commandLine.value;
         if (expr == "")
             return;
-        var MozJSEnabled =
navigator.preference("javascript.enabled");
+
+        var prefs = Components.classes["@mozilla.org/preferences-
service;1"]
+                            
.getService(Components.interfaces.nsIPrefService).getBranch("javascript.");
+        var MozJSEnabled = prefs.getBoolPref("enabled");

         if(MozJSEnabled)
         {


It works for me but I don't guarantee it will work for anyone else or
that it is "the right way to do it". I didn't see any other answers to
this listed any where so I thought I'd put it out there as it seems to
work for me - at least my console works again :)

Regards,
Colin.

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to