On Tue, Jun 16, 2009 at 8:15 AM, disya2 <[email protected]> wrote: > > > It means that some property of the tab has changed. Currently, the only > > property changes that are reflected here are "status" and "url", so you > can > > use this to track when a tab has navigated to another URL. > > "Has navigated" - page loaded or just start being loaded? Using the > code above I found that callback is executed before page load > completed. I'd like to know that exactly because the extension I'm > porting listens to and acts upon load start/stop events.
It gets called at both times, when it starts loading and when navigation has finished. However, you shouldn't depend on the event being called, but rather the values that are changed when it is called. We'll likely be adding more properties to this event in the future, which would mean that it would be called more often and in more situations. > BTW, what is "status"? In 'struct Tab' defined in > http://dev.chromium.org/developers/design-documents/extensions/tabs-api > there is no such member. Sorry, our docs aren't keeping up with our changes. There are currently two status values: "loading" (when a navigation starts) and "complete" (when a navigation completes). The url only changes when it hits "complete". Erik --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
