Make allowing site-wide styles on restricted special pages a config option
authorKunal Mehta <legoktm@gmail.com>
Fri, 10 Oct 2014 06:46:12 +0000 (23:46 -0700)
committerKunal Mehta <legoktm@gmail.com>
Fri, 7 Nov 2014 22:50:33 +0000 (14:50 -0800)
commitb2bb4f8bf29ecab9ae8079c5e4a716a668bf78cd
treeb08fc84924bc2cc01b4eaee1b7434824c6507047
parente0ad0f02b225a9e89d23e6eb840d526766af6252
Make allowing site-wide styles on restricted special pages a config option

This mostly reverts commit 614d7e5c274d927f99bfc52ac3a1e6c7e5902408.

Many wikis use MediaWiki:Common.css and associated pages to create a
custom "theme" for their wiki, which would no longer load on login
or preference pages, creating an inconsistent UI.

This re-adds the difference in module origin for different types
(styles, scripts, etc.), and now OutputPage::disallowUserJs()
checks the value of the "AllowSiteCSSOnRestrictedPages" config setting
to determine whether to allow site-wide CSS styles or not.

By default this feature is disabled to be secure by default.

Bug: 71621
Change-Id: I1bf4dd1845b6952c3985e179fbea48181ffb8907
includes/DefaultSettings.php
includes/OutputPage.php