Minefield 3.7a5preで一部のコンテキストメニューの項目が機能しない問題を修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6606 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-04-22 08:24:36 +00:00
parent 3e349f09bb
commit c96c4047de

View File

@ -851,7 +851,7 @@ var TreeStyleTabUtils = {
aTabBrowserChild,
Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue;
if (popup && 'TabContextMenu' in window)
if (popup && 'TabContextMenu' in aTabBrowserChild.ownerDocument.defaultView)
return this.getTabBrowserFromChild(TabContextMenu.contextTab);
var b = this.evaluateXPath(