Last modified: 2007-06-28 16:46:57 UTC
Found while reviewing patch for bug 10387, triggered via bug 10396. The AJAX watch/unwatch code is supposed to fallback to the traditional watch/unwatch link if the AJAX request doesn't work. Unfortunately that fallback isn't actually working. This is usually hidden as failures are unlikely if the AJAX setup code determines that AJAX won't work, but a problem that prevents the request from working on the server end will leave it in failure mode. The button changes to "watching..." but never changes back. Error condition should be better detected, and the fallback mode used.
Fixed in r23506. It was only doing the fallback if the AJAX server code returned an <err#> response, which doesn't happen if things are fundamentally broken. :) Now runs fallback for any unrecognized response.
Comment: the script could also do fallback if there is no response at all (using already existing setTimeout function).