You can debug the problem by viewing the inspector
http://code.google.com/chrome/extensions/tut_debugging.html

<http://code.google.com/chrome/extensions/tut_debugging.html>By looking at
your onUpdateAddListener
http://code.google.com/chrome/extensions/tabs.html#event-onUpdated, it seems
you forgot a couple of parameters:

chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) {

   // Do what you want

});


Remember that you must have "tab" permissions in the manifest, and the
"tabId" value of setTitle's object limits the change to when that tab is
selected.

-Mohamed Mansour


On Sun, Jan 3, 2010 at 10:32 AM, Darth Caniac <darthcan...@gmail.com> wrote:

> chrome.tabs.onUpdated.addListener(function(tabId)
>  {
>  if url == "http://www.google.com/";
>  {
>  chrome.browserAction.setTitle({title: "On Google.com", tabId:
> tab.id});
>  }
>  });
>
> doesn't work :(
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To post to this group, send email to chromium-extensi...@googlegroups.com.
> To unsubscribe from this group, send email to
> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/chromium-extensions?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to