mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 05:14:24 +00:00
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:
parent
a78c95dac8
commit
27308d9427
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user