#sknebelhm, am I missing something or can you not directly get the information which tab was active when the extension button was clicked in the popup? I guess you could message your background script which then could check focus and assume that happens fast enough, but ugh...