Bug 1004671 - SpecialPowers observer isn't robust enough in OOP. r=ted

This commit is contained in:
Joel Maher 2014-05-16 06:55:34 -04:00
parent ba7a3fe6ef
commit 497651b04c

View File

@ -71,7 +71,11 @@ SpecialPowersObserverAPI.prototype = {
_observe: function(aSubject, aTopic, aData) {
function addDumpIDToMessage(propertyName) {
var id = aSubject.getPropertyAsAString(propertyName);
try {
var id = aSubject.getPropertyAsAString(propertyName);
} catch(ex) {
var id = null;
}
if (id) {
message.dumpIDs.push({id: id, extension: "dmp"});
message.dumpIDs.push({id: id, extension: "extra"});