Hi,
My extension has an optional feature that interacts with the user's gmail tab. We don't want to mention
mail.google.com domains at all in the permission confirmation that the user sees when first installing the extension. So I moved that entry out of the manifest's permissions block and into the optional_permissions block. We also needed to use a content script tied to
mail.google.com, but defining this in the manifest causes the '
mail.google.com' permission warning that is sppoking some users.
However scripts injected that way are not content scripts and don't have access to the needed APIs (chrome.tabs, etc)
Is there some way to get the best of both worlds: use optional_permission, AND get the content scripts added to a matching URL, but only if the user has approved the optional permission?
thanks very much,
Chris