mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
Bug 1004671 - SpecialPowers observer isn't robust enough in OOP. r=ted
This commit is contained in:
parent
ba7a3fe6ef
commit
497651b04c
@ -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"});
|
||||
|
Loading…
x
Reference in New Issue
Block a user