bug 396307 - Preference bindings don't report exceptions in user-defined event handlers to the Error Console fix by switching from dump()ing the exception in the catch clause to using Components.utils.reportError() r=gavin, a=mconnor

This commit is contained in:
asqueella@gmail.com 2007-09-22 12:51:10 -07:00
parent a78c95dac8
commit 27308d9427

View File

@ -52,7 +52,7 @@
aPreference.dispatchEvent(event);
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
]]>
</body>
@ -373,7 +373,7 @@
rv = f(event);
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
}
var val = rv !== undefined ? rv : (this.instantApply ? this.valueFromPreferences : this.value);
@ -424,7 +424,7 @@
return rv;
}
catch (e) {
dump(e);
Components.utils.reportError(e);
}
}