Hi Wesley, It's not possible to load the existing instance of the background page in a tab, so the solution is to create a new html page, as you suggested. Note that this will be able to communicate directly with the background page, and use the extension APIs, so hopefully it won't be too much of a hassle.
-Nick On Thu, Oct 29, 2009 at 7:30 PM, Wesley Johnson <[email protected]>wrote: > > I'm authoring an extension that requires centralized UI for various > aspects and features. My initial thought is to put it into the > background page. It's easy enough to call up a tab and set the URL to > the background html page of your extension. The issue in doing that is > that it appears to create a new instance of a background page and > loads that.... > > Can I view the actual background page the extension is linked to/ > communicating with? I know you can use chrome.extension.getViews() to > loop through views for your extension and find the background view, > but how to I send that "view" to a tab, so I can see it? If this is > not possible, which I could understand it might not be since it is, by > design, a BACKGROUND page - then what are my alternatives for > rendering additional UI? > > Should I just create a new html page and package it up with my > extension and then just load that into a new tab? It would require > more work getting my background page to communicate with yet ANOTHER > view, but it could work. > > Thoughts? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en -~----------~----~----~----~------~----~------~--~---
