The only message WME Validator gives in the browser console is "WME Validator v1.1.16: waiting for login...".
Only when I log out and log in, WME Validator loads fine for that session as the login gets triggered. So at least we know it isn't related to that. As this looks like a racing condition somewhere, I tried fixing it by putting the script to run before or after all other scripts, but neither action changed anything.
I personally use the following bit of code to check whether I still need to wait on a user login and that seems to work fine:
- Code: Select all
// preceded by a check on whether the element with id user-info exists
if (!Waze.loginManager.hasUser()) {
Waze.loginManager.events.register("login", null, exportFunction(init, unsafeWindow));
Waze.loginManager.events.register("loginStatus", null, exportFunction(init, unsafeWindow));
return;
}
To be absolutely safe that the event doesn't happen to be triggered between the check and registering the listener, you could also check hasUser again before actually returning, but in the time I've been using this bit of code I haven't had any issues yet.
EDIT: I've noticed that enabling the WME Toolbox makes Validator work again. Toolbox probably slows down Firefox enough for Validator to pick up that someone is already logged in. That's not really a solution though.