I've seen the same problem even with the callback in a background page, particularly after reload. I was going to file a bug on it but it slipped past. Please feel free to (and cc me), or I will.
- Pam On Thu, Sep 3, 2009 at 9:59 AM, Scott Ferguson<[email protected]> wrote: > > I seem to have fixed this myself by sticking the callback logic into a > background page. Why is this the case? It works totally as expected > now. > > On Sep 3, 9:23 am, Scott Ferguson <[email protected]> wrote: >> I have this block of code sitting in my toolstrip's Javascript: >> >> chrome.self.onConnect.addListener(function(port) { >> port.onMessage.addListener(function(data) { >> url = port.tab.url; >> title = data.title; >> >> // Register the tab with the tagging page action >> chrome.pageActions.enableForTab("tag_page", >> { >> tabId: port.tab.id, >> url: port.tab.url, >> title: "Click to tag this >> page", >> iconId: 0 >> }); >> }); >> >> }); >> >> And for whatever reason, I can't consistently get the page actions to >> show up. It feels like when I reload the extension there's at least a >> long delay between the reload and the icons actually showing up, and >> if I don't have the RSS extension installed I can't get them to >> display at all. Am I missing something here or is it just Chromium >> beta weirdness? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
