Page MenuHomePhabricator

LivePreview breaks User CSS/JS previews
Closed, ResolvedPublic

Description

Author: Astronouth7303

Description:
If a site administrator has LivePreview enabled, you cannot preview User JS/CSS
pages ([[User:Bob/monobook.js]], [[User:Bob/monobook.css]])


Version: 1.5.x
Severity: normal

Details

Reference
bz3421

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:47 PM
bzimport set Reference to bz3421.
bzimport added a subscriber: Unknown Object (MLST).

Astronouth7303 wrote:

A workaround

A patch that disables LivePreview if Title::isCssJsSubpage() (called as
$this->mTitle->isCssJsSubpage()) is true.

Attached:

Astronouth7303 wrote:

(In reply to comment #1)

A patch that disables LivePreview if Title::isCssJsSubpage() (called as
$this->mTitle->isCssJsSubpage()) is true.

It should be noted that this patch should be tested for backwards compatibility
due to the fact that it uses Title::isCssJsSubpage(). (I wonder because there's
comments everywhere about a stupid PHP bug preventing one from using it. Seems
to work ok for me.)

  • Bug 14486 has been marked as a duplicate of this bug. ***