Page MenuHomePhabricator

common.js in user space seems to run in MobileFrontend, even though MediaWIki:Common.js doesn't run
Closed, DuplicatePublic

Description

The page ResourceLoader/Writing a MobileFrontend friendly ResourceLoader module says: "We don't load common scripts".

It appears that MediaWiki:Common.js doesn't run in MobileFrontend, but the user's own common.js does run. I noticed it when Echo started breaking on my mobile phone when I was logged-in, and the reason was that my User:Amire80/common.js used functions that aren't available in MobileFrontend.

I'm not sure why is the personal script loaded even though the site-wide common.js is not. This seems inconsistent. It may make sense to have personal (and site-wide) scripts run in mobile mode, but this should be happen in a more consistent, expected, and documented way.

@Jdlrobson suggested reporting a bug about this.

See also: T155304 T147755

Event Timeline

Amire80 created this task.Feb 13 2017, 8:47 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 13 2017, 8:47 AM
Jdlrobson assigned this task to Krinkle.Feb 13 2017, 7:31 PM
Jdlrobson triaged this task as High priority.
Jdlrobson edited projects, added MediaWiki-ResourceLoader; removed MobileFrontend.
Jdlrobson updated the task description. (Show Details)

Timo: More issues here relating to user scripts :(