Page MenuHomePhabricator

API parse, headhtml properties, key CSS modules such as "mediawiki.action.edit.styles" missing
Closed, ResolvedPublic


For AWB to do page previews, we extract stylesheet calls using API parse call for headhtml properties e.g.

This API headhtml seems to be missing key CSS stylesheet modules. This returns stylesheets whose links include site.styles and user.styles modules (I believe this uses the "ResourceLoader" functionality of mediawiki). However, rendering page preview HTML with just these stylesheets, pages are NOT as per browser display, items such as grey box around TOC are missing. Investigating, with a page preview in browser, the HTML source contains stylesheet calls for a series of additional modules including "mediawiki.action.edit.styles" and other important-sounding modules: encoded list for en-wiki is "ext.gadget.DRN-wizard%2CReferenceTooltips%2Ccharinsert%2Cextra-toolbar-buttons%2Cfeatured-articles-links%2CrefToolbar%2Cswitcher%2Cteahouse%2Cwatchlist-notice%7Cext.tmh.thumbnail.styles%7Cext.uls.nojs%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cmediawiki.action.edit.styles%7Cmediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.sectionAnchor%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Cwikibase.client.init"

When logged in there are additional modules requested, seemingly for installed gadgets and scripts etc. According to user reports (T143868) something changed mediawiki-side in the last week or so. I would expect, and need for AWB, the API parse headhtml to return at least all default CSS modules for the given wiki.

Comments at VP:T at suggested that issue may be due to gerrit:299272

Event Timeline

Rjwilmsi created this task.Aug 30 2016, 6:51 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 30 2016, 6:51 PM
JJMC89 added a subscriber: JJMC89.Aug 30 2016, 6:59 PM
Krinkle claimed this task.Aug 30 2016, 11:37 PM
Krinkle triaged this task as Normal priority.
Krinkle moved this task from Inbox to Doing on the Performance-Team board.
Krinkle moved this task from Inbox to Backlog on the MediaWiki-ResourceLoader board.

Change 307659 had a related patch set uploaded (by Krinkle):
OutputPage: Ensure setupSkinUserCss() always applies to headElement()

Anomie moved this task from Unsorted to Needs Review on the MediaWiki-API board.Aug 31 2016, 2:00 PM

Change 307659 merged by jenkins-bot:
OutputPage: Ensure setupSkinUserCss() always applies to headElement()

Anomie closed this task as Resolved.Sep 6 2016, 4:36 PM