Pam, if you want to debug the flow to find out if there are deficiencies
anywhere you can try to set breakpoints at these locations:

PageActionFunction::SetPageActionEnabled
... to see when you get called from the extension (to show/hide the icon).

ReportBack in location_bar_view.cc
... to see when the extension has finished loading the image from disk and
generated an SkBitmap to show in the Omnibox.

LocationBarView::RefreshPageActionViews
... to see when the page_action_image_views_ start becoming visible.


That last function will get hit multiple times, probably, so you might want
to enable that after ReportBack has hit.

-Finnur


On Thu, Sep 3, 2009 at 10:20, Pam Greene <[email protected]> wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to