Chrome 6.0.472.55
This is an excerpt from my code:
-----------------------------------------------------------------------------------------------------------------------------
chrome.tabs.update(
tab.id,update,function(utab){
chrome.tabs.onUpdated.addListener(function (tabId,info,tab){
console.log(info.status)
if(info.status == "complete"){
insertScript(tab);
//chrome.tabs.onUpdated.removeListener(arguments.callee);
}
});
});
-----------------------------------------------------------------------------------------------------------------------------
The log:
complete
loading
complete
By entering the event, the variable "info.status" has the value
"complete", but really have not updated the page.
The line "chrome.tabs.onUpdated.removeListener(arguments.callee);"
just removing the event before running the script.
Excuse the language, I used an automatic translator!