I’m getting an error “Tabs cannot be edited right now (user may be dragging a tab)” on tab update/activate/focus event in chrome 91

The only solution that I have found so far is to put my handlers in a timeout like this:

chrome.tabs.onActivated.addListener((activeInfo) => {
        setTimeout(() => {
           // The old listener handler moves here
        }, 100);
    });

But there must be a better way, right?

Leave a Comment