My favorites | Sign in
Project Home
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 32: registerViewChangeCallback doesn't work most of the time
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Nov 9, 2008
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
#1 ebiven
The problem is that no matter what you pass in to the
gmail.registerViewChangeCallback function it throws an error "a is undefined".  "a"
is the input parameter to the "Uhd" function.  I have passed in functions defined in
the script itself, used delegate functions, and attempted to pass javascript base
functions to no avail.

The registerViewChangeCallback function will on occasion, for no visible reason, work
fine.  It will eventually cease working with no changes to the script, but any
changes to the script will certainly break it.

This happens on Windows Vista using FF 3.0.4 and Greasemonkey 0.8.20080609.0.  An
identical script will run fine on Ubuntu 8.04 using the same versions of FF and

I performed these tests using this script, among others, including your sample script
which exhibited the same behaviors.
Nov 24, 2008
#2 ebiven
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
#3 ebiven
Here's a writeup on my workaround from post #2 above.
Sign in to add a comment

Powered by Google Project Hosting