Kyle Wilgus wrote: > var targetBrowserIndex = > gBrowser.getBrowserIndexForDocument(targetDoc); Ah, I was assuming you were a component service rather than listening in all windows for every request.