(bug 43996) Add support for RC_EXTERNAL type in api

- this is for recentchanges
- can be used to filter changes injected from external sources,
such as wikidata and other sources that use this type
Change-Id: I8bd19a8a80b0422ab01d21da1702fc090ffa27d2
Merge "(bug 43996) Add support for RC_EXTERNAL type in api"
(bug 43981) disable live preview on user .js/.css pages

Disable live preview on user .js/.css pages, as there's no sane way of
"previewing" the scripts or styles without reloading the page.

Change-Id: I8750448c827eb965509158bb4a0cd8b0cf3c7a67
Revert "Live preview no longer experimental"

It is very much still experimental. The only thing it is capable of right now is rendering wikitext in the page and some basic skin enhancements (sidebar links and templates-used list).

By far it is not complete and lacks many things (such as interactive features like tablesorter and mw-collapsible. And things like preview-javascript on js user pages doesn't work etc.

This reverts commit 006916cd3f47bc07ce54830ab35520b69f2e87c1
Merge "Revert "Live preview no longer experimental""
Merge "(bug 43981) disable live preview on user .js/.css pages"
Merge "[JobQueue] Optimized JobQueueGroup::pop()."
Merge "API Cleanup: renamed '_badcontinue'->'badcontinue', one die()"
Merge "(bug 43052) dblClickEdit/rightClickEdit: Trigger ca-edit click."
Merge "(bug 43498) (bug 43574) Two wikilink types and {{int:}}."
Localisation updates from http://translatewiki.net.

Change-Id: I345e2cbb266f78248bb90ec0c0509c56707acf26
Test table captions with attributes

Parsoid did not support these before, but now does. Makes sure this is also
covered by a test.

Change-Id: I7645d390bc14c4f7f115e857266d0015ddbd9de4
Test for bug 42252 (indented pre syntax)

This bug has since been fixed in Parsoid. Make sure it stays that way by
testing it.

Change-Id: Iba77a72635877dfb420534142abb59e155567d6a
Additional tests to catch Parsoid regressions.

Change-Id: I5927ec25d978c9399b1d515a56c6fd39546f3d90
(bug 31044) Make ResourceLoader behave in read-only mode

When the database is in read-only mode or writes fail for some other
reason, ResourceLoader should make every attempt to still serve JS and
CSS correctly.

* Surround a bunch of DB write code in MessageBlobStore.php in try-catch
  blocks.
* Surround the DB write in ResourceLoaderFileModule.php in a try-catch
  block rather than checking wfReadOnly(), because the DB may fail for
  other reasons.
* In ResourceLoader::respond() and helpers, set a short cache timeout on
  responses that include commented-out error messages.

Change-Id: Idc83a0fe042806263f9337c40ade8c38c56aa3cd
(bug 44010) FauxRequest leaks cookie data from primary request

Change-Id: I6baf972352fd69660c09a5d413ff55b81aa31305
Small whitespace cleanup

Change-Id: I8a3ad0f81cf66c4a3a95f0ea45d04cdb39095607
Fix failing qunit test for mediawiki.jqueryMsg

Errors thrown by jqueryMsg parser is "messageKey: errorMessage" format
Test case was using "Error" as prefix.

Followup of I7a748eb9

Change-Id: I92b5dc82f2d719acf0503ddd5bd3ebe39d1203b5
Merge "(bug 44010) FauxRequest leaks cookie data from primary request"
Bug 43688 - mcc.php doesn't work with new WMF memcached config

Change-Id: Ic0d87d27e6db78314d92968d7c6d265cf6d24013