Page MenuHomePhabricator

Watch button does not work on mobile
Closed, ResolvedPublic

Description

Clicking on the "watch" button (the star icon) on an article on the Wikipedia mobile site while logged in results in an error message with the text "mobile-frontend-watchlist-error". Clicking on the button does not result in the page being watched. This effects all articles. The watch button on the desktop site is still working.

(I've only tested this on a non-mobile browser (Chrome). I don't know whether this actually affects mobile users.)

Event Timeline

Yair_rand raised the priority of this task from to Needs Triage.
Yair_rand updated the task description. (Show Details)
Yair_rand added a project: MobileFrontend.
Yair_rand subscribed.

Which article were you trying to watch and on which project? Can you post the link?
I cannot replicate this right now.

I tried on a dozen or so different articles, using "Random article". Same error on all of them. This was on the English Wikipedia.

Are you sure there is no gadget interfering? Anyone else able to replicate? I can't. No errors in the web console whatsoever.. :-S

To the best of my knowledge, gadgets don't even load when on mobile, but I tried turning them off anyway. No change.

When I set debug=true in the URL, the console gets two "mw.Api error: badtoken" errors upon clicking on the watch button.

@Anomie any API changes that might be leading to bad token errors?

@Anomie any API changes that might be leading to bad token errors?

Shouldn't be. I can't reproduce this bug using Firefox or Chromium, clicking the watch star works fine for me on en.m.wikipedia.org.

Thanks for confirming @Anomie

@Yair_rand I'm stumped. Does logging out and back in again help? I'm wondering if somehow tokens are impacted by session length...

I'm wondering if somehow tokens are impacted by session length...

If the session expires, all tokens expire too. Other than that, most tokens should stay valid as long as the session does. If someone can find a way to reproduce that not being true, let me know and I'll see about fixing it.

Logged out and back in, and the watch button now works. Strange.

dr0ptp4kt set Security to None.