|Issue 32:||registerViewChangeCallback doesn't work most of the time|
|2 people starred this issue and may be notified of changes.||Back to list|
What steps will reproduce the problem? 1. registerViewChangeCallback to one function call addLink() which adds a button to the conversation panel 2. Load GMail 3. Go to conversation panel and looking for the button What is the expected output? What do you see instead? Expected: The button shows up after "More actions" drop-down. What I see: The button doesn't show up. It needs many reloads until it appears. What version of the product are you using? On what operating system? gmail-greasemonky (1.0). Mac OS X 10.5.5, Firefox 3.3 Please provide any additional information below. I think the registerViewChangeCallback function is not called every time the view has been changed by a user. That's why sometimes it works, sometimes it doesn't.
Nov 21, 2008
Nov 24, 2008
The API seems to behave much better if you just throw a 500ms setTimeout between the time you attach to the API and the first call you make to it.
Nov 27, 2008
Here's a writeup on my workaround from post #2 above. http://eric.biven.us/2008/11/25/using-the-gmail-greasemonkey-api-and-succeeding-my-workaround/
|► Sign in to add a comment|