'Chrome extension – popup from the same source?

I'm writing an extension that has a feature to open a URL in a new tab/window. I understand that it will require the user's permission to explicitly allow a "popup".

The content script of that extension is injected into every website, hence the user is required to give the popup permission on every domain they trigger this action on.

Is there a way to avoid it, so the user has to only allow the popup once?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source