I need to clear some variables that a content script is using. When
3) wait for the "complete" status and do something. if instead another
>
> On Fri, Jun 3, 2011 at 11:36 AM, Paolo Casaschi <
news...@casaschi.net>wrote:
>
>
>
>
>
>
>
> > hello,
>
> > in my extension I use the tab.onUpdated event to detect when a
> > different page is loaded on each tab (using
> > chrome.tabs.onUpdated.addListener).
>
> > I need to do that in order to clear some info I collect about the page
> > and start fresh for the new page that will be loading soon.
>
> > i just noticed that the even is fired also when the user clicks on a
> > "#somewhere" link on the page, that changes the URL, positioning the
> > browser view on a different part of the page but NOT actually
> > reloading the page. As a result, my event listener function is called
> > even if it should not; this is bad not only because some operation is
> > repeated, but also because in some cases some of my extension info
> > might be lost.
>
> > Remembering the URL and detecting when only the hash is changing might
> > not be enough, what if a user is forcing a reload of the page with a
> > different URL (something like typing the new hash manually and force
> > loading the page) or for the same URL for that matter.
>
> > What I'd need is a way to detect WHEN A PAGE IS ACTUALLY LOADED from
> > the network for that tab.
>
> > Any suggestion how to do that?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Chromium-extensions" group.