From 21715d2c3c30cded8c3f91f850749df39bf730ab Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Mon, 14 Dec 2015 23:26:00 +0900 Subject: [PATCH] Don't touch missing "detail" information of TabAttrModified event on Firefox 38 #1010 --- modules/browser.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/browser.js b/modules/browser.js index 6e17cf7c..ebe9fdb4 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2906,6 +2906,9 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, { case 'TabAttrModified': { let tab = aEvent.originalTarget; + // on Fireofx 38 the event has no "detail" information. + if (!aEvent.detail) + return; aEvent.detail.changed.forEach(function(aAttrName) { switch (aAttrName) {