Thanks Aaron, that was exactly it!  Wrapped things a 
chrome.bookmarks.get("0") call and things are happy again.

This will work for now!
Colin

On 12/3/2009 13:01, Aaron Boodman wrote:
> Colin, I suspect that you are hitting a known issue
> (http://crbug.com/28136). The bookmark API used to have a bug where
> you had to use one of the API methods before any of the events would
> work.
>
> This has been fixed, but not merged to the release branch, which is
> why you're stilling seeing it in the live release.
>
> Can you please confirm by making sure to call one of the get* methods
> first, before listening for events?
>
> Sorry,
>
> - a
>
> On Thu, Dec 3, 2009 at 11:12 AM, Colin Bleckner<[email protected]>  wrote:
>    
>> Sorry, didn't see this email before filing a ticket
>> (http://code.google.com/p/chromium/issues/detail?id=29326).
>>
>> I just tried with the following basic event listeners and I'm not seeing
>> anything.  Am I doing something wrong?  I'm doing this in my background
>> page, if that has any bearing on things.
>>
>> chrome.bookmarks.onCreated.addListener(function(id, bookmark) {
>> console.log('bookmark created'); });
>> chrome.bookmarks.onMoved.addListener(function(id, moveInfo) {
>> console.log('bookmark moved'); });
>> chrome.bookmarks.onChanged.addListener(function(id, changeInfo) {
>> console.log('bookmark changed'); });
>> chrome.bookmarks.onChildrenReordered.addListener(function(id, reorderInfo) {
>> console.log('bookmark reordered'); });
>> chrome.bookmarks.onRemoved.addListener(function(id, removeInfo) {
>> console.log('bookmark removed'); });
>>
>> On 12/3/2009 9:40, Erik Kay wrote:
>>
>> Hi Colin,
>> I just tested this out and it works for me.
>> Can you put together a reduced test case that I can look at?
>> Erik
>>
>> On Wed, Dec 2, 2009 at 3:49 PM, Colin Bleckner<[email protected]>  wrote:
>>      
>>> I've been trying to get any of the bookmark events to fire and haven't
>>> had any luck.  I'm adding a listener to my background page with:
>>>      chrome.bookmarks.onCreated.addListener(LocalBookmarkChangeHandler);
>>>
>>> And then just trying to print something to console when the event is
>>> triggered.  But no amount of bookmark creation will trigger anything.
>>> Anyone else got this to work?
>>>
>>> Colin
>>>
>>> --
>>>
>>> You received this message because you are subscribed to the Google Groups
>>> "Chromium-extensions" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> 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 [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to