diff --git a/browser/base/content/tabview/modules/utils.jsm b/browser/base/content/tabview/modules/utils.jsm index 899ec7204d93..3eb566f43f9c 100644 --- a/browser/base/content/tabview/modules/utils.jsm +++ b/browser/base/content/tabview/modules/utils.jsm @@ -226,7 +226,7 @@ var Utils = { // ___ Files getInstallDirectory: function(id) { - var file = extensionManager.getInstallLocation(id).getItemFile(id, "install.rdf"); + var file = extensionManager.getInstallLocation(id).getItemFile(id, "install.rdf"); return file.parent; }, @@ -327,7 +327,13 @@ var Utils = { expandObject: function(obj) { var s = obj + ' = {'; for(prop in obj) { - var value = obj[prop]; + var value; + try { + value = obj[prop]; + } catch(e) { + value = '[!!error retrieving property]'; + } + s += prop + ': '; if(typeof(value) == 'string') s += '\'' + value + '\'';