I'm running with the src version of Dojo 1.4.2, in Firefox/Firebug.
Everytime I load my app I get a "Break On Error" because the Components.classes reference below hits a permission error.
There are three sub-questions here:
1). Can I stop this error happening? (Yes I could hack dojo to stop the call, but I see that as annoying hackery.) So far as I can tell the authors do expect this error in some/many environments.
2). Can I supress Break On Error in firebug to not break on this particualr condition/line of code. Generally Break on Error is really useful, don't want it disabled globally.
3). Why are we even hitting the lines in question. Why am seen as being in a "ChromeWindow", when running in Firefox?
Code in question, from dojo.js:
if("ChromeWindow" in this &&
window instanceof ChromeWindow ){
try{
Components.classes["@mozilla.org/moz/jssubscript-loader;1"];
isFFExt = true;
hostEnv = "ff_ext";
}catch(e){ /* squelch Permission Denied error, which just means this is not an extension */ }
}