use getTabForContentWindow from the add-on sdk