Hello. My extension receives requests and when I receive one of them, I want the extension itself to open (that is, as if the user himself clicked on the extension icon). How can this be realized?

    1 answer 1

    This is impossible by legal means, for it was said by the Knowledgeable :

    This is a must for triggered by user action. Our suggestion is to use the html notifications feature ...

    What is said above (approximately ...):

    We, The Chromium dev, believe that the call for extension windows can only be triggered by user actions.
    If you strongly need to call the program - use the Notification API .


    But there is a half-measure — use the tabs permission in the manifest and code:

     chrome.tabs.create({url:"popup.html"}); 

    A new tab will open with your extension window.