Bug 897194: Use outer window ID to match toolbox to tab rather than assuming the currently-selected tab. r=bgrins