From 66f16dde502f2d4c32b3ac4f346e0c88715e32af Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 19 Nov 2014 12:25:56 +0900 Subject: [PATCH] Accept null input by getTabFromFrame(). This suppresses a crash error reported on https://bugzilla.mozilla.org/show_bug.cgi?id=1098688 --- modules/base.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/base.js b/modules/base.js index a38cceae..8849492b 100644 --- a/modules/base.js +++ b/modules/base.js @@ -1112,6 +1112,8 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, { // this is used only for obsolete API call on non-E10S windows getTabFromFrame : function TSTBase_getTabFromFrame(aFrame, aTabBrowser) { + if (!aFrame) + return null; var b = aTabBrowser || this.browser; var top = aFrame.top; var tabs = this.getAllTabs(b);