Thanks for replay,
As always I have a few more questions :)
> A callback is used when you want to create/update/remove a tab and you
> want to know when it is done.
This is what I want exactly. So if I use
chrome.tabs.update(tab.id, {url: new_url, selected: true}, function ()
{
// can I be sure that here I get tab loaded new url
// or at this point there is no way to know that url was loaded?
// if tab wasn't selected will the callback be called twice -
first on selection change
// and then on page loaded?
// if new url matches old url will it have the same effect as
location.reload()?
});
another point:
void remove(int id) <- it seems that there is no callback for
tabs.remove
one more question:
event onRemoved(int tabId) // *WILL* be followed by tab-selection-
changed.
If I call tabs.remove() for unselected tab will I have tab selection
changed?
Denis
--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---