Not possible right now, but this is something we've discussed adding. For now, the only way to accomplish this is to have the popup determine whether to show something or whether to redirect to the page you want. And yes, the popup will briefly appear even as it redirects, causing a slight flicker... :/
On Fri, Dec 11, 2009 at 20:04, Adam Malcontenti-Wilson <[email protected]>wrote: > Hi, > Is it possible (currently) or will functionality be created to > dynamically set the page that shows in the popup for a browser action? > > For example, a function such as > chrome.browserAction.setPopup > ({"path": "popup2.html"}); > > In my extension I want to open the options page directly when clicked, > otherwise show the popup. However, for chrome.browserAction.onClicked > to trigger, there needs to be no popup specified. Therefore, to > actually use a popup there would need to be a dynamic action to set > the url. > > Is this possible? > > Thanks, > Adam > > -- > > 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]<chromium-extensions%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > > > -- 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.
