I want to create an extension that does the following:
- have a pageaction or browseraction (not sure which one is more appropriate).
- if the url of the page is found in my database/service then allow the Action to have/show a popup where some information from my service is displayed.
- Otherwise make the Action button look disabled and show no popups
I have been trying a background script with a popup. Have not been able to show contents in the popup set to the results from my service. For the communication between the background and the popup I used the advice here: How to communicate between popup.js and background.js in chrome extension? but did not manage to get it worked. and debugging the popup has been almost impossible.
I tried creating an iFrame using content_script in the main page. That did not go well at all. Lots of cross frame exceptions.