Page MenuHomePhabricator

[wmf.5] Wrong message "This tool does not work without JavaScript..." displayed for mobile site for Special:ContentTranslation
Closed, ResolvedPublic

Description

When navigating to Special:ContentTranslation page on mobile site (e.g. ca.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&to=ca), the page is displayed with a wrong message "This tool does not work without JavaScript. JavaScript is disabled, failed to work, or this browser is unsupported."

TypeError: Cannot set property 'activator' of null TypeError: Cannot set property 'activator' of null 
at createMainMenu

IMG_3565.PNG (640×1,136 px, 70 KB)

The content on the page is not displayed and the message is incorrect - the javascript was, in fact, enabled. To make Special:ContentTranslation work on mobile, I needed to switch to the desktop view on some other page. Deleting m from the url did not work - it aggressively re-directs to the mobile view.

Event Timeline

createMainMenu might come from a gadget, as I could not find it with a grep.

Nikerabbit triaged this task as Medium priority.Nov 6 2017, 8:06 AM

It turns out the warning is pretty much unrelated to the actual issue that some modules were not marked to be compatible with mobile view. I will fix that first.

Change 389423 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Ensure all dashboard modules have mobile target

https://gerrit.wikimedia.org/r/389423

Change 389423 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Ensure all dashboard modules have mobile target

https://gerrit.wikimedia.org/r/389423

Change 389511 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/ContentTranslation@master] Avoid JS warning in minerva skin

https://gerrit.wikimedia.org/r/389511

Some additional observations:

  • ULS trigger does not work in mobile view. This requires changes in ULS. A new task?
  • In minerva the personal tools are formatted in ugly way. But @Petar.petkovic is working on re-doing them, so I guess that's fine.

Change 389511 merged by jenkins-bot:
[mediawiki/extensions/ContentTranslation@master] Avoid JS warning in minerva skin

https://gerrit.wikimedia.org/r/389511

Checked in ca.m,wiki (wmf.7) - the issue is fixed. There is an accidental bug T180082: "The action you have requested is limited to users in one of the groups: $1." user warning - pasting the url ca.m.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&to=ca will display

Screen Shot 2017-11-08 at 3.48.51 PM.png (1,211×473 px, 52 KB)

I added two projects that bug: ContentTranslation (Backlog)
MobileFrontend (Backlog) - not sure to which the issue actually belongs.