From a00e64c4fc6322e09e6d8979f895028979508cdb Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Fri, 12 Nov 2010 10:42:06 +0900 Subject: [PATCH] on Minefield, tabs opened from links didn't become children of the current tab. this is caused by XRayWrapper... --- modules/utils.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/utils.js b/modules/utils.js index 8903b00c..ae74b07c 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -852,14 +852,11 @@ var TreeStyleTabUtils = { getTabFromFrame : function TSTUtils_getTabFromFrame(aFrame, aTabBrowser) { var b = aTabBrowser || this.browser; - var docShell = aFrame.top - .QueryInterface(Ci.nsIInterfaceRequestor) - .getInterface(Ci.nsIWebNavigation) - .QueryInterface(Ci.nsIDocShell); + var top = aFrame.top; var tabs = this.getAllTabsArray(b); for each (var tab in tabs) { - if (tab.linkedBrowser.docShell == docShell) + if (tab.linkedBrowser.contentWindow == top) return tab; } return null;