6

When I open Firefox (8 Beta and 7) and load a page with firebug open, I get a load of JavaScript strict warnings, so I disable JavaScript strict warnings so my page loads will speed up, which works until I restart Firefox. Every time I open Firefox, JavaScript strict warnings are enabled. I even tried turning them off through the about:config settings.

How do I keep it off so I don't have to disable strict warnings every time I open Firefox?

Francis
  • 161
  • 1
  • 3

2 Answers2

2

In about:config, set this option to false:

extensions.firebug.showJSWarnings
slhck
  • 235,242
Ashwin
  • 186
2

Go to about:config, and set javascript.options.strict to false.

If you run Firefox using the cfx tool (of the Addon SDK), then this will not help because the Addon SDK forces this preference to be true on start-up. To fix this, locate the directory containing the Addon SDK, open python-lib/cuddlefish/prefs.py and change

    'javascript.options.strict': True,

to

    'javascript.options.strict': False,

If you are bothered by deprecation warnings to the extent that they are not helpful (e.g. because you are a web developer that uses third-party libraries that are not going to be patched), then disable the warnings by setting devtools.errorconsole.deprecation_warnings to false at about:config.

Rob W
  • 2,283
  • 2
  • 24
  • 23